| 1 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 2 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 3 |
|
|---|
| 4 | define target_template
|
|---|
| 5 | ifeq ($(FWRT_LINUX_$(4)),y)
|
|---|
| 6 | KERNEL:=$(1)
|
|---|
| 7 | BOARD:=$(2)
|
|---|
| 8 | MODEL:=$(3)
|
|---|
| 9 | FWRT_LAN:=$(5)
|
|---|
| 10 | FWRT_WAN:=$(6)
|
|---|
| 11 | FWRT_WLAN:=$(7)
|
|---|
| 12 | FWRT_SWITCH:=$(8)
|
|---|
| 13 | endif
|
|---|
| 14 | endef
|
|---|
| 15 |
|
|---|
| 16 | # asus models
|
|---|
| 17 | $(eval $(call target_template,6.12,brcm,asus-wl500g,BRCM_ASUS_WL500G,eth0,eth1,eth2,n))
|
|---|
| 18 | $(eval $(call target_template,6.12,brcm,asus-wl500g-deluxe,BRCM_ASUS_WL500G_DELUXE,eth0.0,eth0.1,eth1,y))
|
|---|
| 19 | $(eval $(call target_template,6.12,brcm,asus-wl500g-premium,BRCM_ASUS_WL500G_PREMIUM,eth0.0,eth0.1,eth2,y))
|
|---|
| 20 | # linksys models
|
|---|
| 21 | $(eval $(call target_template,6.12,brcm,linksys-wrt54gs-10,BRCM_LINKSYS_WRT54GS_10,eth0.0,eth0.1,eth1,y))
|
|---|
| 22 | $(eval $(call target_template,6.12,brcm,linksys-wrt54gs-11,BRCM_LINKSYS_WRT54GS_11,eth0.0,eth0.1,eth1,y))
|
|---|
| 23 | $(eval $(call target_template,6.12,brcm,linksys-wrt54gs-4,BRCM_LINKSYS_WRT54GS_4,eth0.0,eth0.1,eth1,r))
|
|---|
| 24 | $(eval $(call target_template,6.12,brcm,linksys-wrt54g-20,BRCM_LINKSYS_WRT54G_20,eth0.0,eth0.1,eth1,y))
|
|---|
| 25 | $(eval $(call target_template,6.12,brcm,linksys-wrt54g-22,BRCM_LINKSYS_WRT54G_22,eth0.0,eth0.1,eth1,y))
|
|---|
| 26 | $(eval $(call target_template,6.12,brcm,linksys-wrt54g-30,BRCM_LINKSYS_WRT54G_30,eth0.0,eth0.1,eth1,y))
|
|---|
| 27 | $(eval $(call target_template,6.12,brcm,linksys-wrt54g-31,BRCM_LINKSYS_WRT54G_31,eth0.0,eth0.1,eth1,y))
|
|---|
| 28 | $(eval $(call target_template,6.12,brcm,linksys-wrt54g-4,BRCM_LINKSYS_WRT54G_4,eth0.0,eth0.1,eth1,y))
|
|---|
| 29 | $(eval $(call target_template,6.12,brcm,linksys-wrt54gl,BRCM_LINKSYS_WRT54GL,eth0.0,eth0.1,eth1,r))
|
|---|
| 30 | $(eval $(call target_template,6.12,brcm,linksys-wrt54g3g,BRCM_LINKSYS_WRT54G3G,eth0.0,eth0.1,eth1,y))
|
|---|
| 31 | # netgear models
|
|---|
| 32 | $(eval $(call target_template,6.12,brcm,netgear-wgt634u,BRCM_NETGEAR_WGT634U,eth0.0,eth0.1,ath0,r))
|
|---|
| 33 |
|
|---|
| 34 | # set kernel version
|
|---|
| 35 | KERNEL_VERSION=6.12
|
|---|
| 36 | KERNEL_RELEASE=1
|
|---|
| 37 | KERNEL_MOD_SUFFIX=ko
|
|---|
| 38 |
|
|---|
| 39 | # set architecture
|
|---|
| 40 | ifeq ($(BOARD),brcm)
|
|---|
| 41 | CPU_ARCH=mipsel
|
|---|
| 42 | KERNEL_ARCH=mips
|
|---|
| 43 | endif
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | export BOARD
|
|---|
| 47 | export CPU_ARCH
|
|---|
| 48 | export KERNEL_ARCH
|
|---|
| 49 | export KERNEL
|
|---|
| 50 | export KERNEL_VERSION
|
|---|
| 51 | export MODEL
|
|---|
| 52 | export FWRT_LAN
|
|---|
| 53 | export FWRT_WAN
|
|---|
| 54 | export FWRT_WLAN
|
|---|
| 55 | export FWRT_SWITCH
|
|---|
| 56 |
|
|---|
| 57 | define rootfs_template
|
|---|
| 58 | ifeq ($(FWRT_TARGET_ROOTFS_$(2)),y)
|
|---|
| 59 | FS:=$(1)
|
|---|
| 60 | endif
|
|---|
| 61 | endef
|
|---|
| 62 |
|
|---|
| 63 | $(eval $(call rootfs_template,jffs2,JFFS2))
|
|---|
| 64 | $(eval $(call rootfs_template,squashfs,SQUASHFS))
|
|---|
| 65 |
|
|---|
| 66 | export FS
|
|---|
| 67 |
|
|---|
| 68 | FWRT_VERSION=2.0
|
|---|
| 69 | export FWRT_VERSION
|
|---|