Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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. endif
  23. ifeq ($(FS),initramfs)
  24. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  25. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  26. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  27. endif