Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # $Id: Makefile 30 2008-09-04 13:31:09Z wbx $
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. include $(TOPDIR)/mk/kernel.mk
  7. include $(TOPDIR)/mk/modules.mk
  8. include $(TOPDIR)/mk/kernel-build.mk
  9. include $(TOPDIR)/mk/image.mk
  10. $(TOOLS_BUILD_DIR):
  11. mkdir -p $(TOOLS_BUILD_DIR)
  12. tools-compile: $(TOOLS_BUILD_DIR)
  13. $(MAKE) -C tools/mkfimage
  14. $(MAKE) -C tools/e100boot prepare compile install $(MAKE_TRACE)
  15. $(MAKE) -C tools/squashfs prepare compile install
  16. $(INSTALL_BIN) tools/boot_linux $(BIN_DIR)/
  17. kernel-install: tools-compile
  18. PATH='${TARGET_PATH}' \
  19. mkfimage $(LINUX_DIR)/arch/cris/arch-v10/boot/zImage \
  20. $(BIN_DIR)/${DEVICE}-${ARCH}-kernel $(MAKE_TRACE)
  21. ifeq ($(FS),squashfs)
  22. imageinstall: $(BIN_DIR)/$(ROOTFSSQUASHFS)
  23. @echo
  24. @echo Use sudo ./boot_linux -F -i $(ROOTFSSQUASHFS) to flash
  25. @echo Do not forget to set network boot jumper, before you start the foxboard
  26. endif
  27. ifeq ($(FS),nfsroot)
  28. imageinstall: ${BIN_DIR}/${ROOTFSTARBALL}
  29. @echo
  30. @echo Use sudo ./boot_linux -F -i ${DEVICE}-${ARCH}-kernel to flash the kernel
  31. @echo Do not forget to set network boot jumper, before you start the foxboard
  32. @echo ${ROOTFSTARBALL} is your nfs root and can be extracted on your nfs server
  33. endif