Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. include $(ADK_TOPDIR)/mk/kernel.mk
  5. include $(ADK_TOPDIR)/mk/modules.mk
  6. include $(ADK_TOPDIR)/mk/kernel-build.mk
  7. include $(ADK_TOPDIR)/mk/image.mk
  8. KERNEL:=$(LINUX_DIR)/arch/avr32/boot/images/uImage
  9. # target helper text
  10. ifeq ($(ADK_TARGET_FS),archive)
  11. targethelp:
  12. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
  13. endif
  14. ifeq ($(ADK_TARGET_FS),nfsroot)
  15. targethelp:
  16. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  17. @echo 'The nfs root tarball is: ${FW_DIR}/${ROOTFSUSERTARBALL}'
  18. endif
  19. kernel-strip:
  20. cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
  21. kernel-install: kernel-strip
  22. cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  23. # filesystem specific targets
  24. ifeq ($(ADK_TARGET_FS),archive)
  25. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
  26. endif
  27. ifeq ($(ADK_TARGET_FS),nfsroot)
  28. imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
  29. endif