1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. kernel-install:
  10. cd $(TOPDIR) && \
  11. make -f Makefile \
  12. -C package/boot-wrapper-aarch64 clean
  13. cd $(TOPDIR) && \
  14. make -f Makefile \
  15. -C package/boot-wrapper-aarch64 package
  16. ${CP} ${LINUX_DIR}/linux-system.axf \
  17. $(FW_DIR)/$(TARGET_KERNEL)
  18. ifeq ($(ADK_TARGET_FS),archive)
  19. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL)
  20. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
  21. endif
  22. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  23. imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL)
  24. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  25. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
  26. endif
  27. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  28. imageinstall: createinitramfs kernel-install
  29. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  30. ifeq ($(ADK_TARGET_SYSTEM_ARM_FM),y)
  31. @echo 'Start emulator via:'
  32. @echo 'Foundation_v8 --image=$(FW_DIR)/${TARGET_KERNEL}'
  33. endif
  34. endif