1
0

Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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),cf)
  10. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  11. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  12. @echo "To install everything to CompactFlash use scripts/install.sh"
  13. endif
  14. ifeq ($(ADK_TARGET_FS),nfsroot)
  15. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  16. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  17. @echo 'The linux kernel is here: $(BIN_DIR)/$(TARGET_KERNEL)'
  18. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  19. endif
  20. ifeq ($(ADK_TARGET_FS),archive)
  21. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  22. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  23. ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86),y)
  24. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  25. @echo "Use following command to create a QEMU Image:"
  26. @echo "sudo ./scripts/create-image.sh -f ${ADK_TARGET_ROOTFS} qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  27. @echo "Start qemu with following command line:"
  28. @echo 'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
  29. endif
  30. endif
  31. ifeq ($(ADK_TARGET_FS),usb)
  32. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  33. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  34. @echo "To install everything to USB use scripts/install.sh"
  35. endif
  36. ifeq ($(ADK_TARGET_FS),initramfs)
  37. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  38. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  39. @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
  40. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  41. ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86),y)
  42. @echo "Start qemu with following command line:"
  43. @echo 'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}'
  44. endif
  45. endif
  46. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  47. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  48. @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL}
  49. @echo 'The kernel+initramfs file is: $(BIN_DIR)/${TARGET_KERNEL}'
  50. ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86),y)
  51. @echo "Start qemu with following command line:"
  52. @echo 'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
  53. endif
  54. endif