[linux-yocto] [PATCH v2 05/11] features/debug: Create a new feature for early printk debug
Saul Wold
sgw at linux.intel.com
Wed Jul 1 16:06:41 PDT 2015
Add new .scc and .cfg for enabling early printk debugging
from one place.
Other general kernel debugging could also be placed here, but subsystem or
driver specific debug configuration items should be in their respecitive subsystem
or driver .cfg (or additioanl <drivername>dbg.cfg or what ever you choose)
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/cfg/kernel-cache/features/debug/printk.cfg | 11 +++++++++++
meta/cfg/kernel-cache/features/debug/printk.scc | 10 ++++++++++
2 files changed, 21 insertions(+)
create mode 100644 meta/cfg/kernel-cache/features/debug/printk.cfg
create mode 100644 meta/cfg/kernel-cache/features/debug/printk.scc
diff --git a/meta/cfg/kernel-cache/features/debug/printk.cfg b/meta/cfg/kernel-cache/features/debug/printk.cfg
new file mode 100644
index 0000000..0d9d87e
--- /dev/null
+++ b/meta/cfg/kernel-cache/features/debug/printk.cfg
@@ -0,0 +1,11 @@
+#
+# Enable EARLY_PRINTK and related PRINTK functionality
+#
+CONFIG_PRINTK=y
+CONFIG_PRINTK_TIME=y
+
+CONFIG_EARLY_PRINTK=y
+
+CONFIG_EARLY_PRINTK_DBGP=y
+CONFIG_EARLY_PRINTK_EFI=y
+CONFIG_TTY_PRINTK=y
diff --git a/meta/cfg/kernel-cache/features/debug/printk.scc b/meta/cfg/kernel-cache/features/debug/printk.scc
new file mode 100644
index 0000000..d592605
--- /dev/null
+++ b/meta/cfg/kernel-cache/features/debug/printk.scc
@@ -0,0 +1,10 @@
+# Add early printk to a kernel config
+# Additional general debugging can be added to new .scc/.cfg pairs as needed
+# Other subsystem or driver debugging configs should be in their respective
+# .scc/.cfg files
+
+define KFEATURE_DESCRIPTION "Enable early printk for debugging"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware printk.cfg
+
--
2.1.0
More information about the linux-yocto
mailing list