Makefile 1.2 KB

12345678910111213141516171819202122232425262728
  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. OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
  10. ifeq ($(ADK_TARGET_FS),archive)
  11. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  12. @cp $(TARGET_DIR)/boot/kernel $(BIN_DIR)/$(TARGET_KERNEL)
  13. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  14. @echo "Use following command to create a QEMU Image:"
  15. @echo "sudo ./scripts/create-image.sh qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  16. @echo "Start qemu with following options:"
  17. @echo 'qemu-system-mips64 -nographic -M malta -kernel $(BIN_DIR)/${TARGET_KERNEL} qemu-${CPU_ARCH}.img'
  18. endif
  19. ifeq ($(ADK_TARGET_FS),initramfs)
  20. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  21. @cp $(TARGET_DIR)/boot/kernel $(BIN_DIR)/$(TARGET_KERNEL)
  22. @echo 'The kernel file is: ${BIN_DIR}/${TARGET_KERNEL}'
  23. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  24. @echo 'qemu-system-mips64 -nographic -M malta -kernel $(BIN_DIR)/${TARGET_KERNEL} -initrd ${BIN_DIR}/${INITRAMFS}'
  25. endif