Makefile 1.6 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)/arch/sh/boot/zImage
  9. ifeq ($(ADK_TARGET_FS),archive)
  10. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL)
  11. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
  12. ifneq ($(ADK_HARDWARE_QEMU),)
  13. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  14. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  15. @echo "Use following command to create a QEMU Image:"
  16. @echo "./scripts/create.sh +g qemu-${CPU_ARCH}.img $(FW_DIR)/$(ROOTFSTARBALL)"
  17. @echo "Start qemu with following options:"
  18. @echo 'qemu-system-${CPU_ARCH} -M r2d -kernel $(FW_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
  19. endif
  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_QEMU_SH),y)
  27. @echo "Start qemu with following command line:"
  28. @echo 'qemu-system-${CPU_ARCH} -M r2d -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
  29. endif
  30. endif
  31. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  32. imageinstall: createinitramfs
  33. @cp $(KERNEL) $(FW_DIR)/${TARGET_KERNEL}
  34. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  35. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SH),y)
  36. @echo "Start qemu with following command line:"
  37. @echo 'qemu-system-{CPU_ARCH} -M r2d -kernel $(FW_DIR)/$(TARGET_KERNEL)'
  38. endif
  39. endif