Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031
  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-install:
  9. cp $(LINUX_DIR)/vmlinux $(BIN_DIR)/${DEVICE}-${ARCH}-kernel
  10. ifeq ($(FS),ext2)
  11. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  12. @echo
  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 -n qemu-mips.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  16. @echo "Be sure to change permissions after image creation."
  17. @echo "Start qemu with following options:"
  18. @echo 'qemu-system-mipsel -nographic -M malta -kernel $(BIN_DIR)/${DEVICE}-${ARCH}-kernel -hda qemu-mips.img -append "root=/dev/hda1"'
  19. @echo 'Login as user root with password linux123 via ssh or console'
  20. endif
  21. ifeq ($(FS),initramfs)
  22. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  23. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  24. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  25. @echo 'qemu-system-mipsel -nographic -M malta -kernel $(BIN_DIR)/${DEVICE}-${ARCH}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
  26. @echo 'Login as user root with password linux123 via ssh or console'
  27. endif