source: freewrt/target/linux/Makefile@ db5651c

freewrt_1_0 freewrt_2_0
Last change on this file since db5651c was db5651c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

merge wbx-target-cleanup to trunk.

  • mk directory for some top level makefiles (build.mk,vars.mk)
  • add a separate configfs partition to all models, 128 kb big
  • add model and platform specific startup files and kernel configs
  • delete target/linux/package, add all addon kernel packages to packages
  • simplify target/linux/brcm-2.4/Makefile, abstraction to mk/ comes later
  • add target/image directory, place where the different images are created
  • default off for all extra packages, be sure that you enable all packages you need to get a dsl-capable router. snapshots will be created by a specific config which contains all needed stuff (iptables, pppoe, pptp, haserl, webif)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@588 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.5 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_1_0))
58$(eval $(call kernel_template,2.4,brcm,linksys-wrt54gs-11,2_4_BRCM_LINKSYS_WRT54GS_1_1))
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_1_0))
61$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-11,2_4_BRCM_LINKSYS_WRT54G_1_1))
62$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-20,2_4_BRCM_LINKSYS_WRT54G_2_0))
63$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-22,2_4_BRCM_LINKSYS_WRT54G_2_2))
64$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-30,2_4_BRCM_LINKSYS_WRT54G_3_0))
65$(eval $(call kernel_template,2.4,brcm,linksys-wrt54gl,2_4_BRCM_LINKSYS_WRT54GL))
66$(eval $(call kernel_template,2.4,brcm,linksys-wrt54g3g,2_4_BRCM_LINKSYS_WRT54G3G))
67# netgear models
68$(eval $(call kernel_template,2.4,brcm,netgear-wgt634u,2_4_BRCM_NETGEAR_WGT634U))
Note: See TracBrowser for help on using the repository browser.