From d6eab6f827aa9317ed7bb1b00e52c64b6e5a9e25 Mon Sep 17 00:00:00 2001 From: Devin Moore Date: Wed, 10 Mar 2021 16:28:49 -0800 Subject: [PATCH] Add bootconfig to kernel cmdline when BOARD_BOOTCONFIG not empty The 'bootconfig' kernel cmdline parameter needs to exist for the kernel to search for bootconfig. If BOARD_BOOTCONFIG contains anything, then add the parameter to the kernel cmdline. Test: Boot cuttlefish and verify /proc/cmdline has 'bootconfig' after removing it from cuttlefish BoardConfig.mk Bug: 173815685 Change-Id: I112a2a8e02ba7265c5547d9244298e07f26985ba --- core/board_config.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/board_config.mk b/core/board_config.mk index 245a639b3..57363fbc7 100644 --- a/core/board_config.mk +++ b/core/board_config.mk @@ -223,7 +223,10 @@ endif .KATI_READONLY := $(_board_strip_readonly_list) INTERNAL_KERNEL_CMDLINE := $(BOARD_KERNEL_CMDLINE) -INTERNAL_BOOTCONFIG := $(BOARD_BOOTCONFIG) +ifneq (,$(BOARD_BOOTCONFIG)) + INTERNAL_KERNEL_CMDLINE += bootconfig + INTERNAL_BOOTCONFIG := $(BOARD_BOOTCONFIG) +endif ifneq ($(filter %64,$(TARGET_ARCH)),) TARGET_IS_64_BIT := true