aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-05-07 16:20:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-05-07 16:20:32 +0000
commit2598c32f063f410ee32fe967db85a02432992269 (patch)
treea49faf7fc0079043cc3621974bbdab59e5c18ba9
parent0f7864456a60f1ea4a5a2ce7aa4f99d68bd4a1d9 (diff)
downloadupstream-2598c32f063f410ee32fe967db85a02432992269.tar.gz
upstream-2598c32f063f410ee32fe967db85a02432992269.tar.bz2
upstream-2598c32f063f410ee32fe967db85a02432992269.zip
ar71xx: add a new subtarget for nand based devices - saves around 44k on the lzma compressed generic kernel image
SVN-Revision: 21396
-rw-r--r--target/linux/ar71xx/Makefile1
-rw-r--r--target/linux/ar71xx/config-2.6.3212
-rw-r--r--target/linux/ar71xx/config-2.6.3312
-rw-r--r--target/linux/ar71xx/config-2.6.3412
-rw-r--r--target/linux/ar71xx/generic/config-default0
-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.mk7
-rw-r--r--target/linux/ar71xx/nand/config-default13
-rw-r--r--target/linux/ar71xx/nand/profiles/01-minimal.mk16
-rw-r--r--target/linux/ar71xx/nand/profiles/02-madwifi.mk16
-rw-r--r--target/linux/ar71xx/nand/target.mk8
25 files changed, 61 insertions, 36 deletions
diff --git a/target/linux/ar71xx/Makefile b/target/linux/ar71xx/Makefile
index 540fe51d1c..d3bf6878d8 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 5c17220634..8987a63439 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 ca49737f78..0cd2358662 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 7085b227bb..b11442c13c 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 0000000000..e69de29bb2
--- /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 aa46f22c54..aa46f22c54 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 3651c88ab2..3651c88ab2 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 7c22c53db5..7c22c53db5 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 4ce0e605c6..4ce0e605c6 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 c63fd9c275..c63fd9c275 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 69819e586d..69819e586d 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 38d963a5c1..38d963a5c1 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 bf99e099a9..bf99e099a9 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 f3253e728f..f3253e728f 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 8545cad0c6..8545cad0c6 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 63e539c4e4..63e539c4e4 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 7efb1a3766..7efb1a3766 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 20a08f3842..20a08f3842 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 a7fd9a2619..a7fd9a2619 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 73ae4e224c..73ae4e224c 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 0000000000..9ba527bff0
--- /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 0000000000..3fa8d7b160
--- /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 0000000000..3651c88ab2
--- /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 0000000000..7c22c53db5
--- /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 0000000000..f01ef645fa
--- /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
+
+