| 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 |
|
|---|
| 7 | define target_template
|
|---|
| 8 | ifeq ($(FWRT_LINUX_$(4)),y)
|
|---|
| 9 | KERNEL:=$(1)
|
|---|
| 10 | BOARD:=$(2)
|
|---|
| 11 | MODEL:=$(3)
|
|---|
| 12 | endif
|
|---|
| 13 | endef
|
|---|
| 14 |
|
|---|
| 15 | $(eval $(call target_template,2.4,brcm,asus-wl500g,2_4_BRCM_ASUS_WL500G))
|
|---|
| 16 | $(eval $(call target_template,2.4,brcm,linksys-wrt54gs-10,2_4_BRCM_LINKSYS_WRT54GS_10))
|
|---|
| 17 |
|
|---|
| 18 | export BOARD
|
|---|
| 19 | export KERNEL
|
|---|
| 20 | export MODEL
|
|---|
| 21 |
|
|---|
| 22 | define rootfs_template
|
|---|
| 23 | ifeq ($(FWRT_TARGET_ROOTFS_$(2)),y)
|
|---|
| 24 | FS:=$(1)
|
|---|
| 25 | endif
|
|---|
| 26 | endef
|
|---|
| 27 |
|
|---|
| 28 | $(eval $(call rootfs_template,jffs2,JFFS2))
|
|---|
| 29 | $(eval $(call rootfs_template,squashfs,SQUASHFS_OVERLAY))
|
|---|
| 30 |
|
|---|
| 31 | export FS
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.