add ar7 lzma loader
[openwrt.git] / target / linux / Makefile
1 include $(TOPDIR)/rules.mk
2
3 define kernel_template
4
5 $(1)/$(2)-clean:
6 $(MAKE) -C linux-$(1) BOARD="$(2)" clean
7
8 $(1)/$(2)-prepare:
9 $(MAKE) -C linux-$(1) BOARD="$(2)" prepare
10
11 $(1)/$(2)-compile:
12 $(MAKE) -C linux-$(1) BOARD="$(2)" compile
13
14 $(1)/$(2)-rebuild:
15 $(MAKE) -C linux-$(1) BOARD="$(2)" rebuild
16
17 $(1)/$(2)-install:
18 $(MAKE) -C linux-$(1) BOARD="$(2)" install
19
20 $(1)/$(2)-image: $(1)/$(2)-install
21 $(MAKE) -C image KERNEL="$(1)" BOARD="$(2)" install
22
23 ifeq ($(BR2_LINUX_$(3)),y)
24 clean: $(1)/$(2)-clean
25 prepare: $(1)/$(2)-prepare
26 compile: $(1)/$(2)-compile
27 rebuild: $(1)/$(2)-rebuild
28 install: $(1)/$(2)-image
29 endif
30
31 .PHONY: $(1)/$(2)-clean $(1)/$(2)-prepare $(1)/$(2)-compile $(1)/$(2)-rebuild $(1)/$(2)-install
32 endef
33
34 prepare:
35 $(MAKE) -C image prepare
36 compile:
37 $(MAKE) -C image compile
38 install:
39 rebuild:
40 clean:
41
42 $(eval $(call kernel_template,2.4,brcm,2_4_BRCM))
43 $(eval $(call kernel_template,2.4,ar7,2_4_AR7))
This page took 0.049448 seconds and 5 git commands to generate.