summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/Makefile4
-rw-r--r--target/linux/config/Config.in.debug23
2 files changed, 27 insertions, 0 deletions
diff --git a/target/Makefile b/target/Makefile
index 9222cd3bc..b7e94033a 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -87,6 +87,10 @@ ifeq ($(ADK_KERNEL_DEBUG_WITH_KGDB),y)
@sed -i -e 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 kgdbwait kgdboc=ttyS0,115200"#' \
${BUILD_DIR}/.kernelconfig.board
endif
+ifeq ($(ADK_KERNEL_NETCONSOLE),y)
+ @sed -i -e 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 netconsole=@$(ADK_PARAMETER_NETCONSOLE_SRC_IP)/,@$(ADK_PARAMETER_NETCONSOLE_DST_IP)/"#' \
+ ${BUILD_DIR}/.kernelconfig.board
+endif
@cd ${BUILD_DIR} && cat .kernelconfig.board .kernelconfig.nokernel \
.kernelconfig.kernel .kernelconfig.modules \
>.kernelconfig.tmp
diff --git a/target/linux/config/Config.in.debug b/target/linux/config/Config.in.debug
index dbb1aeecd..d73e98f02 100644
--- a/target/linux/config/Config.in.debug
+++ b/target/linux/config/Config.in.debug
@@ -25,6 +25,29 @@ config ADK_QUIET_KERNEL
help
Make bootup quiet without messages from the kernel.
+config ADK_KERNEL_NETCONSOLE
+ prompt "Netconsole"
+ boolean
+ default n
+ help
+ Activate netconsole. netconsole=@/,@192.168.1.2/
+
+config ADK_PARAMETER_NETCONSOLE_SRC_IP
+ prompt "IP address for source"
+ string
+ default "192.168.1.100"
+ depends on ADK_KERNEL_NETCONSOLE
+ help
+ source ip address logging from.
+
+config ADK_PARAMETER_NETCONSOLE_DST_IP
+ prompt "IP address for target"
+ string
+ default "192.168.1.2"
+ depends on ADK_KERNEL_NETCONSOLE
+ help
+ ip address logging to.
+
config ADK_KERNEL_MAGIC_SYSRQ
prompt "Magic BREAK sequence"
boolean