source: freewrt/mk/targets.mk@ d2789da

freewrt_1_0 freewrt_2_0
Last change on this file since d2789da was db5651c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

merge wbx-target-cleanup to trunk.

  • mk directory for some top level makefiles (build.mk,vars.mk)
  • add a separate configfs partition to all models, 128 kb big
  • add model and platform specific startup files and kernel configs
  • delete target/linux/package, add all addon kernel packages to packages
  • simplify target/linux/brcm-2.4/Makefile, abstraction to mk/ comes later
  • add target/image directory, place where the different images are created
  • default off for all extra packages, be sure that you enable all packages you need to get a dsl-capable router. snapshots will be created by a specific config which contains all needed stuff (iptables, pppoe, pptp, haserl, webif)

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

  • Property mode set to 100644
File size: 2.0 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-wrt54gl,2_4_BRCM_LINKSYS_WRT54GL))
29$(eval $(call target_template,2.4,brcm,linksys-wrt54g3g,2_4_BRCM_LINKSYS_WRT54G3G))
30# netgear models
31$(eval $(call target_template,2.4,brcm,netgear-wgt634u,2_4_BRCM_NETGEAR_WGT634U))
32
33
34# set kernel version
35ifeq ($(KERNEL),2.4)
36KERNEL_VERSION=2.4.32
37KERNEL_RELEASE=1
38KERNEL_MOD_SUFFIX=o
39endif
40ifeq ($(KERNEL),2.6)
41KERNEL_VERSION=2.6.17
42KERNEL_RELEASE=1
43KERNEL_MOD_SUFFIX=ko
44endif
45
46# set architecture
47ifeq ($(BOARD),brcm)
48ARCH=mips
49endif
50
51export BOARD
52export ARCH
53export KERNEL
54export KERNEL_VERSION
55export MODEL
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_OVERLAY))
65
66export FS
Note: See TracBrowser for help on using the repository browser.