summaryrefslogtreecommitdiff
path: root/target/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-06 01:48:24 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-06 01:49:29 -0600
commit319ac4b072b54f347a3518289b55f81e3090a250 (patch)
tree2884beeca9007d1964f228dfb2b3453e88f080fc /target/Makefile
parentac0122005e1a0b8f86b3ae60dbdec77f40cdd45d (diff)
rework CMDLINE generation regarding serial/vga
Use one place and not hard coded for each device. There exist use cases where on a specific device like raspberry pi, not the default 115200 baud rate is used.
Diffstat (limited to 'target/Makefile')
-rw-r--r--target/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/Makefile b/target/Makefile
index d015d6757..e6bbe9ef4 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -36,6 +36,14 @@ config-prepare: $(ADK_TOPDIR)/.config
echo "no miniconfig found for target system"; \
exit 1; \
fi
+ifneq ($(ADK_RUNTIME_CONSOLE_SERIAL_DEVICE),)
+ $(SED) 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 console=$(ADK_RUNTIME_CONSOLE_SERIAL_DEVICE),$(ADK_RUNTIME_CONSOLE_SERIAL_SPEED)"#' \
+ $(BUILD_DIR)/.kernelconfig.board
+endif
+ifneq ($(ADK_RUNTIME_CONSOLE_VGA_DEVICE),)
+ $(SED) 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 console=$(ADK_RUNTIME_CONSOLE_VGA_DEVICE)"#' \
+ $(BUILD_DIR)/.kernelconfig.board
+endif
ifeq ($(ADK_TARGET_SYSTEM_QEMU_M68K),y)
@$(SED) 's#^\(CONFIG_.*BOOTPARAM_STRING="\)\(.*\)"#\1\2 ro $(FS_CMDLINE)"#' \
$(BUILD_DIR)/.kernelconfig.board