1
0

Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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/x86/boot/bzImage
  9. ifeq ($(ADK_TARGET_FS),archive)
  10. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL)
  11. @echo 'The RootFS tarball is: ${FW_DIR}/${ROOTFSTARBALL}'
  12. ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86_64),y)
  13. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  14. @echo "Use following command to create a QEMU Image:"
  15. @echo "./scripts/create.sh qemu-${CPU_ARCH}.img $(FW_DIR)/$(ROOTFSTARBALL)"
  16. @echo "Start qemu with following command line:"
  17. @echo 'qemu-system-x86_64 -nographic -net user -net nic,model=e1000 -kernel $(FW_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
  18. endif
  19. endif
  20. ifeq ($(ADK_TARGET_FS),usb)
  21. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL)
  22. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
  23. @echo "To install everything to USB use scripts/install.sh"
  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_X86_64),y)
  31. @echo "Start qemu with following command line:"
  32. @echo 'qemu-system-x86_64 -nographic -net user -net nic,model=e1000 -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 file is: $(FW_DIR)/${TARGET_KERNEL}'
  39. ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86_64),y)
  40. @echo "Start qemu with following command line:"
  41. @echo 'qemu-system-x86_64 -nographic -net user -net nic,model=e1000 -kernel $(FW_DIR)/$(TARGET_KERNEL)'
  42. endif
  43. endif
  44. ifeq ($(ADK_TARGET_FS),nfsroot)
  45. imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL)
  46. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  47. @echo 'The linux kernel is here: $(FW_DIR)/$(TARGET_KERNEL)'
  48. @echo 'The nfs root tarball is: ${FW_DIR}/${ROOTFSUSERTARBALL}'
  49. endif