Makefile 1.3 KB

123456789101112131415161718192021222324252627282930
  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)/${ADK_TARGET}-${FS}-kernel
  10. ifeq ($(FS),archive)
  11. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  12. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  13. @echo "Use following command to create a QEMU Image:"
  14. @echo "sudo ./scripts/create-image.sh -f $(ADK_TARGET_ROOTFS) qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  15. @echo "Be sure to change permissions after image creation."
  16. @echo "Start qemu with following options:"
  17. @echo 'qemu-system-mipsel -nographic -M malta -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -hda qemu-${CPU_ARCH}.img -append "root=/dev/hda1"'
  18. @echo 'Login as user root with password linux123 via ssh or console'
  19. endif
  20. ifeq ($(FS),initramfs)
  21. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  22. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  23. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  24. @echo 'qemu-system-mipsel -nographic -M malta -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
  25. @echo 'Login as user root with password linux123 via ssh or console'
  26. endif