From 319ac4b072b54f347a3518289b55f81e3090a250 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 6 Feb 2015 01:48:24 -0600 Subject: 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. --- target/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target/Makefile') 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 -- cgit v1.2.3