Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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)/arch/cris/boot/zImage \
  10. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel $(MAKE_TRACE)
  11. ifeq ($(FS),archive)
  12. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  13. @echo
  14. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSUSERTARBALL),"
  15. @echo "Use following command to create a QEMU Image:"
  16. @echo "sudo ./scripts/create-image.sh -f $(ADK_TARGET_ROOTFS) qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSUSERTARBALL)"
  17. @echo "Start qemu with following command line:"
  18. @echo 'qemu-system-cris -nographic -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel qemu-${CPU_ARCH}.img'
  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}/${ADK_TARGET}-${FS}-kernel'
  24. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  25. @echo "Start qemu with following command line:"
  26. @echo 'qemu-system-cris -nographic -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel'
  27. @echo 'Login as user root with password linux123 via ssh or console'
  28. endif
  29. ifeq ($(FS),initramfs-piggyback)
  30. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  31. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  32. @echo "Start qemu with following command line:"
  33. @echo 'qemu-system-cris -nographic -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel'
  34. @echo 'Login as user root with password linux123 via ssh or console'
  35. endif