1
0

Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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)/$(ADK_TARGET_KERNEL)
  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),initramfs)
  13. targethelp:
  14. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  15. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  16. endif
  17. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  18. targethelp:
  19. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  20. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
  21. endif
  22. ifeq ($(ADK_TARGET_FS),initramfspiggyback)
  23. targethelp:
  24. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  25. ifeq ($(ADK_TARGET_SIM),y)
  26. @echo "Run the simulator via:"
  27. @echo '$(TARGET_CROSS)run --env operating --model bf512 $(FW_DIR)/$(TARGET_KERNEL)'
  28. endif
  29. endif
  30. ifeq ($(ADK_TARGET_FS),nfsroot)
  31. targethelp:
  32. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  33. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
  34. endif
  35. kernel-strip:
  36. @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
  37. kernel-install: kernel-strip
  38. @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  39. # filesystem specific targets
  40. ifeq ($(ADK_TARGET_FS),archive)
  41. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
  42. endif
  43. ifeq ($(ADK_TARGET_FS),initramfs)
  44. imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
  45. endif
  46. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  47. imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
  48. endif
  49. ifeq ($(ADK_TARGET_FS),initramfspiggyback)
  50. imageinstall: createinitramfs targethelp
  51. endif
  52. ifeq ($(ADK_TARGET_FS),nfsroot)
  53. imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
  54. endif