# $FreeWRT$ #- # This file is part of the FreeWRT project. FreeWRT is copyrighted # material, please see the LICENCE file in the top-level directory # or at http://www.freewrt.org/licence for details. include $(TOPDIR)/rules.mk define kernel_template $(1)/$(2)/$(3)-clean: @$(TRACE) target/linux/$(2)-$(1)-clean $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" clean $(1)/$(2)/$(3)-prepare: @$(TRACE) target/linux/$(2)-$(1)-prepare $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" prepare $(1)/$(2)/$(3)-compile: @$(TRACE) target/linux/$(2)-$(1)-compile $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" compile $(1)/$(2)/$(3)-rebuild: @$(TRACE) target/linux/$(2)-$(1)-rebuild $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" rebuild $(1)/$(2)/$(3)-install: @$(TRACE) target/linux/$(2)-$(1)-install $(MAKE) -C $(2)-$(1) BOARD="$(2)" MODEL="$(3)" install ifeq ($(FWRT_LINUX_$(4)),y) clean: $(1)/$(2)/$(3)-clean prepare: $(1)/$(2)/$(3)-prepare compile: $(1)/$(2)/$(3)-compile rebuild: $(1)/$(2)/$(3)-rebuild install: $(1)/$(2)/$(3)-install endif .PHONY: $(1)/$(2)/$(3)-clean $(1)/$(2)/$(3)-prepare \ $(1)/$(2)/$(3)-compile $(1)/$(2)/$(3)-rebuild \ $(1)/$(2)/$(3)-install endef .PHONY: clean prepare compile rebuild install prepare: compile: install: rebuild: clean: # asus models $(eval $(call kernel_template,2.4,brcm,asus-wl500g,2_4_BRCM_ASUS_WL500G)) $(eval $(call kernel_template,2.4,brcm,asus-wl500g-deluxe,2_4_BRCM_ASUS_WL500G_DELUXE)) $(eval $(call kernel_template,2.4,brcm,asus-wl500g-premium,2_4_BRCM_ASUS_WL500G_PREMIUM)) # linksys models $(eval $(call kernel_template,2.4,brcm,linksys-wrt54gs-10,2_4_BRCM_LINKSYS_WRT54GS_1_0)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54gs-11,2_4_BRCM_LINKSYS_WRT54GS_1_1)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54gs-4,2_4_BRCM_LINKSYS_WRT54GS_4)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-10,2_4_BRCM_LINKSYS_WRT54G_1_0)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-11,2_4_BRCM_LINKSYS_WRT54G_1_1)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-20,2_4_BRCM_LINKSYS_WRT54G_2_0)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-22,2_4_BRCM_LINKSYS_WRT54G_2_2)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54g-30,2_4_BRCM_LINKSYS_WRT54G_3_0)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54gl,2_4_BRCM_LINKSYS_WRT54GL)) $(eval $(call kernel_template,2.4,brcm,linksys-wrt54g3g,2_4_BRCM_LINKSYS_WRT54G3G)) # netgear models $(eval $(call kernel_template,2.4,brcm,netgear-wgt634u,2_4_BRCM_NETGEAR_WGT634U))