We $(PLATFORM_SUBDIR)/target.mk gets included, include/kernel-version.mk hasn't yet...
[openwrt/svn-archive/archive.git] / target / linux / x86 / geos / target.mk
1 BOARDNAME:=Traverse Geos
2 FEATURES:=squashfs jffs2 ext4 pci usb gpio
3 GEOS_GPIO = $(if $(findstring 1,$(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),gpio-cs5535-new,gpio-cs5535)
4 DEFAULT_PACKAGES += kmod-ata-via-sata \
5 kmod-crypto-hw-geode kmod-crypto-ocf \
6 kmod-$(GEOS_GPIO) kmod-gpio-nsc \
7 kmod-wdt-geode kmod-hwmon-core kmod-hwmon-lm90 \
8 kmod-8139cp kmod-solos-pci \
9 kmod-i2c-core kmod-i2c-gpio \
10 kmod-i2c-algo-bit kmod-i2c-algo-pca kmod-i2c-algo-pcf \
11 kmod-usb-core kmod-usb2 kmod-usb-uhci \
12 kmod-cfg80211 kmod-mac80211 \
13 kmod-mppe kmod-pppoe kmod-pppoa kmod-pppol2tp \
14 kmod-ath kmod-ath5k kmod-ath9k \
15 kmod-cpu-msr \
16 soloscli linux-atm br2684ctl bridge ppp ppp-mod-pppoa \
17 libopenssl ocf-crypto-headers zlib hwclock hostapd \
18 flashrom
19
20 CS5535_MASK:=0x0E000048
21
22 CFLAGS += -Os -pipe -march=k6-2 -fno-align-functions -fno-align-loops -fno-align-jumps \
23 -fno-align-labels
24
25 define Target/Description
26 Build firmware images for Traverse Geos board
27 endef
28
29 define KernelPackage/$(GEOS_GPIO)/install
30 sed -i -r -e 's/$$$$$$$$/ mask=$(CS5535_MASK)/' $(1)/etc/modules.d/??-$(GEOS_GPIO)
31 endef