source: freewrt/mk/targets.mk@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was 75db7c7, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

add the missing v3.1/v4 from linksys wrt54g, which are very equal to v3 and should be supported

git-svn-id: svn://www.freewrt.org/trunk/freewrt@684 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.3 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)
12endif
13endef
14
15# asus models
16$(eval $(call target_template,2.4,brcm,asus-wl500g,2_4_BRCM_ASUS_WL500G))
17$(eval $(call target_template,2.4,brcm,asus-wl500g-deluxe,2_4_BRCM_ASUS_WL500G_DELUXE))
18$(eval $(call target_template,2.4,brcm,asus-wl500g-premium,2_4_BRCM_ASUS_WL500G_PREMIUM))
19# linksys models
20$(eval $(call target_template,2.4,brcm,linksys-wrt54gs-10,2_4_BRCM_LINKSYS_WRT54GS_1_0))
21$(eval $(call target_template,2.4,brcm,linksys-wrt54gs-11,2_4_BRCM_LINKSYS_WRT54GS_1_1))
22$(eval $(call target_template,2.4,brcm,linksys-wrt54gs-4,2_4_BRCM_LINKSYS_WRT54GS_4))
23$(eval $(call target_template,2.4,brcm,linksys-wrt54g-10,2_4_BRCM_LINKSYS_WRT54G_1_0))
24$(eval $(call target_template,2.4,brcm,linksys-wrt54g-11,2_4_BRCM_LINKSYS_WRT54G_1_1))
25$(eval $(call target_template,2.4,brcm,linksys-wrt54g-20,2_4_BRCM_LINKSYS_WRT54G_2_0))
26$(eval $(call target_template,2.4,brcm,linksys-wrt54g-22,2_4_BRCM_LINKSYS_WRT54G_2_2))
27$(eval $(call target_template,2.4,brcm,linksys-wrt54g-30,2_4_BRCM_LINKSYS_WRT54G_3_0))
28$(eval $(call target_template,2.4,brcm,linksys-wrt54g-31,2_4_BRCM_LINKSYS_WRT54G_3_1))
29$(eval $(call target_template,2.4,brcm,linksys-wrt54g-4,2_4_BRCM_LINKSYS_WRT54G_4))
30$(eval $(call target_template,2.4,brcm,linksys-wrt54gl,2_4_BRCM_LINKSYS_WRT54GL))
31$(eval $(call target_template,2.4,brcm,linksys-wrt54g3g,2_4_BRCM_LINKSYS_WRT54G3G))
32# netgear models
33$(eval $(call target_template,2.4,brcm,netgear-wgt634u,2_4_BRCM_NETGEAR_WGT634U))
34
35
36# set kernel version
37ifeq ($(KERNEL),2.4)
38KERNEL_VERSION=2.4.32
39KERNEL_RELEASE=1
40KERNEL_MOD_SUFFIX=o
41endif
42ifeq ($(KERNEL),2.6)
43KERNEL_VERSION=2.6.17
44KERNEL_RELEASE=1
45KERNEL_MOD_SUFFIX=ko
46endif
47
48# set architecture
49ifeq ($(BOARD),brcm)
50ARCH=mips
51KARCH=mipsel
52endif
53
54export BOARD
55export ARCH
56export KARCH
57export KERNEL
58export KERNEL_VERSION
59export MODEL
60
61define rootfs_template
62ifeq ($(FWRT_TARGET_ROOTFS_$(2)),y)
63FS:=$(1)
64endif
65endef
66
67$(eval $(call rootfs_template,jffs2,JFFS2))
68$(eval $(call rootfs_template,squashfs-overlay,SQUASHFS_OVERLAY))
69$(eval $(call rootfs_template,squashfs-symlinks,SQUASHFS_SYMLINKS))
70
71export FS
Note: See TracBrowser for help on using the repository browser.