source: freewrt/mk/targets.mk

freewrt_2_0
Last change on this file was 78d1618, checked in by Waldemar Brodkorb <wbx@…>, 4 months ago

rename squashfs-overlay to squashfs

  • Property mode set to 100644
File size: 2.3 KB
Line 
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
4define target_template
5ifeq ($(FWRT_LINUX_$(4)),y)
6KERNEL:=$(1)
7BOARD:=$(2)
8MODEL:=$(3)
9FWRT_LAN:=$(5)
10FWRT_WAN:=$(6)
11FWRT_WLAN:=$(7)
12FWRT_SWITCH:=$(8)
13endif
14endef
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
35KERNEL_VERSION=6.12
36KERNEL_RELEASE=1
37KERNEL_MOD_SUFFIX=ko
38
39# set architecture
40ifeq ($(BOARD),brcm)
41CPU_ARCH=mipsel
42KERNEL_ARCH=mips
43endif
44
45
46export BOARD
47export CPU_ARCH
48export KERNEL_ARCH
49export KERNEL
50export KERNEL_VERSION
51export MODEL
52export FWRT_LAN
53export FWRT_WAN
54export FWRT_WLAN
55export FWRT_SWITCH
56
57define rootfs_template
58ifeq ($(FWRT_TARGET_ROOTFS_$(2)),y)
59FS:=$(1)
60endif
61endef
62
63$(eval $(call rootfs_template,jffs2,JFFS2))
64$(eval $(call rootfs_template,squashfs,SQUASHFS))
65
66export FS
67
68FWRT_VERSION=2.0
69export FWRT_VERSION
Note: See TracBrowser for help on using the repository browser.