Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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)/vmlinux
  9. ifeq ($(ADK_TARGET_FS),archive)
  10. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL)
  11. @cp $(KERNEL) $(FW_DIR)/${TARGET_KERNEL}
  12. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  13. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
  14. ifeq ($(ADK_HARDWARE_QEMU),y)
  15. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  16. @echo "Use following command to create a QEMU Image:"
  17. @echo "./scripts/create.sh qemu-${CPU_ARCH}.img $(FW_DIR)/$(ROOTFSTARBALL)"
  18. @echo "Start qemu with following command line:"
  19. @echo 'qemu-system-ppc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
  20. endif
  21. endif
  22. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  23. imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL)
  24. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  25. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  26. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
  27. endif
  28. ifeq ($(ADK_TARGET_FS),initramfs)
  29. imageinstall: $(FW_DIR)/$(INITRAMFS)
  30. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  31. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  32. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  33. ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC64),y)
  34. @echo "Start qemu with following command line:"
  35. @echo 'qemu-system-ppc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
  36. endif
  37. endif
  38. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  39. imageinstall: createinitramfs
  40. @cp $(KERNEL) $(FW_DIR)/${TARGET_KERNEL}
  41. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  42. ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC64),y)
  43. @echo "Start qemu with following command line:"
  44. @echo 'qemu-system-ppc64 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL)'
  45. endif
  46. endif