1
0

Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/sparc/boot/zImage
  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_TARGET_SYSTEM_QEMU_SPARC),y)
  15. @echo "Use following command to create a QEMU Image:"
  16. @echo "./scripts/create.sh qemu-${CPU_ARCH}.img $(FW_DIR)/$(ROOTFSTARBALL)"
  17. @echo "Start qemu with following command line:"
  18. @echo 'qemu-system-sparc -M SS-5 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img -append "root=/dev/sda1"'
  19. endif
  20. endif
  21. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  22. imageinstall: $(FW_DIR)/$(ROOTFSUSERTARBALL)
  23. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  24. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  25. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
  26. endif
  27. ifeq ($(ADK_TARGET_FS),initramfs)
  28. imageinstall: $(FW_DIR)/$(INITRAMFS)
  29. @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  30. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  31. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  32. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC),y)
  33. @echo "Start qemu with following command line:"
  34. @echo 'qemu-system-sparc -M SS-5 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
  35. endif
  36. endif
  37. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  38. imageinstall: createinitramfs
  39. @cp $(KERNEL) $(FW_DIR)/${TARGET_KERNEL}
  40. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  41. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC),y)
  42. @echo "Start qemu with following command line:"
  43. @echo 'qemu-system-sparc -M SS-5 -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL)'
  44. endif
  45. endif