diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-05-07 16:20:32 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-05-07 16:20:32 +0000 |
commit | 9c1a6467773d49df85b4e0797947ad7830b9d68a (patch) | |
tree | aa3c35129007185c523ba8da15ce39f0c6085712 /target/linux/ar71xx | |
parent | 50413a4e86234d14215bb52be0ccce63c34d5e6f (diff) |
ar71xx: add a new subtarget for nand based devices - saves around 44k on the lzma compressed generic kernel image
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21396 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/Makefile | 1 | ||||
-rw-r--r-- | target/linux/ar71xx/config-2.6.32 | 12 | ||||
-rw-r--r-- | target/linux/ar71xx/config-2.6.33 | 12 | ||||
-rw-r--r-- | target/linux/ar71xx/config-2.6.34 | 12 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/config-default | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/00-default.mk (renamed from target/linux/ar71xx/profiles/00-default.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/01-minimal.mk (renamed from target/linux/ar71xx/profiles/01-minimal.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/02-madwifi.mk (renamed from target/linux/ar71xx/profiles/02-madwifi.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/atheros.mk (renamed from target/linux/ar71xx/profiles/atheros.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/atlantis.mk (renamed from target/linux/ar71xx/profiles/atlantis.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/buffalo.mk (renamed from target/linux/ar71xx/profiles/buffalo.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/compex.mk (renamed from target/linux/ar71xx/profiles/compex.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/d-link.mk (renamed from target/linux/ar71xx/profiles/d-link.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/linksys.mk (renamed from target/linux/ar71xx/profiles/linksys.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/netgear.mk (renamed from target/linux/ar71xx/profiles/netgear.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/planex.mk (renamed from target/linux/ar71xx/profiles/planex.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/tp-link.mk (renamed from target/linux/ar71xx/profiles/tp-link.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/trendnet.mk (renamed from target/linux/ar71xx/profiles/trendnet.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/ubnt.mk (renamed from target/linux/ar71xx/profiles/ubnt.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/profiles/zyxel.mk (renamed from target/linux/ar71xx/profiles/zyxel.mk) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/generic/target.mk | 7 | ||||
-rw-r--r-- | target/linux/ar71xx/nand/config-default | 13 | ||||
-rw-r--r-- | target/linux/ar71xx/nand/profiles/01-minimal.mk | 16 | ||||
-rw-r--r-- | target/linux/ar71xx/nand/profiles/02-madwifi.mk | 16 | ||||
-rw-r--r-- | target/linux/ar71xx/nand/target.mk | 8 |
25 files changed, 61 insertions, 36 deletions
diff --git a/target/linux/ar71xx/Makefile b/target/linux/ar71xx/Makefile index 540fe51d1..d3bf6878d 100644 --- a/target/linux/ar71xx/Makefile +++ b/target/linux/ar71xx/Makefile @@ -11,6 +11,7 @@ BOARD:=ar71xx BOARDNAME:=Atheros AR71xx/AR7240/AR913x FEATURES:=squashfs jffs2 targz CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time +SUBTARGETS:=generic nand LINUX_VERSION:=2.6.32.12 diff --git a/target/linux/ar71xx/config-2.6.32 b/target/linux/ar71xx/config-2.6.32 index 5c1722063..8987a6343 100644 --- a/target/linux/ar71xx/config-2.6.32 +++ b/target/linux/ar71xx/config-2.6.32 @@ -164,9 +164,6 @@ CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_JEDECPROBE=y CONFIG_MTD_M25P80=y CONFIG_MTD_MYLOADER_PARTS=y -CONFIG_MTD_NAND=y -CONFIG_MTD_NAND_RB4XX=y -CONFIG_MTD_NAND_RB750=y CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2 CONFIG_MTD_REDBOOT_PARTS=y CONFIG_MTD_WRT160NL_PARTS=y @@ -240,13 +237,4 @@ CONFIG_TRAD_SIGNALS=y # CONFIG_TREE_PREEMPT_RCU is not set CONFIG_TREE_RCU=y CONFIG_USB_SUPPORT=y -CONFIG_YAFFS_9BYTE_TAGS=y -CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED=y -CONFIG_YAFFS_AUTO_YAFFS2=y -# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set -# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set -CONFIG_YAFFS_FS=y -CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y -CONFIG_YAFFS_YAFFS1=y -CONFIG_YAFFS_YAFFS2=y CONFIG_ZONE_DMA_FLAG=0 diff --git a/target/linux/ar71xx/config-2.6.33 b/target/linux/ar71xx/config-2.6.33 index ca49737f7..0cd235866 100644 --- a/target/linux/ar71xx/config-2.6.33 +++ b/target/linux/ar71xx/config-2.6.33 @@ -203,9 +203,6 @@ CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_JEDECPROBE=y CONFIG_MTD_M25P80=y CONFIG_MTD_MYLOADER_PARTS=y -CONFIG_MTD_NAND=y -CONFIG_MTD_NAND_RB4XX=y -CONFIG_MTD_NAND_RB750=y CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2 CONFIG_MTD_REDBOOT_PARTS=y CONFIG_MTD_WRT160NL_PARTS=y @@ -281,13 +278,4 @@ CONFIG_TRAD_SIGNALS=y # CONFIG_TREE_PREEMPT_RCU is not set CONFIG_TREE_RCU=y CONFIG_USB_SUPPORT=y -CONFIG_YAFFS_9BYTE_TAGS=y -CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED=y -CONFIG_YAFFS_AUTO_YAFFS2=y -# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set -# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set -CONFIG_YAFFS_FS=y -CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y -CONFIG_YAFFS_YAFFS1=y -CONFIG_YAFFS_YAFFS2=y CONFIG_ZONE_DMA_FLAG=0 diff --git a/target/linux/ar71xx/config-2.6.34 b/target/linux/ar71xx/config-2.6.34 index 7085b227b..b11442c13 100644 --- a/target/linux/ar71xx/config-2.6.34 +++ b/target/linux/ar71xx/config-2.6.34 @@ -226,9 +226,6 @@ CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_JEDECPROBE=y CONFIG_MTD_M25P80=y CONFIG_MTD_MYLOADER_PARTS=y -CONFIG_MTD_NAND=y -CONFIG_MTD_NAND_RB4XX=y -CONFIG_MTD_NAND_RB750=y CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2 CONFIG_MTD_REDBOOT_PARTS=y CONFIG_MTD_WRT160NL_PARTS=y @@ -306,13 +303,4 @@ CONFIG_TRAD_SIGNALS=y # CONFIG_TREE_PREEMPT_RCU is not set CONFIG_USB_SUPPORT=y CONFIG_VLAN_8021Q=m -CONFIG_YAFFS_9BYTE_TAGS=y -CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED=y -CONFIG_YAFFS_AUTO_YAFFS2=y -# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set -# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set -CONFIG_YAFFS_FS=y -CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y -CONFIG_YAFFS_YAFFS1=y -CONFIG_YAFFS_YAFFS2=y CONFIG_ZONE_DMA_FLAG=0 diff --git a/target/linux/ar71xx/generic/config-default b/target/linux/ar71xx/generic/config-default new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/target/linux/ar71xx/generic/config-default diff --git a/target/linux/ar71xx/profiles/00-default.mk b/target/linux/ar71xx/generic/profiles/00-default.mk index aa46f22c5..aa46f22c5 100644 --- a/target/linux/ar71xx/profiles/00-default.mk +++ b/target/linux/ar71xx/generic/profiles/00-default.mk diff --git a/target/linux/ar71xx/profiles/01-minimal.mk b/target/linux/ar71xx/generic/profiles/01-minimal.mk index 3651c88ab..3651c88ab 100644 --- a/target/linux/ar71xx/profiles/01-minimal.mk +++ b/target/linux/ar71xx/generic/profiles/01-minimal.mk diff --git a/target/linux/ar71xx/profiles/02-madwifi.mk b/target/linux/ar71xx/generic/profiles/02-madwifi.mk index 7c22c53db..7c22c53db 100644 --- a/target/linux/ar71xx/profiles/02-madwifi.mk +++ b/target/linux/ar71xx/generic/profiles/02-madwifi.mk diff --git a/target/linux/ar71xx/profiles/atheros.mk b/target/linux/ar71xx/generic/profiles/atheros.mk index 4ce0e605c..4ce0e605c 100644 --- a/target/linux/ar71xx/profiles/atheros.mk +++ b/target/linux/ar71xx/generic/profiles/atheros.mk diff --git a/target/linux/ar71xx/profiles/atlantis.mk b/target/linux/ar71xx/generic/profiles/atlantis.mk index c63fd9c27..c63fd9c27 100644 --- a/target/linux/ar71xx/profiles/atlantis.mk +++ b/target/linux/ar71xx/generic/profiles/atlantis.mk diff --git a/target/linux/ar71xx/profiles/buffalo.mk b/target/linux/ar71xx/generic/profiles/buffalo.mk index 69819e586..69819e586 100644 --- a/target/linux/ar71xx/profiles/buffalo.mk +++ b/target/linux/ar71xx/generic/profiles/buffalo.mk diff --git a/target/linux/ar71xx/profiles/compex.mk b/target/linux/ar71xx/generic/profiles/compex.mk index 38d963a5c..38d963a5c 100644 --- a/target/linux/ar71xx/profiles/compex.mk +++ b/target/linux/ar71xx/generic/profiles/compex.mk diff --git a/target/linux/ar71xx/profiles/d-link.mk b/target/linux/ar71xx/generic/profiles/d-link.mk index bf99e099a..bf99e099a 100644 --- a/target/linux/ar71xx/profiles/d-link.mk +++ b/target/linux/ar71xx/generic/profiles/d-link.mk diff --git a/target/linux/ar71xx/profiles/linksys.mk b/target/linux/ar71xx/generic/profiles/linksys.mk index f3253e728..f3253e728 100644 --- a/target/linux/ar71xx/profiles/linksys.mk +++ b/target/linux/ar71xx/generic/profiles/linksys.mk diff --git a/target/linux/ar71xx/profiles/netgear.mk b/target/linux/ar71xx/generic/profiles/netgear.mk index 8545cad0c..8545cad0c 100644 --- a/target/linux/ar71xx/profiles/netgear.mk +++ b/target/linux/ar71xx/generic/profiles/netgear.mk diff --git a/target/linux/ar71xx/profiles/planex.mk b/target/linux/ar71xx/generic/profiles/planex.mk index 63e539c4e..63e539c4e 100644 --- a/target/linux/ar71xx/profiles/planex.mk +++ b/target/linux/ar71xx/generic/profiles/planex.mk diff --git a/target/linux/ar71xx/profiles/tp-link.mk b/target/linux/ar71xx/generic/profiles/tp-link.mk index 7efb1a376..7efb1a376 100644 --- a/target/linux/ar71xx/profiles/tp-link.mk +++ b/target/linux/ar71xx/generic/profiles/tp-link.mk diff --git a/target/linux/ar71xx/profiles/trendnet.mk b/target/linux/ar71xx/generic/profiles/trendnet.mk index 20a08f384..20a08f384 100644 --- a/target/linux/ar71xx/profiles/trendnet.mk +++ b/target/linux/ar71xx/generic/profiles/trendnet.mk diff --git a/target/linux/ar71xx/profiles/ubnt.mk b/target/linux/ar71xx/generic/profiles/ubnt.mk index a7fd9a261..a7fd9a261 100644 --- a/target/linux/ar71xx/profiles/ubnt.mk +++ b/target/linux/ar71xx/generic/profiles/ubnt.mk diff --git a/target/linux/ar71xx/profiles/zyxel.mk b/target/linux/ar71xx/generic/profiles/zyxel.mk index 73ae4e224..73ae4e224 100644 --- a/target/linux/ar71xx/profiles/zyxel.mk +++ b/target/linux/ar71xx/generic/profiles/zyxel.mk diff --git a/target/linux/ar71xx/generic/target.mk b/target/linux/ar71xx/generic/target.mk new file mode 100644 index 000000000..9ba527bff --- /dev/null +++ b/target/linux/ar71xx/generic/target.mk @@ -0,0 +1,7 @@ +BOARDNAME:=Generic + +define Target/Description + Build firmware images for generic Atheros AR71xx/AR913x based boards. +endef + + diff --git a/target/linux/ar71xx/nand/config-default b/target/linux/ar71xx/nand/config-default new file mode 100644 index 000000000..3fa8d7b16 --- /dev/null +++ b/target/linux/ar71xx/nand/config-default @@ -0,0 +1,13 @@ +CONFIG_MTD_NAND=y +CONFIG_MTD_NAND_RB4XX=y +CONFIG_MTD_NAND_RB750=y +CONFIG_YAFFS_9BYTE_TAGS=y +CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED=y +CONFIG_YAFFS_AUTO_YAFFS2=y +# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set +# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set +CONFIG_YAFFS_FS=y +CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y +CONFIG_YAFFS_YAFFS1=y +CONFIG_YAFFS_YAFFS2=y + diff --git a/target/linux/ar71xx/nand/profiles/01-minimal.mk b/target/linux/ar71xx/nand/profiles/01-minimal.mk new file mode 100644 index 000000000..3651c88ab --- /dev/null +++ b/target/linux/ar71xx/nand/profiles/01-minimal.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/DefaultNoWifi + NAME:=Default Profile (no WiFi) + PACKAGES:= +endef + +define Profile/DefaultNoWifi/Description + Default package set compatible with most boards. +endef +$(eval $(call Profile,DefaultNoWifi)) diff --git a/target/linux/ar71xx/nand/profiles/02-madwifi.mk b/target/linux/ar71xx/nand/profiles/02-madwifi.mk new file mode 100644 index 000000000..7c22c53db --- /dev/null +++ b/target/linux/ar71xx/nand/profiles/02-madwifi.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/Madwifi + NAME:=Atheros WiFi (madwifi) + PACKAGES:=kmod-madwifi wpad-mini +endef + +define Profile/Madwifi/Description + Package set compatible with hardware using Atheros WiFi cards. +endef +$(eval $(call Profile,Madwifi)) diff --git a/target/linux/ar71xx/nand/target.mk b/target/linux/ar71xx/nand/target.mk new file mode 100644 index 000000000..f01ef645f --- /dev/null +++ b/target/linux/ar71xx/nand/target.mk @@ -0,0 +1,8 @@ +BOARDNAME:=Devices with NAND flash + +define Target/Description + Build firmware images for Atheros AR71xx/AR913x based boards with + NAND flash, e.g. MikroTik RB-4xx or RB-750 +endef + + |