summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-05-15 21:27:31 +1000
committerNathan Rossi <nathan@nathanrossi.com>2017-05-15 21:27:31 +1000
commit70e6e4ee845b8a7d9734755a5b74b902ce01dd2a (patch)
tree4535f8541fab00821ea925a7a39b489bd815a725
parenta53f7215ba4d3b5f636b07fb593d34b44c0aeb20 (diff)
downloadmeta-xilinx-70e6e4ee845b8a7d9734755a5b74b902ce01dd2a.tar.gz
linux/config: Add debug-dyndbg kernel feature fragment
The debug-dyndbg fragment enables CONFIG_DYNAMIC_DEBUG, which enables the building of pr_debug/etc. such that during execution the debug messages can be enabled dynamically. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.cfg11
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.scc4
2 files changed, 15 insertions, 0 deletions
diff --git a/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.cfg b/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.cfg
new file mode 100644
index 00000000..cd5b0f5a
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.cfg
@@ -0,0 +1,11 @@
1# This config fragment enables dynamic debug printk messages. Use this to debug
2# various modules/files in the kernel without needing to #define DEBUG.
3#
4# Can be enabled with bootargs. e.g report all driver debug messages, this is
5# very useful for debugging device probing during boot:
6#
7# debug dyndbg="file drivers/of/dd.c +pm"
8#
9
10CONFIG_DYNAMIC_DEBUG=y
11
diff --git a/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.scc b/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.scc
new file mode 100644
index 00000000..de270d16
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.scc
@@ -0,0 +1,4 @@
1define KFEATURE_DESCRIPTION "Enable dynamic debug printk"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware debug-dyndbg.cfg