From 8b703954c352329486d3610121ae41de896da565 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 24 Aug 2023 16:57:17 -0600 Subject: [PATCH] vc/siemens: Only add the include path for hwlib when needed This patch moves the line adding hwlib to the include path to the inner makefile so that it doesn't get added to every build, but only when CONFIG_USE_SIEMENS_HWILIB=y Signed-off-by: Martin Roth Change-Id: Id668b76366a554efff560cec746e637487ebdbf4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77417 Reviewed-by: Felix Singer Reviewed-by: Elyes Haouas Reviewed-by: Frans Hendriks Reviewed-by: Jan Samek Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/vendorcode/siemens/Makefile.inc | 2 -- src/vendorcode/siemens/hwilib/Makefile.inc | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vendorcode/siemens/Makefile.inc b/src/vendorcode/siemens/Makefile.inc index 342375b416..88fd1c3911 100644 --- a/src/vendorcode/siemens/Makefile.inc +++ b/src/vendorcode/siemens/Makefile.inc @@ -1,5 +1,3 @@ ## SPDX-License-Identifier: GPL-2.0-only subdirs-$(CONFIG_USE_SIEMENS_HWILIB) += hwilib - -CPPFLAGS_common += -I$(src)/vendorcode/siemens/hwilib diff --git a/src/vendorcode/siemens/hwilib/Makefile.inc b/src/vendorcode/siemens/hwilib/Makefile.inc index 9a5d4be342..7b99c0c748 100644 --- a/src/vendorcode/siemens/hwilib/Makefile.inc +++ b/src/vendorcode/siemens/hwilib/Makefile.inc @@ -2,3 +2,5 @@ romstage-y += hwilib.c ramstage-y += hwilib.c + +CPPFLAGS_common += -I$(src)/vendorcode/siemens/hwilib