Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: $(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. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC64),y)
  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 command line:"
  18. ifeq ($(ADK_TARGET_QEMU_WITH_VIRTIO),y)
  19. @echo 'qemu-system-sparc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -drive file=qemu-${CPU_ARCH}.img,if=virtio,index=0 -net nic,model=virtio -net user'
  20. else
  21. @echo 'qemu-system-sparc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
  22. endif
  23. endif
  24. endif
  25. ifeq ($(ADK_TARGET_FS),initramfs)
  26. imageinstall: $(FW_DIR)/$(INITRAMFS)
  27. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  28. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  29. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  30. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC64),y)
  31. @echo "Start qemu with following command line:"
  32. @echo 'qemu-system-sparc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
  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. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC64),y)
  40. @echo "Start qemu with following command line:"
  41. @echo 'qemu-system-sparc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL)'
  42. endif
  43. endif