fix rb532 for 2.6.17
[openwrt.git] / target / linux / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_OS:=$(shell uname -s)
4 PKG_CPU:=$(shell uname -m)
5
6 define kernel_template
7 ifeq ($(CONFIG_LINUX_$(3)),y)
8 KERNEL:=$(1)
9 BOARD:=$(2)
10 endif
11 endef
12
13 $(eval $(call kernel_template,2.4,brcm,2_4_BRCM))
14 $(eval $(call kernel_template,2.4,ar7,2_4_AR7))
15 $(eval $(call kernel_template,2.4,x86,2_4_X86))
16 $(eval $(call kernel_template,2.6,brcm,2_6_BRCM))
17 $(eval $(call kernel_template,2.6,rb532,2_6_RB532))
18 $(eval $(call kernel_template,2.6,x86,2_6_X86))
19 $(eval $(call kernel_template,2.4,ar531x,2_4_AR531X))
20 $(eval $(call kernel_template,2.6,aruba,2_6_ARUBA))
21 $(eval $(call kernel_template,2.6,au1000,2_6_AU1000))
22 $(eval $(call kernel_template,2.6,xscale,2_6_XSCALE))
23 $(eval $(call kernel_template,2.6,sibyte,2_6_SIBYTE))
24
25 export BOARD
26 export KERNEL
27
28 prepare:
29 $(MAKE) -C $(BOARD)-$(KERNEL) prepare
30
31 compile:
32 $(MAKE) -C $(BOARD)-$(KERNEL) compile
33
34 install:
35 $(MAKE) -C $(BOARD)-$(KERNEL) install
36 $(MAKE) -C image/$(BOARD) install
37
38 clean:
39 $(MAKE) -C $(BOARD)-$(KERNEL) clean
40
41 image/%:
42 $(MAKE) -C image $(patsubst image/%,%,$@)
This page took 0.042374 seconds and 5 git commands to generate.