From 1ee2c6dbdfe7e35ab5e25a6136eab824ed2fec8f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 9 Aug 2013 04:27:35 -0700 Subject: libpayload: Change CONFIG_* to CONFIG_LP_* in the kconfig. When libpayload header files are included in the payload itself, it's possible that the payloads config settings will conflict with the ones in libpayload. It's also possible for the libpayload config settings to conflict with the payloads. To avoid that, the libpayload config settings have _LP_ (for libpayload) added to them. The symbols themselves as defined in the Config.in files are still the same, but the prefix added to them is now CONFIG_LP_ instead of just CONFIG_. Change-Id: Ib8a46d202e7880afdeac7924d69a949bfbcc5f97 Signed-off-by: Gabe Black Reviewed-on: https://gerrit.chromium.org/gerrit/65303 Reviewed-by: Stefan Reinauer Tested-by: Gabe Black Commit-Queue: Gabe Black (cherry picked from commit 23e866da20862cace0ed2a67d6fb74056bc9ea9a) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6427 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Marc Jones --- payloads/libpayload/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'payloads/libpayload/Makefile') diff --git a/payloads/libpayload/Makefile b/payloads/libpayload/Makefile index a1e8dc7510..64165197b8 100644 --- a/payloads/libpayload/Makefile +++ b/payloads/libpayload/Makefile @@ -57,7 +57,7 @@ export KCONFIG_AUTOCONFIG := $(obj)/auto.conf # directory containing the toplevel Makefile.inc TOPLEVEL := . -CONFIG_SHELL := sh +CONFIG_LP_SHELL := sh KBUILD_DEFCONFIG := configs/defconfig UNAME_RELEASE := $(shell uname -r) DOTCONFIG ?= .config @@ -91,15 +91,15 @@ include util/kconfig/Makefile include $(HAVE_DOTCONFIG) -ARCHDIR-$(CONFIG_ARCH_ARMV7) := armv7 -ARCHDIR-$(CONFIG_ARCH_X86) := x86 +ARCHDIR-$(CONFIG_LP_ARCH_ARMV7) := armv7 +ARCHDIR-$(CONFIG_LP_ARCH_X86) := x86 ARCH-y := $(ARCHDIR-y) # If architecture folder name is different from GCC binutils architecture name, # override here. -ARCH-$(CONFIG_ARCH_ARMV7) := armv7 -ARCH-$(CONFIG_ARCH_X86) := i386 +ARCH-$(CONFIG_LP_ARCH_ARMV7) := armv7 +ARCH-$(CONFIG_LP_ARCH_X86) := i386 CC := $(CC_$(ARCH-y)) AS := $(AS_$(ARCH-y)) @@ -137,13 +137,13 @@ real-all: config else ifneq ($(INNER_SCANBUILD),y) -ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) +ifeq ($(CONFIG_LP_COMPILER_LLVM_CLANG),y) CC:=clang -m32 HOSTCC:=clang endif endif -ifeq ($(CONFIG_CCACHE),y) +ifeq ($(CONFIG_LP_CCACHE),y) CCACHE:=$(word 1,$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH))))) ifeq ($(CCACHE),) $(error ccache selected, but not found in PATH) @@ -161,12 +161,12 @@ strip_quotes = $(subst ",,$(subst \",,$(1))) # other files ifeq ($(INNER_SCANBUILD),y) -CONFIG_SCANBUILD_ENABLE:= +CONFIG_LP_SCANBUILD_ENABLE:= endif -ifeq ($(CONFIG_SCANBUILD_ENABLE),y) -ifneq ($(CONFIG_SCANBUILD_REPORT_LOCATION),) -CONFIG_SCANBUILD_REPORT_LOCATION:=-o $(CONFIG_SCANBUILD_REPORT_LOCATION) +ifeq ($(CONFIG_LP_SCANBUILD_ENABLE),y) +ifneq ($(CONFIG_LP_SCANBUILD_REPORT_LOCATION),) +CONFIG_LP_SCANBUILD_REPORT_LOCATION:=-o $(CONFIG_LP_SCANBUILD_REPORT_LOCATION) endif real-all: echo '#!/bin/sh' > .ccwrap @@ -175,7 +175,7 @@ real-all: echo 'if [ "$$1" = "--hostcxx" ]; then shift; CC="$(HOSTCXX)"; fi' >> .ccwrap echo 'eval $$CC $$*' >> .ccwrap chmod +x .ccwrap - scan-build $(CONFIG_SCANBUILD_REPORT_LOCATION) -analyze-headers --use-cc=$(top)/.ccwrap --use-c++=$(top)/.ccwrap $(MAKE) INNER_SCANBUILD=y + scan-build $(CONFIG_LP_SCANBUILD_REPORT_LOCATION) -analyze-headers --use-cc=$(top)/.ccwrap --use-c++=$(top)/.ccwrap $(MAKE) INNER_SCANBUILD=y else real-all: real-target endif -- cgit v1.2.3