source: freewrt/mk/targets.mk@ e702f43

freewrt_1_0 freewrt_2_0
Last change on this file since e702f43 was 94a3833, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • part 1

do not overwrite ARCH in mk/targets.mk
ARCH is used for ipkg package creation.

Add two new variables:
CPU_ARCH -> architecture + endianess f.e. mipsel
KERNEL_ARCH -> architecture for Kernel modules f.e. mips

fix all kernel module packages to use these variables.

  • part 2

start creation of board+kernel+model+fs specific
base-files-arch and kernel packages. needed for web image builder (wib)

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@804 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.33.3
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)
50CPU_ARCH=mipsel
51KERNEL_ARCH=mips
52endif
53
54export BOARD
55export CPU_ARCH
56export KERNEL_ARCH
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.