Browse Source

allow to disable kernel commandline

Waldemar Brodkorb 9 years ago
parent
commit
1cde61b28d
2 changed files with 13 additions and 0 deletions
  1. 2 0
      target/Makefile
  2. 11 0
      target/linux/config/Config.in.kernel

+ 2 - 0
target/Makefile

@@ -36,6 +36,7 @@ config-prepare: $(ADK_TOPDIR)/.config
 		echo "no miniconfig found for target system"; \
 		exit 1; \
 	fi
+ifneq ($(ADK_TARGET_NO_CMDLINE),y)
 ifeq ($(ADK_RUNTIME_VERBOSE_KERNEL_VGA_ONLY),y)
 	$(SED) 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 console=$(ADK_RUNTIME_CONSOLE_VGA_DEVICE) consoleblank=0"#' \
 		$(BUILD_DIR)/.kernelconfig.board
@@ -89,6 +90,7 @@ endif
 ifeq ($(ADK_KERNEL_NETCONSOLE),y)
 	@$(SED) 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 netconsole=@$(ADK_PARAMETER_NETCONSOLE_SRC_IP)/,@$(ADK_PARAMETER_NETCONSOLE_DST_IP)/"#' \
 		$(BUILD_DIR)/.kernelconfig.board
+endif
 endif
 	@cd $(BUILD_DIR) && cat .kernelconfig.board .kernelconfig.kernel \
 	    >.kernelconfig.tmp

+ 11 - 0
target/linux/config/Config.in.kernel

@@ -175,11 +175,18 @@ config ADK_KERNEL_MMU
 	default n if ADK_TARGET_UCLINUX
 	default y
 
+onfig ADK_TARGET_NO_CMDLINE
+	bool "Do not builtin any kernel cmdline"
+	help
+	  No kernel command line modifictaion is done.
+
 config ADK_KERNEL_SMP
 	bool "Enable symmetric multi processing"
 	depends on ADK_TARGET_WITH_SMP
 	default y if ADK_TARGET_WITH_SMP
 	default n
+	help
+	  Enable symmetric multi processing support.
 
 config ADK_KERNEL_HIGHMEM
 	bool "Enable high memory"
@@ -188,9 +195,13 @@ config ADK_KERNEL_HIGHMEM
 	default y if ADK_TARGET_CUBOX_I2EX
 	default y if ADK_TARGET_SYSTEM_IBM_X40
 	default n
+	help
+	  Enable high memory support.
 
 config ADK_KERNEL_PREEMPT
 	bool "Enable preemptive kernel"
+	help
+	  Enable preemptive mode.
 
 config ADK_KERNEL_BCM2708_DT
 	bool "Enable Devicetree support"