Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. mkfimage $(LINUX_DIR)/arch/cris/arch-v32/boot/zImage \
  15. $(BIN_DIR)/${DEVICE}-${ARCH}-kernel $(MAKE_TRACE)
  16. ifeq ($(FS),ext2)
  17. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  18. @echo
  19. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL),"
  20. @echo "Use following command to create a QEMU Image:"
  21. @echo "sudo ./scripts/create-image.sh qemu.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  22. @echo 'Login as user root with password linux123 via ssh or console'
  23. endif
  24. ifeq ($(FS),initramfs)
  25. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  26. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  27. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  28. @echo 'Login as user root with password linux123 via ssh or console'
  29. endif