Makefile 2.2 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: $(BIN_DIR)/$(ROOTFSTARBALL)
  11. @echo 'The RootFS tarball is: ${BIN_DIR}/${ROOTFSTARBALL}'
  12. ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86_64),y)
  13. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  14. @echo "Use following command to create a QEMU Image:"
  15. @echo "./scripts/create.sh qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  16. @echo "Start qemu with following command line:"
  17. @echo 'qemu-system-x86_64 -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
  18. endif
  19. endif
  20. ifeq ($(ADK_TARGET_FS),usb)
  21. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  22. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  23. @echo "To install everything to USB use scripts/install.sh"
  24. endif
  25. ifeq ($(ADK_TARGET_FS),initramfs)
  26. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  27. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  28. @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
  29. @echo 'The initramfs image is: ${BIN_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,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}'
  33. endif
  34. endif
  35. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  36. imageinstall: createinitramfs
  37. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  38. @echo 'The kernel file is: $(BIN_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,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
  42. endif
  43. endif
  44. ifeq ($(ADK_TARGET_FS),nfsroot)
  45. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  46. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  47. @echo 'The linux kernel is here: $(BIN_DIR)/$(TARGET_KERNEL)'
  48. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  49. endif