source: freewrt/mk/targets.mk@ 3fdeb56

historic/freewrt_1_0_1
Last change on this file since 3fdeb56 was f665332, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix creation of base-files-arch, reported by ulmen some time ago

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1598 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.7 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/license for details.
6
7define target_template
8ifeq ($(FWRT_LINUX_$(4)),y)
9KERNEL:=$(1)
10BOARD:=$(2)
11MODEL:=$(3)
12FWRT_LAN:=$(5)
13FWRT_WAN:=$(6)
14FWRT_WLAN:=$(7)
15FWRT_SWITCH:=$(8)
16endif
17endef
18
19# asus models
20$(eval $(call target_template,2.4,brcm,asus-wl500g,2_4_BRCM_ASUS_WL500G,eth0,eth1,eth2,n))
21$(eval $(call target_template,2.4,brcm,asus-wl500g-deluxe,2_4_BRCM_ASUS_WL500G_DELUXE,eth0.0,eth0.1,eth1,y))
22$(eval $(call target_template,2.4,brcm,asus-wl500g-premium,2_4_BRCM_ASUS_WL500G_PREMIUM,eth0.0,eth0.1,eth2,y))
23# linksys models
24$(eval $(call target_template,2.4,brcm,linksys-wrt54gs-10,2_4_BRCM_LINKSYS_WRT54GS_10,eth0.0,eth0.1,eth1,y))
25$(eval $(call target_template,2.4,brcm,linksys-wrt54gs-11,2_4_BRCM_LINKSYS_WRT54GS_11,eth0.0,eth0.1,eth1,y))
26$(eval $(call target_template,2.4,brcm,linksys-wrt54gs-4,2_4_BRCM_LINKSYS_WRT54GS_4,eth0.0,eth0.1,eth1,y))
27$(eval $(call target_template,2.4,brcm,linksys-wrt54g-10,2_4_BRCM_LINKSYS_WRT54G_10,eth0,eth1,eth2,n))
28$(eval $(call target_template,2.4,brcm,linksys-wrt54g-11,2_4_BRCM_LINKSYS_WRT54G_11,eth0,eth1,eth2,n))
29$(eval $(call target_template,2.4,brcm,linksys-wrt54g-20,2_4_BRCM_LINKSYS_WRT54G_20,eth0.0,eth0.1,eth1,y))
30$(eval $(call target_template,2.4,brcm,linksys-wrt54g-22,2_4_BRCM_LINKSYS_WRT54G_22,eth0.0,eth0.1,eth1,y))
31$(eval $(call target_template,2.4,brcm,linksys-wrt54g-30,2_4_BRCM_LINKSYS_WRT54G_30,eth0.0,eth0.1,eth1,y))
32$(eval $(call target_template,2.4,brcm,linksys-wrt54g-31,2_4_BRCM_LINKSYS_WRT54G_31,eth0.0,eth0.1,eth1,y))
33$(eval $(call target_template,2.4,brcm,linksys-wrt54g-4,2_4_BRCM_LINKSYS_WRT54G_4,eth0.0,eth0.1,eth1,y))
34$(eval $(call target_template,2.4,brcm,linksys-wrt54gl,2_4_BRCM_LINKSYS_WRT54GL,eth0.0,eth0.1,eth1,r))
35$(eval $(call target_template,2.4,brcm,linksys-wrt54g3g,2_4_BRCM_LINKSYS_WRT54G3G,eth0.0,eth0.1,eth1,y))
36# netgear models
37$(eval $(call target_template,2.4,brcm,netgear-wgt634u,2_4_BRCM_NETGEAR_WGT634U,eth0.0,eth0.1,ath0,r))
38
39# set kernel version
40ifeq ($(KERNEL),2.4)
41KERNEL_VERSION=2.4.33.3
42KERNEL_RELEASE=1
43KERNEL_MOD_SUFFIX=o
44endif
45
46# set architecture
47ifeq ($(BOARD),brcm)
48CPU_ARCH=mipsel
49KERNEL_ARCH=mips
50endif
51
52
53export BOARD
54export CPU_ARCH
55export KERNEL_ARCH
56export KERNEL
57export KERNEL_VERSION
58export MODEL
59export FWRT_LAN
60export FWRT_WAN
61export FWRT_WLAN
62export FWRT_SWITCH
63
64define rootfs_template
65ifeq ($(FWRT_TARGET_ROOTFS_$(2)),y)
66FS:=$(1)
67endif
68endef
69
70$(eval $(call rootfs_template,jffs2,JFFS2))
71$(eval $(call rootfs_template,squashfs-overlay,SQUASHFS_OVERLAY))
72$(eval $(call rootfs_template,squashfs-symlinks,SQUASHFS_SYMLINKS))
73
74export FS
75
76FWRT_VERSION=1.0
77export FWRT_VERSION
Note: See TracBrowser for help on using the repository browser.