Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233
  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),nfsroot)
  10. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  11. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  12. @echo 'The linux kernel is here: $(BIN_DIR)/$(TARGET_KERNEL)'
  13. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  14. endif
  15. ifeq ($(ADK_TARGET_FS),archive)
  16. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  17. @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL}
  18. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL),"
  19. @echo "Use following command to create a QEMU Image:"
  20. @echo "sudo ./scripts/create-image.sh -f $(ADK_TARGET_ROOTFS) qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  21. @echo "Start qemu with following options:"
  22. @echo 'qemu-system-mips64el -nographic -M malta -kernel $(BIN_DIR)/${TARGET_KERNEL} qemu-${CPU_ARCH}.img'
  23. endif
  24. ifeq ($(ADK_TARGET_FS),initramfs)
  25. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  26. @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL}
  27. @echo 'The kernel file is: ${BIN_DIR}/${TARGET_KERNEL}'
  28. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  29. @echo 'qemu-system-mips64el -nographic -M malta -kernel $(BIN_DIR)/${TARGET_KERNEL} -initrd ${BIN_DIR}/${INITRAMFS}'
  30. endif