1
0

Makefile 1.7 KB

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