Makefile 1.7 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
  9. ifeq ($(ADK_TARGET_FS),archive)
  10. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  11. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  12. @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
  13. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  14. ifeq ($(ADK_TARGET_SYSTEM_QEMU_M68K),y)
  15. @echo "Use following command to create a QEMU Image:"
  16. @echo "sudo ./scripts/create-image.sh -f ${ADK_TARGET_ROOTFS} qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  17. @echo "Start qemu with following command line:"
  18. @echo 'qemu-system-m68k -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
  19. endif
  20. endif
  21. ifeq ($(ADK_TARGET_FS),initramfs)
  22. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  23. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  24. @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
  25. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  26. ifeq ($(ADK_TARGET_SYSTEM_QEMU_M68K),y)
  27. @echo "Start qemu with following command line:"
  28. @echo 'qemu-system-m68k -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}'
  29. endif
  30. endif
  31. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  32. imageinstall: createinitramfs
  33. @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL}
  34. @echo 'The kernel+initramfs file is: $(BIN_DIR)/${TARGET_KERNEL}'
  35. ifeq ($(ADK_TARGET_SYSTEM_QEMU_M68K),y)
  36. @echo "Start qemu with following command line:"
  37. @echo 'qemu-system-m68k -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
  38. endif
  39. endif