source: trunk/target/linux/etrax/Makefile @ 8694

Last change on this file since 8694 was 8694, checked in by nbd, 10 years ago

major target cleanup. it is now possible to have subtargets that can override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets

File size: 1.3 KB
Line 
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#
7include $(TOPDIR)/rules.mk
8
9ARCH:=cris
10BOARD:=etrax
11BOARDNAME:=Foxboard (ETRAX 100LX)
12FEATURES:=squashfs jffs2
13LINUX_VERSION:=2.6.19.2
14
15include $(INCLUDE_DIR)/target.mk
16
17KERNELNAME:="zImage"
18DEFAULT_PACKAGES += foxboard-utils
19
20define Target/Description
21        Build fimware images for the FOXBOARD made by acmesystems.it
22endef
23
24define Kernel/Prepare/Fox
25        bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
26        if [ -d ./files ]; then $(CP) ./files/* $(LINUX_DIR)/; fi
27        if [ -d ./patches/generic_2.6 ]; then $(PATCH) $(LINUX_DIR) ./patches/generic_2.6; fi
28        if [ -d ./patches/cris ]; then $(PATCH) $(LINUX_DIR) ./patches/cris; fi
29        ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/include/asm-cris/arch-v10 $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/include/asm-cris/arch
30        ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/arch/cris/arch-v10 $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/arch/cris/arch
31endef
32
33define Kernel/Prepare
34        $(call Kernel/Prepare/Fox)
35endef
36
37#include the profiles
38-include profiles/*.mk
39
40$(eval $(call BuildTarget))
41$(eval $(call RequireCommand,/usr/local/cris/gcc-cris, \
42        Please install the binary cris toolchain. \
43))
Note: See TracBrowser for help on using the repository browser.