Makefile 976 B

123456789101112131415161718192021222324252627282930313233
  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-build.mk
  5. include $(ADK_TOPDIR)/mk/image.mk
  6. KERNEL:=$(LINUX_DIR)/arch/avr32/boot/images/uImage
  7. # target helper text
  8. ifeq ($(ADK_TARGET_FS),archive)
  9. targethelp:
  10. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
  11. endif
  12. ifeq ($(ADK_TARGET_FS),nfsroot)
  13. targethelp:
  14. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  15. @echo 'The nfs root tarball is: ${FW_DIR}/${ROOTFSUSERTARBALL}'
  16. endif
  17. kernel-strip:
  18. cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
  19. kernel-install: kernel-strip
  20. cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  21. # filesystem specific targets
  22. ifeq ($(ADK_TARGET_FS),archive)
  23. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
  24. endif
  25. ifeq ($(ADK_TARGET_FS),nfsroot)
  26. imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
  27. endif