Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. $(MAKE) -C tools/e100boot prepare compile install $(MAKE_TRACE)
  13. $(MAKE) -C tools/squashfs prepare compile install
  14. $(INSTALL_BIN) tools/boot_linux $(BIN_DIR)/
  15. kernel-install: tools-compile
  16. PATH='${TARGET_PATH}' \
  17. mkfimage $(LINUX_DIR)/arch/cris/arch-v10/boot/zImage \
  18. $(BIN_DIR)/${DEVICE}-${ARCH}-kernel $(MAKE_TRACE)
  19. ifeq ($(FS),squashfs)
  20. imageinstall: $(BIN_DIR)/$(ROOTFSSQUASHFS)
  21. @echo
  22. @echo Use sudo ./boot_linux -F -i $(ROOTFSSQUASHFS) to flash
  23. @echo Do not forget to set network boot jumper, before you start the foxboard
  24. endif
  25. ifeq ($(FS),nfsroot)
  26. imageinstall: ${BIN_DIR}/${ROOTFSTARBALL}
  27. @echo
  28. @echo Use sudo ./boot_linux -F -i ${DEVICE}-${ARCH}-kernel to flash the kernel
  29. @echo Do not forget to set network boot jumper, before you start the foxboard
  30. @echo ${ROOTFSTARBALL} is your nfs root and can be extracted on your nfs server
  31. endif