Patchwork [meta-handheld] linux-yocto*: zaurus: slim down kernel size

login
register
mail settings
Submitter Andrea Adami
Date Dec. 20, 2013, 12:09 a.m.
Message ID <1387498174-9872-1-git-send-email-andrea.adami@gmail.com>
Download mbox | patch
Permalink /patch/63599/
State Superseded, archived
Headers show

Comments

Andrea Adami - Dec. 20, 2013, 12:09 a.m.
Adding a separate fragment with MD, ethernet and debug options removed 
which can be easily reenabled. Size is now around 2,3-2,5 megabytes.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
 .../linux/linux-yocto-3.10/shrink_kernel.cfg       | 28 ++++++++++++++++++++++
 .../linux/linux-yocto-3.10/zaurus-common.scc       |  2 ++
 .../linux/linux-yocto-dev/shrink_kernel.cfg        | 28 ++++++++++++++++++++++
 .../linux/linux-yocto-dev/zaurus-common.scc        |  2 ++
 4 files changed, 60 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto-3.10/shrink_kernel.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto-dev/shrink_kernel.cfg

Patch

diff --git a/recipes-kernel/linux/linux-yocto-3.10/shrink_kernel.cfg b/recipes-kernel/linux/linux-yocto-3.10/shrink_kernel.cfg
new file mode 100644
index 0000000..e784c03
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-3.10/shrink_kernel.cfg
@@ -0,0 +1,28 @@ 
+# CONFIG_MD is not set
+
+# CONFIG_NET_VENDOR_3COM is not set
+# CONFIG_NET_VENDOR_AMD is not set
+# CONFIG_NET_CADENCE is not set
+# CONFIG_NET_VENDOR_BROADCOM is not set
+# CONFIG_NET_VENDOR_CIRRUS is not set
+# CONFIG_NET_VENDOR_FARADAY is not set
+# CONFIG_NET_VENDOR_FUJITSU is not set
+# CONFIG_NET_VENDOR_HP is not set
+# CONFIG_NET_VENDOR_INTEL is not set
+# CONFIG_NET_VENDOR_MARVELL is not set
+# CONFIG_NET_VENDOR_MICREL is not set
+# CONFIG_NET_VENDOR_MICROCHIP is not set
+# CONFIG_NET_VENDOR_SEEQ is not set
+# CONFIG_NET_VENDOR_SMSC is not set
+# CONFIG_NET_VENDOR_STMICRO is not set
+# CONFIG_NET_VENDOR_WIZNET is not set
+# CONFIG_NET_VENDOR_XIRCOM is not set
+
+# CONFIG_FTRACE is not set
+# CONFIG_BRANCH_PROFILE_NONE is not set
+# CONFIG_BINARY_PRINTF is not set
+
+# CONFIG_KPROBES is not set
+# CONFIG_DEBUG_BUGVERBOSE is not set
+# CONFIG_DEBUG_INFO is not set
+# CONFIG_KGDB is not set
diff --git a/recipes-kernel/linux/linux-yocto-3.10/zaurus-common.scc b/recipes-kernel/linux/linux-yocto-3.10/zaurus-common.scc
index 6946ae0..b2354f8 100644
--- a/recipes-kernel/linux/linux-yocto-3.10/zaurus-common.scc
+++ b/recipes-kernel/linux/linux-yocto-3.10/zaurus-common.scc
@@ -10,3 +10,5 @@  include features/vfat/vfat.scc
 include features/scsi/disk.scc
 include features/hostapd/hostapd.scc
 include features/mac80211/mac80211.scc
+
+kconf hardware shrink_kernel.cfg
diff --git a/recipes-kernel/linux/linux-yocto-dev/shrink_kernel.cfg b/recipes-kernel/linux/linux-yocto-dev/shrink_kernel.cfg
new file mode 100644
index 0000000..e784c03
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-dev/shrink_kernel.cfg
@@ -0,0 +1,28 @@ 
+# CONFIG_MD is not set
+
+# CONFIG_NET_VENDOR_3COM is not set
+# CONFIG_NET_VENDOR_AMD is not set
+# CONFIG_NET_CADENCE is not set
+# CONFIG_NET_VENDOR_BROADCOM is not set
+# CONFIG_NET_VENDOR_CIRRUS is not set
+# CONFIG_NET_VENDOR_FARADAY is not set
+# CONFIG_NET_VENDOR_FUJITSU is not set
+# CONFIG_NET_VENDOR_HP is not set
+# CONFIG_NET_VENDOR_INTEL is not set
+# CONFIG_NET_VENDOR_MARVELL is not set
+# CONFIG_NET_VENDOR_MICREL is not set
+# CONFIG_NET_VENDOR_MICROCHIP is not set
+# CONFIG_NET_VENDOR_SEEQ is not set
+# CONFIG_NET_VENDOR_SMSC is not set
+# CONFIG_NET_VENDOR_STMICRO is not set
+# CONFIG_NET_VENDOR_WIZNET is not set
+# CONFIG_NET_VENDOR_XIRCOM is not set
+
+# CONFIG_FTRACE is not set
+# CONFIG_BRANCH_PROFILE_NONE is not set
+# CONFIG_BINARY_PRINTF is not set
+
+# CONFIG_KPROBES is not set
+# CONFIG_DEBUG_BUGVERBOSE is not set
+# CONFIG_DEBUG_INFO is not set
+# CONFIG_KGDB is not set
diff --git a/recipes-kernel/linux/linux-yocto-dev/zaurus-common.scc b/recipes-kernel/linux/linux-yocto-dev/zaurus-common.scc
index 6946ae0..b2354f8 100644
--- a/recipes-kernel/linux/linux-yocto-dev/zaurus-common.scc
+++ b/recipes-kernel/linux/linux-yocto-dev/zaurus-common.scc
@@ -10,3 +10,5 @@  include features/vfat/vfat.scc
 include features/scsi/disk.scc
 include features/hostapd/hostapd.scc
 include features/mac80211/mac80211.scc
+
+kconf hardware shrink_kernel.cfg