1
0

Makefile 1.1 KB

12345678910111213141516171819202122232425
  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 ($(FS),archive)
  10. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  11. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  12. @echo "Use following command to create a QEMU Image:"
  13. @echo "sudo ./scripts/create-image.sh qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  14. @echo "Start qemu with following options:"
  15. @echo 'qemu-system-mips64 -nographic -M malta -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -hda qemu-${CPU_ARCH}.img -append "root=/dev/hda1"'
  16. endif
  17. ifeq ($(FS),initramfs)
  18. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  19. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  20. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  21. @echo 'qemu-system-mips64 -nographic -M malta -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
  22. endif