Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 \
  20. -net nic,model=virtio -net user'
  21. else
  22. @echo 'qemu-system-sparc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
  23. endif
  24. endif
  25. endif
  26. ifeq ($(ADK_TARGET_FS),initramfs)
  27. imageinstall: $(FW_DIR)/$(INITRAMFS)
  28. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  29. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  30. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  31. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC64),y)
  32. @echo "Start qemu with following command line:"
  33. @echo 'qemu-system-sparc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
  34. endif
  35. endif
  36. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  37. imageinstall: createinitramfs
  38. @cp $(KERNEL) $(FW_DIR)/${TARGET_KERNEL}
  39. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  40. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC64),y)
  41. @echo "Start qemu with following command line:"
  42. @echo 'qemu-system-sparc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL)'
  43. endif
  44. endif