summaryrefslogtreecommitdiff
path: root/target/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2012-08-18 09:17:40 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2012-08-18 09:17:40 +0200
commit87d7150ea9c117b54c9989d5df734887cb20eb63 (patch)
tree03242c08e502662ab21ecdc572a64b5fc83f97eb /target/Makefile
parent01f79f56f31d6fc611ab731b82796ae969fcd409 (diff)
add netconsole support
Diffstat (limited to 'target/Makefile')
-rw-r--r--target/Makefile4
1 files changed, 4 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