Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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)/vmlinux
  9. # target helper text
  10. ifeq ($(ADK_TARGET_FS),initramfs)
  11. targethelp:
  12. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  13. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  14. endif
  15. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  16. targethelp:
  17. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  18. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
  19. endif
  20. ifeq ($(ADK_TARGET_FS),initramfspiggyback)
  21. targethelp:
  22. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  23. ifeq ($(ADK_TARGET_SIM),y)
  24. @echo "Run the simulator via:"
  25. @echo '$(TARGET_CROSS)run $(FW_DIR)/$(TARGET_KERNEL) "earlyprintk=h8300-sim console=ttySC0"'
  26. endif
  27. endif
  28. kernel-strip:
  29. @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
  30. kernel-install: kernel-strip
  31. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  32. # filesystem specific targets
  33. ifeq ($(ADK_TARGET_FS),initramfs)
  34. imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
  35. endif
  36. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  37. imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
  38. endif
  39. ifeq ($(ADK_TARGET_FS),initramfspiggyback)
  40. imageinstall: createinitramfs targethelp
  41. endif