Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 ($(FS),archive)
  10. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  11. @echo 'The RootFS tarball is: ${BIN_DIR}/${ROOTFSTARBALL}'
  12. ifeq ($(ADK_HARDWARE_QEMU_X86_64),y)
  13. @echo "Use following command to create a QEMU Image:"
  14. @echo "sudo ./scripts/create-image.sh -f ${ADK_TARGET_ROOTFS} qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  15. @echo "Start qemu with following command line:"
  16. @echo 'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_HW}-${ADK_TARGET}-${FS}-kernel qemu-${CPU_ARCH}.img'
  17. endif
  18. endif
  19. ifeq ($(FS),usb)
  20. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  21. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  22. @echo "To install everything to USB use scripts/install.sh"
  23. endif
  24. ifeq ($(FS),initramfs)
  25. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  26. @cp $(KERNEL) $(BIN_DIR)/${ADK_HW}-${ADK_TARGET}-${FS}-kernel
  27. @echo 'The kernel file is: ${BIN_DIR}/${ADK_HW}-${ADK_TARGET}-${FS}-kernel'
  28. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  29. ifeq ($(ADK_HARDWARE_QEMU_X86_64),y)
  30. @echo "Start qemu with following command line:"
  31. @echo 'qemu-system-x86_64 -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_HW}-${ADK_TARGET}-${FS}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
  32. endif
  33. endif
  34. ifeq ($(FS),initramfs-piggyback)
  35. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  36. @cp $(KERNEL) $(BIN_DIR)/${ADK_HW}-${ADK_TARGET}-${FS}-kernel
  37. @echo 'The kernel file is: ${BIN_DIR}/${ADK_HW}-${ADK_TARGET}-${FS}-kernel'
  38. ifeq ($(ADK_HARDWARE_QEMU_X86_64),y)
  39. @echo "Start qemu with following command line:"
  40. @echo 'qemu-system-x86_64 -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_HW}-${ADK_TARGET}-${FS}-kernel'
  41. endif
  42. endif