From 1e4c1590fb811ad067b8361fc7233b791ea7ab52 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 30 Nov 2020 08:32:09 +0100 Subject: [PATCH] mb/kontron/mal10: Move include directories to mb level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move include directories from carriers and variants to mainboard level being able to reuse them later. Also, rename guards so that they fit their usage. Built with BUILD_TIMELESS=1, coreboot.rom remains the same. Signed-off-by: Felix Singer Change-Id: I55af05cb84b97d567ce1fc3b6151c34d1eda183f Reviewed-on: https://review.coreboot.org/c/coreboot/+/48142 Reviewed-by: Michael Niewöhner Reviewed-by: Angel Pons Reviewed-by: Maxim Polyakov Tested-by: build bot (Jenkins) --- src/mainboard/kontron/mal10/Makefile.inc | 4 +--- .../mal10/{carriers/t10-tni => }/include/carrier/gpio.h | 6 +++--- .../mal10/{variants/mal10 => }/include/variant/gpio.h | 6 +++--- 3 files changed, 7 insertions(+), 9 deletions(-) rename src/mainboard/kontron/mal10/{carriers/t10-tni => }/include/carrier/gpio.h (91%) rename src/mainboard/kontron/mal10/{variants/mal10 => }/include/variant/gpio.h (60%) diff --git a/src/mainboard/kontron/mal10/Makefile.inc b/src/mainboard/kontron/mal10/Makefile.inc index 885786fc55..7fbab00337 100644 --- a/src/mainboard/kontron/mal10/Makefile.inc +++ b/src/mainboard/kontron/mal10/Makefile.inc @@ -3,7 +3,5 @@ ramstage-y += ramstage.c ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads subdirs-y += variants/$(VARIANT_DIR) -CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include - subdirs-y += carriers/$(CARRIER_DIR) -CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/carriers/$(CARRIER_DIR)/include +CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include diff --git a/src/mainboard/kontron/mal10/carriers/t10-tni/include/carrier/gpio.h b/src/mainboard/kontron/mal10/include/carrier/gpio.h similarity index 91% rename from src/mainboard/kontron/mal10/carriers/t10-tni/include/carrier/gpio.h rename to src/mainboard/kontron/mal10/include/carrier/gpio.h index 9c9c8edc83..b8606f62a1 100644 --- a/src/mainboard/kontron/mal10/carriers/t10-tni/include/carrier/gpio.h +++ b/src/mainboard/kontron/mal10/include/carrier/gpio.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef T10_TNI_CFG_GPIO_H -#define T10_TNI_CFG_GPIO_H +#ifndef CARRIER_GPIO_H +#define CARRIER_GPIO_H #include #include @@ -29,4 +29,4 @@ void carrier_gpio_configure(void); -#endif /* T10_TNI_CFG_GPIO_H */ +#endif /* CARRIER_GPIO_H */ diff --git a/src/mainboard/kontron/mal10/variants/mal10/include/variant/gpio.h b/src/mainboard/kontron/mal10/include/variant/gpio.h similarity index 60% rename from src/mainboard/kontron/mal10/variants/mal10/include/variant/gpio.h rename to src/mainboard/kontron/mal10/include/variant/gpio.h index d97e199fb8..99cf35a037 100644 --- a/src/mainboard/kontron/mal10/variants/mal10/include/variant/gpio.h +++ b/src/mainboard/kontron/mal10/include/variant/gpio.h @@ -1,11 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef MAL_10_CFG_GPIO_H -#define MAL_10_CFG_GPIO_H +#ifndef VARIANT_GPIO_H +#define VARIANT_GPIO_H #include #include void variant_early_gpio_configure(void); -#endif /* MAL_10_CFG_GPIO_H */ +#endif /* VARIANT_GPIO_H */