Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. $(TOOLS_BUILD_DIR):
  9. mkdir -p $(TOOLS_BUILD_DIR)
  10. tools-compile: $(TOOLS_BUILD_DIR)
  11. $(MAKE) -C tools/mkfimage
  12. kernel-install: tools-compile
  13. PATH='${TARGET_PATH}' \
  14. cp $(LINUX_DIR)/arch/cris/boot/zImage \
  15. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel $(MAKE_TRACE)
  16. ifeq ($(FS),archive)
  17. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  18. @echo
  19. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSUSERTARBALL),"
  20. @echo "Use following command to create a QEMU Image:"
  21. @echo "sudo ./scripts/create-image.sh -f $(ADK_TARGET_ROOTFS) qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSUSERTARBALL)"
  22. @echo "Start qemu with following command line:"
  23. @echo 'qemu-system-cris -nographic -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel qemu-${CPU_ARCH}.img'
  24. @echo 'Login as user root with password linux123 via ssh or console'
  25. endif
  26. ifeq ($(FS),initramfs)
  27. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  28. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  29. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  30. @echo 'Login as user root with password linux123 via ssh or console'
  31. endif