From 030e6439511de66e25c997eb50ee3abab1759b3b Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 18 Jan 2024 16:12:31 -0700 Subject: mb/lenovo to mb/squared: Rename Makefiles from .inc to .mk The .inc suffix is confusing to various tools as it's not specific to Makefiles. This means that editors don't recognize the files, and don't open them with highlighting and any other specific editor functionality. This issue is also seen in the release notes generation script where Makefiles get renamed before running cloc. Signed-off-by: Martin Roth Change-Id: I4790adb41cb62c8c8dd44261a2926dfb6350955a Reviewed-on: https://review.coreboot.org/c/coreboot/+/80111 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) Reviewed-by: Erik van den Bogaert Reviewed-by: Maximilian Brune --- src/mainboard/lenovo/haswell/Makefile.inc | 8 -------- src/mainboard/lenovo/haswell/Makefile.mk | 8 ++++++++ .../lenovo/haswell/variants/t440p/Makefile.inc | 3 --- .../lenovo/haswell/variants/t440p/Makefile.mk | 3 +++ src/mainboard/lenovo/l520/Makefile.inc | 8 -------- src/mainboard/lenovo/l520/Makefile.mk | 8 ++++++++ src/mainboard/lenovo/s230u/Makefile.inc | 21 --------------------- src/mainboard/lenovo/s230u/Makefile.mk | 21 +++++++++++++++++++++ src/mainboard/lenovo/t400/Makefile.inc | 18 ------------------ src/mainboard/lenovo/t400/Makefile.mk | 18 ++++++++++++++++++ src/mainboard/lenovo/t410/Makefile.inc | 10 ---------- src/mainboard/lenovo/t410/Makefile.mk | 10 ++++++++++ src/mainboard/lenovo/t420/Makefile.inc | 8 -------- src/mainboard/lenovo/t420/Makefile.mk | 8 ++++++++ src/mainboard/lenovo/t420s/Makefile.inc | 8 -------- src/mainboard/lenovo/t420s/Makefile.mk | 8 ++++++++ src/mainboard/lenovo/t430/Makefile.inc | 8 -------- src/mainboard/lenovo/t430/Makefile.mk | 8 ++++++++ src/mainboard/lenovo/t430s/Makefile.inc | 8 -------- src/mainboard/lenovo/t430s/Makefile.mk | 8 ++++++++ .../lenovo/t430s/variants/t431s/spd/Makefile.inc | 5 ----- .../lenovo/t430s/variants/t431s/spd/Makefile.mk | 5 +++++ src/mainboard/lenovo/t520/Makefile.inc | 7 ------- src/mainboard/lenovo/t520/Makefile.mk | 7 +++++++ src/mainboard/lenovo/t530/Makefile.inc | 8 -------- src/mainboard/lenovo/t530/Makefile.mk | 8 ++++++++ src/mainboard/lenovo/t60/Makefile.inc | 10 ---------- src/mainboard/lenovo/t60/Makefile.mk | 10 ++++++++++ src/mainboard/lenovo/thinkcentre_a58/Makefile.inc | 9 --------- src/mainboard/lenovo/thinkcentre_a58/Makefile.mk | 9 +++++++++ src/mainboard/lenovo/x131e/Makefile.inc | 8 -------- src/mainboard/lenovo/x131e/Makefile.mk | 8 ++++++++ src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc | 10 ---------- src/mainboard/lenovo/x1_carbon_gen1/Makefile.mk | 10 ++++++++++ .../lenovo/x1_carbon_gen1/spd/Makefile.inc | 5 ----- src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.mk | 5 +++++ src/mainboard/lenovo/x200/Makefile.inc | 11 ----------- src/mainboard/lenovo/x200/Makefile.mk | 11 +++++++++++ src/mainboard/lenovo/x201/Makefile.inc | 10 ---------- src/mainboard/lenovo/x201/Makefile.mk | 10 ++++++++++ src/mainboard/lenovo/x220/Makefile.inc | 9 --------- src/mainboard/lenovo/x220/Makefile.mk | 9 +++++++++ src/mainboard/lenovo/x230/Makefile.inc | 8 -------- src/mainboard/lenovo/x230/Makefile.mk | 8 ++++++++ src/mainboard/lenovo/x60/Makefile.inc | 11 ----------- src/mainboard/lenovo/x60/Makefile.mk | 11 +++++++++++ 46 files changed, 211 insertions(+), 211 deletions(-) delete mode 100644 src/mainboard/lenovo/haswell/Makefile.inc create mode 100644 src/mainboard/lenovo/haswell/Makefile.mk delete mode 100644 src/mainboard/lenovo/haswell/variants/t440p/Makefile.inc create mode 100644 src/mainboard/lenovo/haswell/variants/t440p/Makefile.mk delete mode 100644 src/mainboard/lenovo/l520/Makefile.inc create mode 100644 src/mainboard/lenovo/l520/Makefile.mk delete mode 100644 src/mainboard/lenovo/s230u/Makefile.inc create mode 100644 src/mainboard/lenovo/s230u/Makefile.mk delete mode 100644 src/mainboard/lenovo/t400/Makefile.inc create mode 100644 src/mainboard/lenovo/t400/Makefile.mk delete mode 100644 src/mainboard/lenovo/t410/Makefile.inc create mode 100644 src/mainboard/lenovo/t410/Makefile.mk delete mode 100644 src/mainboard/lenovo/t420/Makefile.inc create mode 100644 src/mainboard/lenovo/t420/Makefile.mk delete mode 100644 src/mainboard/lenovo/t420s/Makefile.inc create mode 100644 src/mainboard/lenovo/t420s/Makefile.mk delete mode 100644 src/mainboard/lenovo/t430/Makefile.inc create mode 100644 src/mainboard/lenovo/t430/Makefile.mk delete mode 100644 src/mainboard/lenovo/t430s/Makefile.inc create mode 100644 src/mainboard/lenovo/t430s/Makefile.mk delete mode 100644 src/mainboard/lenovo/t430s/variants/t431s/spd/Makefile.inc create mode 100644 src/mainboard/lenovo/t430s/variants/t431s/spd/Makefile.mk delete mode 100644 src/mainboard/lenovo/t520/Makefile.inc create mode 100644 src/mainboard/lenovo/t520/Makefile.mk delete mode 100644 src/mainboard/lenovo/t530/Makefile.inc create mode 100644 src/mainboard/lenovo/t530/Makefile.mk delete mode 100644 src/mainboard/lenovo/t60/Makefile.inc create mode 100644 src/mainboard/lenovo/t60/Makefile.mk delete mode 100644 src/mainboard/lenovo/thinkcentre_a58/Makefile.inc create mode 100644 src/mainboard/lenovo/thinkcentre_a58/Makefile.mk delete mode 100644 src/mainboard/lenovo/x131e/Makefile.inc create mode 100644 src/mainboard/lenovo/x131e/Makefile.mk delete mode 100644 src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc create mode 100644 src/mainboard/lenovo/x1_carbon_gen1/Makefile.mk delete mode 100644 src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc create mode 100644 src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.mk delete mode 100644 src/mainboard/lenovo/x200/Makefile.inc create mode 100644 src/mainboard/lenovo/x200/Makefile.mk delete mode 100644 src/mainboard/lenovo/x201/Makefile.inc create mode 100644 src/mainboard/lenovo/x201/Makefile.mk delete mode 100644 src/mainboard/lenovo/x220/Makefile.inc create mode 100644 src/mainboard/lenovo/x220/Makefile.mk delete mode 100644 src/mainboard/lenovo/x230/Makefile.inc create mode 100644 src/mainboard/lenovo/x230/Makefile.mk delete mode 100644 src/mainboard/lenovo/x60/Makefile.inc create mode 100644 src/mainboard/lenovo/x60/Makefile.mk (limited to 'src/mainboard/lenovo') diff --git a/src/mainboard/lenovo/haswell/Makefile.inc b/src/mainboard/lenovo/haswell/Makefile.inc deleted file mode 100644 index 3861ea195d..0000000000 --- a/src/mainboard/lenovo/haswell/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -romstage-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/romstage.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads - -subdirs-y += variants/$(VARIANT_DIR) diff --git a/src/mainboard/lenovo/haswell/Makefile.mk b/src/mainboard/lenovo/haswell/Makefile.mk new file mode 100644 index 0000000000..3861ea195d --- /dev/null +++ b/src/mainboard/lenovo/haswell/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +romstage-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/romstage.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads + +subdirs-y += variants/$(VARIANT_DIR) diff --git a/src/mainboard/lenovo/haswell/variants/t440p/Makefile.inc b/src/mainboard/lenovo/haswell/variants/t440p/Makefile.inc deleted file mode 100644 index ffdfd17716..0000000000 --- a/src/mainboard/lenovo/haswell/variants/t440p/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-y += mainboard.c diff --git a/src/mainboard/lenovo/haswell/variants/t440p/Makefile.mk b/src/mainboard/lenovo/haswell/variants/t440p/Makefile.mk new file mode 100644 index 0000000000..ffdfd17716 --- /dev/null +++ b/src/mainboard/lenovo/haswell/variants/t440p/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-y += mainboard.c diff --git a/src/mainboard/lenovo/l520/Makefile.inc b/src/mainboard/lenovo/l520/Makefile.inc deleted file mode 100644 index e4b6fbf0f0..0000000000 --- a/src/mainboard/lenovo/l520/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += gpio.c -romstage-y += gpio.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/l520/Makefile.mk b/src/mainboard/lenovo/l520/Makefile.mk new file mode 100644 index 0000000000..e4b6fbf0f0 --- /dev/null +++ b/src/mainboard/lenovo/l520/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += gpio.c +romstage-y += gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/s230u/Makefile.inc b/src/mainboard/lenovo/s230u/Makefile.inc deleted file mode 100644 index 073d8b2e90..0000000000 --- a/src/mainboard/lenovo/s230u/Makefile.inc +++ /dev/null @@ -1,21 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += gpio.c -romstage-y += gpio.c -ramstage-y += ec.c - -# FIXME: SPD images for samsung_8gb and hynix_8gb are missing. -# It's possible that no mainboards with that variation were manufactured. -SPD_SOURCES = elpida_4gb # 0b0000 -SPD_SOURCES += samsung_4gb # 0b0001 -SPD_SOURCES += hynix_4gb # 0b0010 -SPD_SOURCES += elpida_8gb # 0b0011 -SPD_SOURCES += elpida_8gb # 0b0100 FIXME: samsung_8gb -SPD_SOURCES += elpida_8gb # 0b0101 FIXME: hynix_8gb -SPD_SOURCES += elpida_2gb # 0b0110 -SPD_SOURCES += samsung_2gb # 0b0111 -SPD_SOURCES += hynix_2gb # 0b1000 - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/s230u/Makefile.mk b/src/mainboard/lenovo/s230u/Makefile.mk new file mode 100644 index 0000000000..073d8b2e90 --- /dev/null +++ b/src/mainboard/lenovo/s230u/Makefile.mk @@ -0,0 +1,21 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += gpio.c +romstage-y += gpio.c +ramstage-y += ec.c + +# FIXME: SPD images for samsung_8gb and hynix_8gb are missing. +# It's possible that no mainboards with that variation were manufactured. +SPD_SOURCES = elpida_4gb # 0b0000 +SPD_SOURCES += samsung_4gb # 0b0001 +SPD_SOURCES += hynix_4gb # 0b0010 +SPD_SOURCES += elpida_8gb # 0b0011 +SPD_SOURCES += elpida_8gb # 0b0100 FIXME: samsung_8gb +SPD_SOURCES += elpida_8gb # 0b0101 FIXME: hynix_8gb +SPD_SOURCES += elpida_2gb # 0b0110 +SPD_SOURCES += samsung_2gb # 0b0111 +SPD_SOURCES += hynix_2gb # 0b1000 + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t400/Makefile.inc b/src/mainboard/lenovo/t400/Makefile.inc deleted file mode 100644 index 982c2098d0..0000000000 --- a/src/mainboard/lenovo/t400/Makefile.inc +++ /dev/null @@ -1,18 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += bootblock.c -bootblock-y += dock.c - -romstage-y += variants/$(VARIANT_DIR)/gpio.c - -ramstage-y += dock.c -ramstage-y += cstates.c -ramstage-y += blc.c - -ifeq ($(CONFIG_MAINBOARD_USE_LIBGFXINIT),y) -ramstage-$(CONFIG_BOARD_LENOVO_T400) += variants/t400/malibu-3/gma-mainboard.ads -ramstage-$(CONFIG_BOARD_LENOVO_R400) += variants/t400/malibu-3/gma-mainboard.ads -ramstage-$(CONFIG_BOARD_LENOVO_T500) += variants/t400/coronado-5/gma-mainboard.ads -ramstage-$(CONFIG_BOARD_LENOVO_W500) += variants/t400/coronado-5/gma-mainboard.ads -ramstage-$(CONFIG_BOARD_LENOVO_R500) += variants/r500/gma-mainboard.ads -endif diff --git a/src/mainboard/lenovo/t400/Makefile.mk b/src/mainboard/lenovo/t400/Makefile.mk new file mode 100644 index 0000000000..982c2098d0 --- /dev/null +++ b/src/mainboard/lenovo/t400/Makefile.mk @@ -0,0 +1,18 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += bootblock.c +bootblock-y += dock.c + +romstage-y += variants/$(VARIANT_DIR)/gpio.c + +ramstage-y += dock.c +ramstage-y += cstates.c +ramstage-y += blc.c + +ifeq ($(CONFIG_MAINBOARD_USE_LIBGFXINIT),y) +ramstage-$(CONFIG_BOARD_LENOVO_T400) += variants/t400/malibu-3/gma-mainboard.ads +ramstage-$(CONFIG_BOARD_LENOVO_R400) += variants/t400/malibu-3/gma-mainboard.ads +ramstage-$(CONFIG_BOARD_LENOVO_T500) += variants/t400/coronado-5/gma-mainboard.ads +ramstage-$(CONFIG_BOARD_LENOVO_W500) += variants/t400/coronado-5/gma-mainboard.ads +ramstage-$(CONFIG_BOARD_LENOVO_R500) += variants/r500/gma-mainboard.ads +endif diff --git a/src/mainboard/lenovo/t410/Makefile.inc b/src/mainboard/lenovo/t410/Makefile.inc deleted file mode 100644 index 3b410c4858..0000000000 --- a/src/mainboard/lenovo/t410/Makefile.inc +++ /dev/null @@ -1,10 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += early_init.c - -smm-y += dock.c -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads - -romstage-y += dock.c -ramstage-y += dock.c -romstage-y += gpio.c diff --git a/src/mainboard/lenovo/t410/Makefile.mk b/src/mainboard/lenovo/t410/Makefile.mk new file mode 100644 index 0000000000..3b410c4858 --- /dev/null +++ b/src/mainboard/lenovo/t410/Makefile.mk @@ -0,0 +1,10 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += early_init.c + +smm-y += dock.c +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads + +romstage-y += dock.c +ramstage-y += dock.c +romstage-y += gpio.c diff --git a/src/mainboard/lenovo/t420/Makefile.inc b/src/mainboard/lenovo/t420/Makefile.inc deleted file mode 100644 index e4b6fbf0f0..0000000000 --- a/src/mainboard/lenovo/t420/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += gpio.c -romstage-y += gpio.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t420/Makefile.mk b/src/mainboard/lenovo/t420/Makefile.mk new file mode 100644 index 0000000000..e4b6fbf0f0 --- /dev/null +++ b/src/mainboard/lenovo/t420/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += gpio.c +romstage-y += gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t420s/Makefile.inc b/src/mainboard/lenovo/t420s/Makefile.inc deleted file mode 100644 index e4b6fbf0f0..0000000000 --- a/src/mainboard/lenovo/t420s/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += gpio.c -romstage-y += gpio.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t420s/Makefile.mk b/src/mainboard/lenovo/t420s/Makefile.mk new file mode 100644 index 0000000000..e4b6fbf0f0 --- /dev/null +++ b/src/mainboard/lenovo/t420s/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += gpio.c +romstage-y += gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t430/Makefile.inc b/src/mainboard/lenovo/t430/Makefile.inc deleted file mode 100644 index e4b6fbf0f0..0000000000 --- a/src/mainboard/lenovo/t430/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += gpio.c -romstage-y += gpio.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t430/Makefile.mk b/src/mainboard/lenovo/t430/Makefile.mk new file mode 100644 index 0000000000..e4b6fbf0f0 --- /dev/null +++ b/src/mainboard/lenovo/t430/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += gpio.c +romstage-y += gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t430s/Makefile.inc b/src/mainboard/lenovo/t430s/Makefile.inc deleted file mode 100644 index 43a2a92301..0000000000 --- a/src/mainboard/lenovo/t430s/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/romstage.c -ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads -subdirs-$(CONFIG_BOARD_LENOVO_T431S) += variants/$(VARIANT_DIR)/spd diff --git a/src/mainboard/lenovo/t430s/Makefile.mk b/src/mainboard/lenovo/t430s/Makefile.mk new file mode 100644 index 0000000000..43a2a92301 --- /dev/null +++ b/src/mainboard/lenovo/t430s/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/romstage.c +ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads +subdirs-$(CONFIG_BOARD_LENOVO_T431S) += variants/$(VARIANT_DIR)/spd diff --git a/src/mainboard/lenovo/t430s/variants/t431s/spd/Makefile.inc b/src/mainboard/lenovo/t430s/variants/t431s/spd/Makefile.inc deleted file mode 100644 index 3926956fb7..0000000000 --- a/src/mainboard/lenovo/t430s/variants/t431s/spd/Makefile.inc +++ /dev/null @@ -1,5 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -SPD_SOURCES = samsung_4gb # 0b0010 4GiB - -LIB_SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/spd/$(f).spd.hex) diff --git a/src/mainboard/lenovo/t430s/variants/t431s/spd/Makefile.mk b/src/mainboard/lenovo/t430s/variants/t431s/spd/Makefile.mk new file mode 100644 index 0000000000..3926956fb7 --- /dev/null +++ b/src/mainboard/lenovo/t430s/variants/t431s/spd/Makefile.mk @@ -0,0 +1,5 @@ +## SPDX-License-Identifier: GPL-2.0-only + +SPD_SOURCES = samsung_4gb # 0b0010 4GiB + +LIB_SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/spd/$(f).spd.hex) diff --git a/src/mainboard/lenovo/t520/Makefile.inc b/src/mainboard/lenovo/t520/Makefile.inc deleted file mode 100644 index 69ef08873b..0000000000 --- a/src/mainboard/lenovo/t520/Makefile.inc +++ /dev/null @@ -1,7 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/gpio.c -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t520/Makefile.mk b/src/mainboard/lenovo/t520/Makefile.mk new file mode 100644 index 0000000000..69ef08873b --- /dev/null +++ b/src/mainboard/lenovo/t520/Makefile.mk @@ -0,0 +1,7 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/gpio.c +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t530/Makefile.inc b/src/mainboard/lenovo/t530/Makefile.inc deleted file mode 100644 index a3b838ba10..0000000000 --- a/src/mainboard/lenovo/t530/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/romstage.c -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t530/Makefile.mk b/src/mainboard/lenovo/t530/Makefile.mk new file mode 100644 index 0000000000..a3b838ba10 --- /dev/null +++ b/src/mainboard/lenovo/t530/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/romstage.c +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/t60/Makefile.inc b/src/mainboard/lenovo/t60/Makefile.inc deleted file mode 100644 index 000367bc30..0000000000 --- a/src/mainboard/lenovo/t60/Makefile.inc +++ /dev/null @@ -1,10 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -smm-y += dock.c -bootblock-y += dock.c -romstage-y += dock.c -bootblock-y += gpio.c -romstage-y += gpio.c -bootblock-y += early_init.c -romstage-y += early_init.c -ramstage-y += cstates.c diff --git a/src/mainboard/lenovo/t60/Makefile.mk b/src/mainboard/lenovo/t60/Makefile.mk new file mode 100644 index 0000000000..000367bc30 --- /dev/null +++ b/src/mainboard/lenovo/t60/Makefile.mk @@ -0,0 +1,10 @@ +## SPDX-License-Identifier: GPL-2.0-only + +smm-y += dock.c +bootblock-y += dock.c +romstage-y += dock.c +bootblock-y += gpio.c +romstage-y += gpio.c +bootblock-y += early_init.c +romstage-y += early_init.c +ramstage-y += cstates.c diff --git a/src/mainboard/lenovo/thinkcentre_a58/Makefile.inc b/src/mainboard/lenovo/thinkcentre_a58/Makefile.inc deleted file mode 100644 index de8c51494d..0000000000 --- a/src/mainboard/lenovo/thinkcentre_a58/Makefile.inc +++ /dev/null @@ -1,9 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-y += cstates.c -romstage-y += gpio.c - -bootblock-y += early_init.c -romstage-y += early_init.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads diff --git a/src/mainboard/lenovo/thinkcentre_a58/Makefile.mk b/src/mainboard/lenovo/thinkcentre_a58/Makefile.mk new file mode 100644 index 0000000000..de8c51494d --- /dev/null +++ b/src/mainboard/lenovo/thinkcentre_a58/Makefile.mk @@ -0,0 +1,9 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-y += cstates.c +romstage-y += gpio.c + +bootblock-y += early_init.c +romstage-y += early_init.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads diff --git a/src/mainboard/lenovo/x131e/Makefile.inc b/src/mainboard/lenovo/x131e/Makefile.inc deleted file mode 100644 index e4b6fbf0f0..0000000000 --- a/src/mainboard/lenovo/x131e/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += gpio.c -romstage-y += gpio.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/x131e/Makefile.mk b/src/mainboard/lenovo/x131e/Makefile.mk new file mode 100644 index 0000000000..e4b6fbf0f0 --- /dev/null +++ b/src/mainboard/lenovo/x131e/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += gpio.c +romstage-y += gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc b/src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc deleted file mode 100644 index ea3bd287b5..0000000000 --- a/src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc +++ /dev/null @@ -1,10 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -subdirs-y += spd - -bootblock-y += gpio.c -romstage-y += gpio.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/x1_carbon_gen1/Makefile.mk b/src/mainboard/lenovo/x1_carbon_gen1/Makefile.mk new file mode 100644 index 0000000000..ea3bd287b5 --- /dev/null +++ b/src/mainboard/lenovo/x1_carbon_gen1/Makefile.mk @@ -0,0 +1,10 @@ +## SPDX-License-Identifier: GPL-2.0-only + +subdirs-y += spd + +bootblock-y += gpio.c +romstage-y += gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc b/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc deleted file mode 100644 index d3244d1a9c..0000000000 --- a/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc +++ /dev/null @@ -1,5 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -SPD_SOURCES = elpida # 0b0000 Single Channel 2GB -SPD_SOURCES += hynix # 0b0001 2GiB -SPD_SOURCES += samsung # 0b0010 4GiB diff --git a/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.mk b/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.mk new file mode 100644 index 0000000000..d3244d1a9c --- /dev/null +++ b/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.mk @@ -0,0 +1,5 @@ +## SPDX-License-Identifier: GPL-2.0-only + +SPD_SOURCES = elpida # 0b0000 Single Channel 2GB +SPD_SOURCES += hynix # 0b0001 2GiB +SPD_SOURCES += samsung # 0b0010 4GiB diff --git a/src/mainboard/lenovo/x200/Makefile.inc b/src/mainboard/lenovo/x200/Makefile.inc deleted file mode 100644 index 77333b31f0..0000000000 --- a/src/mainboard/lenovo/x200/Makefile.inc +++ /dev/null @@ -1,11 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_BOARD_LENOVO_X200) += variants/$(VARIANT_DIR)/dock.c -ramstage-y += cstates.c -ramstage-y += blc.c -romstage-y += variants/$(VARIANT_DIR)/gpio.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads - -$(call add_vbt_to_cbfs, data_ccfl.vbt, data_ccfl.vbt) -$(call add_vbt_to_cbfs, data_led.vbt, data_led.vbt) diff --git a/src/mainboard/lenovo/x200/Makefile.mk b/src/mainboard/lenovo/x200/Makefile.mk new file mode 100644 index 0000000000..77333b31f0 --- /dev/null +++ b/src/mainboard/lenovo/x200/Makefile.mk @@ -0,0 +1,11 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_BOARD_LENOVO_X200) += variants/$(VARIANT_DIR)/dock.c +ramstage-y += cstates.c +ramstage-y += blc.c +romstage-y += variants/$(VARIANT_DIR)/gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads + +$(call add_vbt_to_cbfs, data_ccfl.vbt, data_ccfl.vbt) +$(call add_vbt_to_cbfs, data_led.vbt, data_led.vbt) diff --git a/src/mainboard/lenovo/x201/Makefile.inc b/src/mainboard/lenovo/x201/Makefile.inc deleted file mode 100644 index d185f5cbe5..0000000000 --- a/src/mainboard/lenovo/x201/Makefile.inc +++ /dev/null @@ -1,10 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += early_init.c - -smm-y += dock.c -romstage-y += dock.c -ramstage-y += dock.c -romstage-y += gpio.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads diff --git a/src/mainboard/lenovo/x201/Makefile.mk b/src/mainboard/lenovo/x201/Makefile.mk new file mode 100644 index 0000000000..d185f5cbe5 --- /dev/null +++ b/src/mainboard/lenovo/x201/Makefile.mk @@ -0,0 +1,10 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += early_init.c + +smm-y += dock.c +romstage-y += dock.c +ramstage-y += dock.c +romstage-y += gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads diff --git a/src/mainboard/lenovo/x220/Makefile.inc b/src/mainboard/lenovo/x220/Makefile.inc deleted file mode 100644 index b104bb52a9..0000000000 --- a/src/mainboard/lenovo/x220/Makefile.inc +++ /dev/null @@ -1,9 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/romstage.c - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads -bootblock-y += early_init.c -romstage-y += early_init.c diff --git a/src/mainboard/lenovo/x220/Makefile.mk b/src/mainboard/lenovo/x220/Makefile.mk new file mode 100644 index 0000000000..b104bb52a9 --- /dev/null +++ b/src/mainboard/lenovo/x220/Makefile.mk @@ -0,0 +1,9 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/romstage.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads +bootblock-y += early_init.c +romstage-y += early_init.c diff --git a/src/mainboard/lenovo/x230/Makefile.inc b/src/mainboard/lenovo/x230/Makefile.inc deleted file mode 100644 index 8e801f145d..0000000000 --- a/src/mainboard/lenovo/x230/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-y += variants/$(VARIANT_DIR)/early_init.c -bootblock-y += variants/$(VARIANT_DIR)/gpio.c -romstage-y += variants/$(VARIANT_DIR)/early_init.c -romstage-y += variants/$(VARIANT_DIR)/gpio.c -ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads diff --git a/src/mainboard/lenovo/x230/Makefile.mk b/src/mainboard/lenovo/x230/Makefile.mk new file mode 100644 index 0000000000..8e801f145d --- /dev/null +++ b/src/mainboard/lenovo/x230/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += variants/$(VARIANT_DIR)/early_init.c +bootblock-y += variants/$(VARIANT_DIR)/gpio.c +romstage-y += variants/$(VARIANT_DIR)/early_init.c +romstage-y += variants/$(VARIANT_DIR)/gpio.c +ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads diff --git a/src/mainboard/lenovo/x60/Makefile.inc b/src/mainboard/lenovo/x60/Makefile.inc deleted file mode 100644 index 7bdd496a5f..0000000000 --- a/src/mainboard/lenovo/x60/Makefile.inc +++ /dev/null @@ -1,11 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -smm-y += dock.c -bootblock-y += dock.c -romstage-y += dock.c -ramstage-y += dock.c -bootblock-y += gpio.c -romstage-y += gpio.c -bootblock-y += early_init.c -romstage-y += early_init.c -ramstage-y += cstates.c diff --git a/src/mainboard/lenovo/x60/Makefile.mk b/src/mainboard/lenovo/x60/Makefile.mk new file mode 100644 index 0000000000..7bdd496a5f --- /dev/null +++ b/src/mainboard/lenovo/x60/Makefile.mk @@ -0,0 +1,11 @@ +## SPDX-License-Identifier: GPL-2.0-only + +smm-y += dock.c +bootblock-y += dock.c +romstage-y += dock.c +ramstage-y += dock.c +bootblock-y += gpio.c +romstage-y += gpio.c +bootblock-y += early_init.c +romstage-y += early_init.c +ramstage-y += cstates.c -- cgit v1.2.3