add kernel package with version-specific /etc/modules
[openwrt.git] / target / linux / Makefile
1 include $(TOPDIR)/rules.mk
2
3 define kernel_template
4
5 $(1)/$(2)-clean:
6 $(MAKE) -C $(1) BOARD="$(2)" clean
7
8 $(1)/$(2)-prepare:
9 $(MAKE) -C $(1) BOARD="$(2)" prepare
10
11 $(1)/$(2)-compile:
12 $(MAKE) -C $(1) BOARD="$(2)" compile
13
14 $(1)/$(2)-rebuild:
15 $(MAKE) -C $(1) BOARD="$(2)" rebuild
16
17 $(1)/$(2)-install:
18 $(MAKE) -C $(1) BOARD="$(2)" install
19
20 ifeq ($(BR2_LINUX_$(3)),y)
21 clean: $(1)/$(2)-clean
22 prepare: $(1)/$(2)-prepare
23 compile: $(1)/$(2)-compile
24 rebuild: $(1)/$(2)-rebuild
25 install: $(1)/$(2)-install
26 endif
27
28 .PHONY: $(1)/$(2)-clean $(1)/$(2)-prepare $(1)/$(2)-compile $(1)/$(2)-rebuild $(1)/$(2)-install
29 endef
30
31 prepare:
32 compile:
33 install:
34 rebuild:
35 clean:
36 rm -rf $(BUILD_DIR)/kernel
37
38 $(eval $(call kernel_template,linux-2.4,brcm,2_4_BRCM))
This page took 0.04886 seconds and 5 git commands to generate.