6c21f517bf79873c58e662905119bfe2b7ffff98
[openwrt/openwrt.git] / include / target.mk
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 define kernel_template
8 ifeq ($(CONFIG_LINUX_$(3)),y)
9 KERNEL:=$(1)
10 BOARD:=$(2)
11 endif
12 endef
13
14 $(eval $(call kernel_template,2.4,brcm,2_4_BRCM))
15 $(eval $(call kernel_template,2.4,ar7,2_4_AR7))
16 $(eval $(call kernel_template,2.6,brcm,2_6_BRCM))
17 $(eval $(call kernel_template,2.6,brcm63xx,2_6_BRCM63XX))
18 $(eval $(call kernel_template,2.6,rb532,2_6_RB532))
19 $(eval $(call kernel_template,2.6,x86,2_6_X86))
20 $(eval $(call kernel_template,2.6,uml,2_6_UML))
21 $(eval $(call kernel_template,2.4,ar531x,2_4_AR531X))
22 $(eval $(call kernel_template,2.6,aruba,2_6_ARUBA))
23 $(eval $(call kernel_template,2.6,au1000,2_6_AU1000))
24 $(eval $(call kernel_template,2.6,xscale,2_6_XSCALE))
25 $(eval $(call kernel_template,2.6,magicbox,2_6_MAGICBOX))
26 $(eval $(call kernel_template,2.6,sibyte,2_6_SIBYTE))
27
28 export BOARD
29 export KERNEL
30
31