[linux-yocto] [master][yocto-4.15][PATCH] features/kernel-sample: add kernel sample support

Dengke Du dengke.du at windriver.com
Wed May 23 00:31:24 PDT 2018


When we build the kernel sample codes, we need to open the samples related
configurations.

Signed-off-by: Dengke Du <dengke.du at windriver.com>
---
 features/kernel-sample/kernel-sample.cfg | 11 +++++++++++
 features/kernel-sample/kernel-sample.scc |  1 +
 2 files changed, 12 insertions(+)
 create mode 100644 features/kernel-sample/kernel-sample.cfg
 create mode 100644 features/kernel-sample/kernel-sample.scc

diff --git a/features/kernel-sample/kernel-sample.cfg b/features/kernel-sample/kernel-sample.cfg
new file mode 100644
index 0000000..c2b589f
--- /dev/null
+++ b/features/kernel-sample/kernel-sample.cfg
@@ -0,0 +1,11 @@
+CONFIG_SAMPLES=y
+CONFIG_SAMPLE_TRACE_EVENTS=m
+CONFIG_SAMPLE_TRACE_PRINTK=m
+CONFIG_SAMPLE_KOBJECT=m
+CONFIG_SAMPLE_KPROBES=m
+CONFIG_SAMPLE_KRETPROBES=m
+CONFIG_SAMPLE_HW_BREAKPOINT=m
+CONFIG_SAMPLE_KFIFO=m
+CONFIG_SAMPLE_CONFIGFS=m
+CONFIG_SAMPLE_CONNECTOR=m
+CONFIG_SAMPLE_SECCOMP=m
diff --git a/features/kernel-sample/kernel-sample.scc b/features/kernel-sample/kernel-sample.scc
new file mode 100644
index 0000000..7ac5bd4
--- /dev/null
+++ b/features/kernel-sample/kernel-sample.scc
@@ -0,0 +1 @@
+kconf non-hardware kernel-sample.cfg
-- 
2.7.4



More information about the linux-yocto mailing list