Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. ARCH:=cris
  9. BOARD:=etrax
  10. BOARDNAME:=Foxboard (ETRAX 100LX)
  11. FEATURES:=squashfs jffs2 broken
  12. LINUX_VERSION:=2.6.19.2
  13. include $(INCLUDE_DIR)/target.mk
  14. KERNELNAME:="zImage"
  15. DEFAULT_PACKAGES += foxboard-utils
  16. define Target/Description
  17. Build fimware images for the FOXBOARD made by acmesystems.it
  18. endef
  19. define Kernel/Prepare/Fox
  20. bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
  21. if [ -d ./files ]; then $(CP) ./files/* $(LINUX_DIR)/; fi
  22. if [ -d ./patches/generic_2.6 ]; then $(PATCH) $(LINUX_DIR) ./patches/generic_2.6; fi
  23. if [ -d ./patches/cris ]; then $(PATCH) $(LINUX_DIR) ./patches/cris; fi
  24. ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/include/asm-cris/arch-v10 $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/include/asm-cris/arch
  25. ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/arch/cris/arch-v10 $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/arch/cris/arch
  26. endef
  27. define Kernel/Prepare
  28. $(call Kernel/Prepare/Fox)
  29. endef
  30. $(eval $(call BuildTarget))
  31. $(eval $(call RequireCommand,/usr/local/cris/gcc-cris, \
  32. Please install the binary cris toolchain. \
  33. ))