summaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/bsl6
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2020-11-22 16:43:09 +0000
committerMichael Niewöhner <foss@mniewoehner.de>2020-11-24 20:22:29 +0000
commitf84e304ea1e22228872c092bf2292d5e3078db24 (patch)
tree89a57853967e3654a7dbaf05261bd624bec97d3a /src/mainboard/kontron/bsl6
parent4ea08f9f5668cec116478a2fc226945c0a66259a (diff)
mb/kontron/bsl6: Use include folder for header files
Change-Id: Id73a7385f7701920efebaa3e293ac50a6ba93272 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47849 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/kontron/bsl6')
-rw-r--r--src/mainboard/kontron/bsl6/Makefile.inc2
-rw-r--r--src/mainboard/kontron/bsl6/include/mainboard/gpio.h (renamed from src/mainboard/kontron/bsl6/gpio.h)0
-rw-r--r--src/mainboard/kontron/bsl6/include/variant.h (renamed from src/mainboard/kontron/bsl6/variant.h)0
-rw-r--r--src/mainboard/kontron/bsl6/ramstage.c2
-rw-r--r--src/mainboard/kontron/bsl6/romstage.c3
-rw-r--r--src/mainboard/kontron/bsl6/variants/boxer26/romstage.c3
-rw-r--r--src/mainboard/kontron/bsl6/variants/bsl6/romstage.c3
7 files changed, 6 insertions, 7 deletions
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
index d6e976ee10..d6e976ee10 100644
--- a/src/mainboard/kontron/bsl6/gpio.h
+++ b/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
index 4f65da5fb1..4f65da5fb1 100644
--- a/src/mainboard/kontron/bsl6/variant.h
+++ b/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 <soc/ramstage.h>
-#include "gpio.h"
+#include <mainboard/gpio.h>
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 <soc/romstage.h>
#include <fsp/soc_binding.h>
#include <pc80/mc146818rtc.h>
-
-#include "variant.h"
+#include <variant.h>
/* 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 <console/console.h>
#include <pc80/mc146818rtc.h>
#include <fsp/soc_binding.h>
-
-#include "../../variant.h"
+#include <variant.h>
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 <fsp/soc_binding.h>
-
-#include "../../variant.h"
+#include <variant.h>
void variant_memory_init_params(FSPM_UPD *const mupd)
{