move cflags default setting to target makefiles
[openwrt/svn-archive/archive.git] / target / linux / storm / Makefile
1 #
2 # Copyright (C) 2006-2008 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
9 ARCH:=arm
10 BOARD:=storm
11 BOARDNAME:=Storm SL3512
12 FEATURES:=squashfs pci broken
13 CFLAGS:=-Os -pipe -march=armv4 -mtune=arm9tdmi -funit-at-a-time
14
15 LINUX_VERSION:=2.6.23.17
16
17 include $(INCLUDE_DIR)/target.mk
18
19 define Target/Description
20 Build images for boards based on the Storm Semiconductor SL3512, eg. Wiligear WBD-111
21 endef
22
23 define Kernel/Configure
24 $(call Kernel/Configure/Default)
25 $(SED) 's,.*CONFIG_AEABI.*,$(if $(CONFIG_EABI_SUPPORT),CONFIG_AEABI=y,# CONFIG_AEABI is not set),' $(LINUX_DIR)/.config
26 $(if $(CONFIG_EABI_SUPPORT),echo '# CONFIG_OABI_COMPAT is not set' >> $(LINUX_DIR)/.config)
27 endef
28
29 $(eval $(call BuildTarget))