Makefile 2.1 KB

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