| 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 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | define 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 |
|
|---|
| 31 | ifeq ($(FWRT_LINUX_$(4)),y)
|
|---|
| 32 | clean: $(1)/$(2)/$(3)-clean
|
|---|
| 33 | prepare: $(1)/$(2)/$(3)-prepare
|
|---|
| 34 | compile: $(1)/$(2)/$(3)-compile
|
|---|
| 35 | rebuild: $(1)/$(2)/$(3)-rebuild
|
|---|
| 36 | install: $(1)/$(2)/$(3)-install
|
|---|
| 37 | endif
|
|---|
| 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
|
|---|
| 42 | endef
|
|---|
| 43 |
|
|---|
| 44 | .PHONY: clean prepare compile rebuild install
|
|---|
| 45 |
|
|---|
| 46 | prepare:
|
|---|
| 47 | compile:
|
|---|
| 48 | install:
|
|---|
| 49 | rebuild:
|
|---|
| 50 | clean:
|
|---|
| 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-wrt54g-31,2_4_BRCM_LINKSYS_WRT54G_3_1))
|
|---|
| 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))
|
|---|