add global make download target
[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 source:
29 $(MAKE) -C $(BOARD)-$(KERNEL) source
30 $(MAKE) -C image/$(BOARD) source
31
32 prepare:
33 $(MAKE) -C $(BOARD)-$(KERNEL) prepare
34
35 compile:
36 $(MAKE) -C $(BOARD)-$(KERNEL) compile
37
38 install:
39 $(MAKE) -C $(BOARD)-$(KERNEL) install
40 $(MAKE) -C image/$(BOARD) install
41
42 clean:
43 $(MAKE) -C $(BOARD)-$(KERNEL) clean
44
45 image/%:
46 $(MAKE) -C image $(patsubst image/%,%,$@)
This page took 0.053678 seconds and 5 git commands to generate.