From f84e304ea1e22228872c092bf2292d5e3078db24 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 22 Nov 2020 16:43:09 +0000 Subject: [PATCH] mb/kontron/bsl6: Use include folder for header files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id73a7385f7701920efebaa3e293ac50a6ba93272 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/47849 Reviewed-by: Nico Huber Reviewed-by: Michael Niewöhner Tested-by: build bot (Jenkins) --- src/mainboard/kontron/bsl6/Makefile.inc | 2 ++ src/mainboard/kontron/bsl6/{ => include/mainboard}/gpio.h | 0 src/mainboard/kontron/bsl6/{ => include}/variant.h | 0 src/mainboard/kontron/bsl6/ramstage.c | 2 +- src/mainboard/kontron/bsl6/romstage.c | 3 +-- src/mainboard/kontron/bsl6/variants/boxer26/romstage.c | 3 +-- src/mainboard/kontron/bsl6/variants/bsl6/romstage.c | 3 +-- 7 files changed, 6 insertions(+), 7 deletions(-) rename src/mainboard/kontron/bsl6/{ => include/mainboard}/gpio.h (100%) rename src/mainboard/kontron/bsl6/{ => include}/variant.h (100%) diff --git a/src/mainboard/kontron/bsl6/Makefile.inc b/src/mainboard/kontron/bsl6/Makefile.inc index 1e12ee479b..49c9a6c570 100644 --- a/src/mainboard/kontron/bsl6/Makefile.inc +++ b/src/mainboard/kontron/bsl6/Makefile.inc @@ -1,5 +1,7 @@ ## SPDX-License-Identifier: GPL-2.0-only +CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include + bootblock-y += bootblock.c romstage-y += variants/$(VARIANT_DIR)/romstage.c diff --git a/src/mainboard/kontron/bsl6/gpio.h b/src/mainboard/kontron/bsl6/include/mainboard/gpio.h similarity index 100% rename from src/mainboard/kontron/bsl6/gpio.h rename to src/mainboard/kontron/bsl6/include/mainboard/gpio.h diff --git a/src/mainboard/kontron/bsl6/variant.h b/src/mainboard/kontron/bsl6/include/variant.h similarity index 100% rename from src/mainboard/kontron/bsl6/variant.h rename to src/mainboard/kontron/bsl6/include/variant.h diff --git a/src/mainboard/kontron/bsl6/ramstage.c b/src/mainboard/kontron/bsl6/ramstage.c index 2664a4ff82..b26c62fc85 100644 --- a/src/mainboard/kontron/bsl6/ramstage.c +++ b/src/mainboard/kontron/bsl6/ramstage.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include "gpio.h" +#include void mainboard_silicon_init_params(FSP_SIL_UPD *params) { diff --git a/src/mainboard/kontron/bsl6/romstage.c b/src/mainboard/kontron/bsl6/romstage.c index 9d9169c0d2..0cb7b06375 100644 --- a/src/mainboard/kontron/bsl6/romstage.c +++ b/src/mainboard/kontron/bsl6/romstage.c @@ -8,8 +8,7 @@ #include #include #include - -#include "variant.h" +#include /* Rcomp resistor */ static const u16 rcomp_resistors[3] = { 121, 75, 100 }; diff --git a/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c b/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c index 9c14d84ea7..f1409e0b42 100644 --- a/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c +++ b/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c @@ -5,8 +5,7 @@ #include #include #include - -#include "../../variant.h" +#include void variant_memory_init_params(FSPM_UPD *const mupd) { diff --git a/src/mainboard/kontron/bsl6/variants/bsl6/romstage.c b/src/mainboard/kontron/bsl6/variants/bsl6/romstage.c index 8b32bf5bf6..c9122c1c24 100644 --- a/src/mainboard/kontron/bsl6/variants/bsl6/romstage.c +++ b/src/mainboard/kontron/bsl6/variants/bsl6/romstage.c @@ -1,8 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include - -#include "../../variant.h" +#include void variant_memory_init_params(FSPM_UPD *const mupd) {