Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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)/vmlinux.gz
  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. ifeq ($(ADK_TARGET_SYSTEM_ARANYM_M68K),y)
  15. @sed -e "s#@@KERNEL@@#$(FW_DIR)/$(TARGET_KERNEL)#" \
  16. -e "s#@@INITRAMFS@@#${FW_DIR}/${INITRAMFS}#" \
  17. $(TOPDIR)/target/m68k/aranym.cfg.in \
  18. > $(TOPDIR)/target/m68k/aranym.cfg
  19. @echo 'Start aranym with: aranym-mmu -l -c target/m68k/aranym.cfg'
  20. @echo 'Ungrab mouse with middle mouse click'
  21. endif
  22. endif
  23. kernel-strip:
  24. kernel-install: kernel-strip
  25. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  26. # filesystem specific targets
  27. ifeq ($(ADK_TARGET_FS),initramfs)
  28. imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
  29. endif