source: freewrt/target/linux/Makefile@ 5d4c61f

freewrt_1_0 freewrt_2_0
Last change on this file since 5d4c61f was 5d4c61f, checked in by Dirk Nehring <dnehring@…>, 19 years ago

Fix forgotten target names, now it builds

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1706 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.6 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9define kernel_template
10
11$(1)/$(2)/$(3)-clean:
12 @$(TRACE) target/linux/$(2)-$(1)-clean
13 $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" clean
14
15$(1)/$(2)/$(3)-prepare:
16 @$(TRACE) target/linux/$(2)-$(1)-prepare
17 $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" prepare
18
19$(1)/$(2)/$(3)-compile:
20 @$(TRACE) target/linux/$(2)-$(1)-compile
21 $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" compile
22
23$(1)/$(2)/$(3)-rebuild:
24 @$(TRACE) target/linux/$(2)-$(1)-rebuild
25 $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" rebuild
26
27$(1)/$(2)/$(3)-install:
28 @$(TRACE) target/linux/$(2)-$(1)-install
29 $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" install
30
31ifeq ($(FWRT_LINUX_$(4)),y)
32clean: $(1)/$(2)/$(3)-clean
33prepare: $(1)/$(2)/$(3)-prepare
34compile: $(1)/$(2)/$(3)-compile
35rebuild: $(1)/$(2)/$(3)-rebuild
36install: $(1)/$(2)/$(3)-install
37endif
38
39.PHONY: $(1)/$(2)/$(3)-clean $(1)/$(2)/$(3)-prepare \
40 $(1)/$(2)/$(3)-compile $(1)/$(2)/$(3)-rebuild \
41 $(1)/$(2)/$(3)-install
42endef
43
44.PHONY: clean prepare compile rebuild install
45
46prepare:
47compile:
48install:
49rebuild:
50clean:
51
52# asus models
53$(eval $(call kernel_template,2.4,brcm,asus-wl500g,2_4_BRCM_ASUS_WL500G))
54$(eval $(call kernel_template,2.4,brcm,asus-wl500g-deluxe,2_4_BRCM_ASUS_WL500G_DELUXE))
55$(eval $(call kernel_template,2.4,brcm,asus-wl500g-premium,2_4_BRCM_ASUS_WL500G_PREMIUM))
56# linksys models
57$(eval $(call kernel_template,2.4,brcm,linksys-wrt54gs-10,2_4_BRCM_LINKSYS_WRT54GS_10))
58$(eval $(call kernel_template,2.4,brcm,linksys-wrt54gs-11,2_4_BRCM_LINKSYS_WRT54GS_11))
59$(eval $(call kernel_template,2.4,brcm,linksys-wrt54gs-4,2_4_BRCM_LINKSYS_WRT54GS_4))
60$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-10,2_4_BRCM_LINKSYS_WRT54G_10))
61$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-11,2_4_BRCM_LINKSYS_WRT54G_11))
62$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-20,2_4_BRCM_LINKSYS_WRT54G_20))
63$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-22,2_4_BRCM_LINKSYS_WRT54G_22))
64$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-30,2_4_BRCM_LINKSYS_WRT54G_30))
65$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-31,2_4_BRCM_LINKSYS_WRT54G_31))
66$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-4,2_4_BRCM_LINKSYS_WRT54G_4))
67$(eval $(call kernel_template,2.4,brcm,linksys-wrt54gl,2_4_BRCM_LINKSYS_WRT54GL))
68$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g3g,2_4_BRCM_LINKSYS_WRT54G3G))
69# netgear models
70$(eval $(call kernel_template,2.4,brcm,netgear-wgt634u,2_4_BRCM_NETGEAR_WGT634U))
Note: See TracBrowser for help on using the repository browser.