Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 $(TOPDIR)/rules.mk
  4. include $(TOPDIR)/mk/kernel.mk
  5. include $(TOPDIR)/mk/modules.mk
  6. include $(TOPDIR)/mk/kernel-build.mk
  7. include $(TOPDIR)/mk/image.mk
  8. KERNEL:=${LINUX_DIR}/arch/arm64/boot/Image
  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),initramfs)
  15. targethelp:
  16. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  17. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  18. endif
  19. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  20. targethelp:
  21. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  22. ifeq ($(ADK_TARGET_SYSTEM_ARM_FM),y)
  23. @echo 'Start emulator via:'
  24. @echo 'Foundation_v8 --image=$(FW_DIR)/${TARGET_KERNEL}'
  25. endif
  26. endif
  27. kernel-strip:
  28. kernel-install: kernel-strip
  29. cd $(TOPDIR) && \
  30. make -f Makefile \
  31. -C package/boot-wrapper-aarch64 clean
  32. cd $(TOPDIR) && \
  33. make -f Makefile \
  34. -C package/boot-wrapper-aarch64 package
  35. ${CP} ${LINUX_DIR}/linux-system.axf \
  36. $(FW_DIR)/$(TARGET_KERNEL)
  37. # filesystem specific targets
  38. ifeq ($(ADK_TARGET_FS),archive)
  39. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
  40. endif
  41. ifeq ($(ADK_TARGET_FS),initramfs)
  42. imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
  43. endif
  44. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  45. imageinstall: createinitramfs targethelp
  46. endif