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 <gaumless@gmail.com>
Change-Id: Id668b76366a554efff560cec746e637487ebdbf4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77417
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
Reviewed-by: Jan Samek <jan.samek@siemens.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Martin Roth 2023-08-24 16:57:17 -06:00 committed by Martin L Roth
parent 81da643c13
commit 8b703954c3
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,3 @@
## SPDX-License-Identifier: GPL-2.0-only
subdirs-$(CONFIG_USE_SIEMENS_HWILIB) += hwilib
CPPFLAGS_common += -I$(src)/vendorcode/siemens/hwilib

View File

@ -2,3 +2,5 @@
romstage-y += hwilib.c
ramstage-y += hwilib.c
CPPFLAGS_common += -I$(src)/vendorcode/siemens/hwilib