Makefile 2.0 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)/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 "sudo ./scripts/create-image.sh -f ${ADK_TARGET_ROOTFS} 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: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} 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