From 9c1a6467773d49df85b4e0797947ad7830b9d68a Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 7 May 2010 16:20:32 +0000 Subject: [PATCH] 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 --- target/linux/ar71xx/Makefile | 1 + target/linux/ar71xx/config-2.6.32 | 12 ------------ target/linux/ar71xx/config-2.6.33 | 12 ------------ target/linux/ar71xx/config-2.6.34 | 12 ------------ target/linux/ar71xx/generic/config-default | 0 .../ar71xx/{ => generic}/profiles/00-default.mk | 0 .../ar71xx/{ => generic}/profiles/01-minimal.mk | 0 .../ar71xx/{ => generic}/profiles/02-madwifi.mk | 0 .../ar71xx/{ => generic}/profiles/atheros.mk | 0 .../ar71xx/{ => generic}/profiles/atlantis.mk | 0 .../ar71xx/{ => generic}/profiles/buffalo.mk | 0 .../ar71xx/{ => generic}/profiles/compex.mk | 0 .../ar71xx/{ => generic}/profiles/d-link.mk | 0 .../ar71xx/{ => generic}/profiles/linksys.mk | 0 .../ar71xx/{ => generic}/profiles/netgear.mk | 0 .../ar71xx/{ => generic}/profiles/planex.mk | 0 .../ar71xx/{ => generic}/profiles/tp-link.mk | 0 .../ar71xx/{ => generic}/profiles/trendnet.mk | 0 .../linux/ar71xx/{ => generic}/profiles/ubnt.mk | 0 .../linux/ar71xx/{ => generic}/profiles/zyxel.mk | 0 target/linux/ar71xx/generic/target.mk | 7 +++++++ target/linux/ar71xx/nand/config-default | 13 +++++++++++++ target/linux/ar71xx/nand/profiles/01-minimal.mk | 16 ++++++++++++++++ target/linux/ar71xx/nand/profiles/02-madwifi.mk | 16 ++++++++++++++++ target/linux/ar71xx/nand/target.mk | 8 ++++++++ 25 files changed, 61 insertions(+), 36 deletions(-) create mode 100644 target/linux/ar71xx/generic/config-default rename target/linux/ar71xx/{ => generic}/profiles/00-default.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/01-minimal.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/02-madwifi.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/atheros.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/atlantis.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/buffalo.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/compex.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/d-link.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/linksys.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/netgear.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/planex.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/tp-link.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/trendnet.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/ubnt.mk (100%) rename target/linux/ar71xx/{ => generic}/profiles/zyxel.mk (100%) create mode 100644 target/linux/ar71xx/generic/target.mk create mode 100644 target/linux/ar71xx/nand/config-default create mode 100644 target/linux/ar71xx/nand/profiles/01-minimal.mk create mode 100644 target/linux/ar71xx/nand/profiles/02-madwifi.mk create mode 100644 target/linux/ar71xx/nand/target.mk 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 diff --git a/target/linux/ar71xx/profiles/00-default.mk b/target/linux/ar71xx/generic/profiles/00-default.mk similarity index 100% rename from target/linux/ar71xx/profiles/00-default.mk rename to 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 similarity index 100% rename from target/linux/ar71xx/profiles/01-minimal.mk rename to 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 similarity index 100% rename from target/linux/ar71xx/profiles/02-madwifi.mk rename to 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 similarity index 100% rename from target/linux/ar71xx/profiles/atheros.mk rename to target/linux/ar71xx/generic/profiles/atheros.mk diff --git a/target/linux/ar71xx/profiles/atlantis.mk b/target/linux/ar71xx/generic/profiles/atlantis.mk similarity index 100% rename from target/linux/ar71xx/profiles/atlantis.mk rename to target/linux/ar71xx/generic/profiles/atlantis.mk diff --git a/target/linux/ar71xx/profiles/buffalo.mk b/target/linux/ar71xx/generic/profiles/buffalo.mk similarity index 100% rename from target/linux/ar71xx/profiles/buffalo.mk rename to target/linux/ar71xx/generic/profiles/buffalo.mk diff --git a/target/linux/ar71xx/profiles/compex.mk b/target/linux/ar71xx/generic/profiles/compex.mk similarity index 100% rename from target/linux/ar71xx/profiles/compex.mk rename to 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 similarity index 100% rename from target/linux/ar71xx/profiles/d-link.mk rename to 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 similarity index 100% rename from target/linux/ar71xx/profiles/linksys.mk rename to target/linux/ar71xx/generic/profiles/linksys.mk diff --git a/target/linux/ar71xx/profiles/netgear.mk b/target/linux/ar71xx/generic/profiles/netgear.mk similarity index 100% rename from target/linux/ar71xx/profiles/netgear.mk rename to target/linux/ar71xx/generic/profiles/netgear.mk diff --git a/target/linux/ar71xx/profiles/planex.mk b/target/linux/ar71xx/generic/profiles/planex.mk similarity index 100% rename from target/linux/ar71xx/profiles/planex.mk rename to 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 similarity index 100% rename from target/linux/ar71xx/profiles/tp-link.mk rename to 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 similarity index 100% rename from target/linux/ar71xx/profiles/trendnet.mk rename to target/linux/ar71xx/generic/profiles/trendnet.mk diff --git a/target/linux/ar71xx/profiles/ubnt.mk b/target/linux/ar71xx/generic/profiles/ubnt.mk similarity index 100% rename from target/linux/ar71xx/profiles/ubnt.mk rename to target/linux/ar71xx/generic/profiles/ubnt.mk diff --git a/target/linux/ar71xx/profiles/zyxel.mk b/target/linux/ar71xx/generic/profiles/zyxel.mk similarity index 100% rename from target/linux/ar71xx/profiles/zyxel.mk rename to 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 + +