1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. ifeq ($(ADK_TARGET_FS),archive)
  10. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL)
  11. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  12. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  13. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
  14. endif
  15. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  16. imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL)
  17. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  18. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  19. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
  20. endif
  21. ifeq ($(ADK_TARGET_FS),initramfs)
  22. imageinstall: $(FW_DIR)/$(INITRAMFS)
  23. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  24. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  25. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  26. ifeq ($(ADK_TARGET_SYSTEM_ARANYM_M68K),y)
  27. @sed -e "s#@@KERNEL@@#$(FW_DIR)/$(TARGET_KERNEL)#" \
  28. -e "s#@@INITRAMFS@@#${FW_DIR}/${INITRAMFS}#" \
  29. $(TOPDIR)/target/m68k/aranym.cfg.in \
  30. > $(TOPDIR)/target/m68k/aranym.cfg
  31. @echo 'Start aranym with: aranym-mmu -l -c target/m68k/aranym.cfg'
  32. @echo 'Ungrab mouse with middle mouse click'
  33. endif
  34. endif
  35. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  36. imageinstall: createinitramfs
  37. @cp $(KERNEL) $(FW_DIR)/${TARGET_KERNEL}
  38. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  39. endif