[meta-lsi] [PATCH 14/41] linux-yocto-3.4: add testing fragment

Daniel Dragomir daniel.dragomir at windriver.com
Thu Jan 28 04:29:17 PST 2016


From: Cristian Bercaru <cristian.bercaru at windriver.com>

This patch adds kernel configuration options that are enabled when
compiling linux-yocto builds with TESTING option set to "yes".
The options are contained in a configration fragment and are meant to
be used only for testing purposes.

Signed-off-by: Cristian Bercaru <cristian.bercaru at windriver.com>
---
 .../linux-yocto/linux-3.4/axxiaarm/testing.cfg     | 27 ++++++++++++++++++++++
 .../linux-yocto/linux-3.4/axxiaarm/testing.scc     |  1 +
 .../linux-yocto/linux-3.4/axxiapowerpc/testing.cfg | 27 ++++++++++++++++++++++
 .../linux-yocto/linux-3.4/axxiapowerpc/testing.scc |  1 +
 recipes-kernel/linux/linux-yocto_3.4.bbappend      |  1 +
 recipes-kernel/linux/linux-yocto_3.4.inc           |  3 ++-
 6 files changed, 59 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiaarm/testing.cfg
 create mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiaarm/testing.scc
 create mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiapowerpc/testing.cfg
 create mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiapowerpc/testing.scc

diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiaarm/testing.cfg b/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiaarm/testing.cfg
new file mode 100644
index 0000000..93e2e30
--- /dev/null
+++ b/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiaarm/testing.cfg
@@ -0,0 +1,27 @@
+CONFIG_PROC_FS=y
+CONFIG_IKCONFIG=y
+CONFIG_IKCONFIG_PROC=y
+
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
+CONFIG_BLK_DEV_CRYPTOLOOP=y
+
+CONFIG_E1000=y
+CONFIG_E1000E=y
+
+CONFIG_HAVE_PERF_EVENTS=y
+CONFIG_PERF_EVENTS=y
+
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_HIGH_RES_TIMERS=y
+CONFIG_TICK_ONESHOT=y
+CONFIG_SCHED_HRTICK=y
+# CONFIG_MISSED_TIMER_OFFSETS_HIST is not set
+
+CONFIG_PROFILING=y
+
+CONFIG_BSD_PROCESS_ACCT=y
+CONFIG_BSD_PROCESS_ACCT_V3=y
+
+CONFIG_I2C_AXXIA=y
+
diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiaarm/testing.scc b/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiaarm/testing.scc
new file mode 100644
index 0000000..09a1069
--- /dev/null
+++ b/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiaarm/testing.scc
@@ -0,0 +1 @@
+kconf non-hardware testing.cfg
diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiapowerpc/testing.cfg b/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiapowerpc/testing.cfg
new file mode 100644
index 0000000..93e2e30
--- /dev/null
+++ b/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiapowerpc/testing.cfg
@@ -0,0 +1,27 @@
+CONFIG_PROC_FS=y
+CONFIG_IKCONFIG=y
+CONFIG_IKCONFIG_PROC=y
+
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
+CONFIG_BLK_DEV_CRYPTOLOOP=y
+
+CONFIG_E1000=y
+CONFIG_E1000E=y
+
+CONFIG_HAVE_PERF_EVENTS=y
+CONFIG_PERF_EVENTS=y
+
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_HIGH_RES_TIMERS=y
+CONFIG_TICK_ONESHOT=y
+CONFIG_SCHED_HRTICK=y
+# CONFIG_MISSED_TIMER_OFFSETS_HIST is not set
+
+CONFIG_PROFILING=y
+
+CONFIG_BSD_PROCESS_ACCT=y
+CONFIG_BSD_PROCESS_ACCT_V3=y
+
+CONFIG_I2C_AXXIA=y
+
diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiapowerpc/testing.scc b/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiapowerpc/testing.scc
new file mode 100644
index 0000000..09a1069
--- /dev/null
+++ b/recipes-kernel/linux/conf/linux-yocto/linux-3.4/axxiapowerpc/testing.scc
@@ -0,0 +1 @@
+kconf non-hardware testing.cfg
diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend
index e443aa2..ab24302 100644
--- a/recipes-kernel/linux/linux-yocto_3.4.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend
@@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}:"
 
 LINUX_KERNEL_TYPE = "standard"
 LSI_SRC ?= "linux-yocto"
+TESTING ?= "no"
 KV = "3.4"
 KERNEL_EXTRA_FEATURES = ""
 
diff --git a/recipes-kernel/linux/linux-yocto_3.4.inc b/recipes-kernel/linux/linux-yocto_3.4.inc
index 955f8df..5d885b7 100644
--- a/recipes-kernel/linux/linux-yocto_3.4.inc
+++ b/recipes-kernel/linux/linux-yocto_3.4.inc
@@ -13,4 +13,5 @@ SRCREV_meta = "5da29766338644adce97d3ab0c8be7f8e4e746bd"
 
 SRC_URI = "${KREPO};nocheckout=1;branch=${KBRANCH},${KMETA};name=machine,meta"
 SRC_URI += "file://fit"
-SRC_URI += "file://standard.scc"
+SRC_URI += "file://standard.scc \
+	${@base_conditional('TESTING', 'yes', 'file://testing.scc', '', d)} "
-- 
1.9.1



More information about the meta-lsi mailing list