From af880447028ae532428224097ca171a3e729afd4 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 18 Jan 2024 13:18:47 -0700 Subject: driver/intel to /driver/ocp: 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: Id47a5ef3c53f767d1e03c788e0022d05b21f5c28 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80079 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) Reviewed-by: Maximilian Brune --- src/drivers/intel/dptf/Makefile.inc | 3 - src/drivers/intel/dptf/Makefile.mk | 3 + src/drivers/intel/fsp1_1/Makefile.inc | 45 ------ src/drivers/intel/fsp1_1/Makefile.mk | 45 ++++++ src/drivers/intel/fsp2_0/Makefile.inc | 179 ------------------------ src/drivers/intel/fsp2_0/Makefile.mk | 179 ++++++++++++++++++++++++ src/drivers/intel/fsp2_0/ppi/Makefile.inc | 6 - src/drivers/intel/fsp2_0/ppi/Makefile.mk | 6 + src/drivers/intel/gma/Makefile.inc | 72 ---------- src/drivers/intel/gma/Makefile.mk | 72 ++++++++++ src/drivers/intel/i210/Makefile.inc | 7 - src/drivers/intel/i210/Makefile.mk | 7 + src/drivers/intel/ish/Makefile.inc | 3 - src/drivers/intel/ish/Makefile.mk | 3 + src/drivers/intel/mipi_camera/Makefile.inc | 3 - src/drivers/intel/mipi_camera/Makefile.mk | 3 + src/drivers/intel/pmc_mux/Makefile.inc | 4 - src/drivers/intel/pmc_mux/Makefile.mk | 4 + src/drivers/intel/pmc_mux/conn/Makefile.inc | 3 - src/drivers/intel/pmc_mux/conn/Makefile.mk | 3 + src/drivers/intel/ptt/Makefile.inc | 6 - src/drivers/intel/ptt/Makefile.mk | 6 + src/drivers/intel/soundwire/Makefile.inc | 3 - src/drivers/intel/soundwire/Makefile.mk | 3 + src/drivers/intel/usb4/retimer/Makefile.inc | 3 - src/drivers/intel/usb4/retimer/Makefile.mk | 3 + src/drivers/ipmi/Makefile.inc | 13 -- src/drivers/ipmi/Makefile.mk | 13 ++ src/drivers/ipmi/ocp/Makefile.inc | 7 - src/drivers/ipmi/ocp/Makefile.mk | 7 + src/drivers/lenovo/Makefile.inc | 3 - src/drivers/lenovo/Makefile.mk | 3 + src/drivers/lenovo/hybrid_graphics/Makefile.inc | 4 - src/drivers/lenovo/hybrid_graphics/Makefile.mk | 4 + src/drivers/maxim/max77686/Makefile.inc | 4 - src/drivers/maxim/max77686/Makefile.mk | 4 + src/drivers/mipi/Makefile.inc | 37 ----- src/drivers/mipi/Makefile.mk | 37 +++++ src/drivers/mrc_cache/Makefile.inc | 4 - src/drivers/mrc_cache/Makefile.mk | 4 + src/drivers/net/Makefile.inc | 27 ---- src/drivers/net/Makefile.mk | 27 ++++ src/drivers/net/phy/m88e1512/Makefile.inc | 3 - src/drivers/net/phy/m88e1512/Makefile.mk | 3 + src/drivers/nxp/uwb/Makefile.inc | 3 - src/drivers/nxp/uwb/Makefile.mk | 3 + src/drivers/ocp/dmi/Makefile.inc | 3 - src/drivers/ocp/dmi/Makefile.mk | 3 + src/drivers/ocp/ewl/Makefile.inc | 3 - src/drivers/ocp/ewl/Makefile.mk | 3 + src/drivers/ocp/vpd/Makefile.inc | 8 -- src/drivers/ocp/vpd/Makefile.mk | 8 ++ 52 files changed, 456 insertions(+), 456 deletions(-) delete mode 100644 src/drivers/intel/dptf/Makefile.inc create mode 100644 src/drivers/intel/dptf/Makefile.mk delete mode 100644 src/drivers/intel/fsp1_1/Makefile.inc create mode 100644 src/drivers/intel/fsp1_1/Makefile.mk delete mode 100644 src/drivers/intel/fsp2_0/Makefile.inc create mode 100644 src/drivers/intel/fsp2_0/Makefile.mk delete mode 100644 src/drivers/intel/fsp2_0/ppi/Makefile.inc create mode 100644 src/drivers/intel/fsp2_0/ppi/Makefile.mk delete mode 100644 src/drivers/intel/gma/Makefile.inc create mode 100644 src/drivers/intel/gma/Makefile.mk delete mode 100644 src/drivers/intel/i210/Makefile.inc create mode 100644 src/drivers/intel/i210/Makefile.mk delete mode 100644 src/drivers/intel/ish/Makefile.inc create mode 100644 src/drivers/intel/ish/Makefile.mk delete mode 100644 src/drivers/intel/mipi_camera/Makefile.inc create mode 100644 src/drivers/intel/mipi_camera/Makefile.mk delete mode 100644 src/drivers/intel/pmc_mux/Makefile.inc create mode 100644 src/drivers/intel/pmc_mux/Makefile.mk delete mode 100644 src/drivers/intel/pmc_mux/conn/Makefile.inc create mode 100644 src/drivers/intel/pmc_mux/conn/Makefile.mk delete mode 100644 src/drivers/intel/ptt/Makefile.inc create mode 100644 src/drivers/intel/ptt/Makefile.mk delete mode 100644 src/drivers/intel/soundwire/Makefile.inc create mode 100644 src/drivers/intel/soundwire/Makefile.mk delete mode 100644 src/drivers/intel/usb4/retimer/Makefile.inc create mode 100644 src/drivers/intel/usb4/retimer/Makefile.mk delete mode 100644 src/drivers/ipmi/Makefile.inc create mode 100644 src/drivers/ipmi/Makefile.mk delete mode 100644 src/drivers/ipmi/ocp/Makefile.inc create mode 100644 src/drivers/ipmi/ocp/Makefile.mk delete mode 100644 src/drivers/lenovo/Makefile.inc create mode 100644 src/drivers/lenovo/Makefile.mk delete mode 100644 src/drivers/lenovo/hybrid_graphics/Makefile.inc create mode 100644 src/drivers/lenovo/hybrid_graphics/Makefile.mk delete mode 100644 src/drivers/maxim/max77686/Makefile.inc create mode 100644 src/drivers/maxim/max77686/Makefile.mk delete mode 100644 src/drivers/mipi/Makefile.inc create mode 100644 src/drivers/mipi/Makefile.mk delete mode 100644 src/drivers/mrc_cache/Makefile.inc create mode 100644 src/drivers/mrc_cache/Makefile.mk delete mode 100644 src/drivers/net/Makefile.inc create mode 100644 src/drivers/net/Makefile.mk delete mode 100644 src/drivers/net/phy/m88e1512/Makefile.inc create mode 100644 src/drivers/net/phy/m88e1512/Makefile.mk delete mode 100644 src/drivers/nxp/uwb/Makefile.inc create mode 100644 src/drivers/nxp/uwb/Makefile.mk delete mode 100644 src/drivers/ocp/dmi/Makefile.inc create mode 100644 src/drivers/ocp/dmi/Makefile.mk delete mode 100644 src/drivers/ocp/ewl/Makefile.inc create mode 100644 src/drivers/ocp/ewl/Makefile.mk delete mode 100644 src/drivers/ocp/vpd/Makefile.inc create mode 100644 src/drivers/ocp/vpd/Makefile.mk (limited to 'src/drivers') diff --git a/src/drivers/intel/dptf/Makefile.inc b/src/drivers/intel/dptf/Makefile.inc deleted file mode 100644 index 41f4158722..0000000000 --- a/src/drivers/intel/dptf/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_INTEL_DPTF) += dptf.c diff --git a/src/drivers/intel/dptf/Makefile.mk b/src/drivers/intel/dptf/Makefile.mk new file mode 100644 index 0000000000..41f4158722 --- /dev/null +++ b/src/drivers/intel/dptf/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_INTEL_DPTF) += dptf.c diff --git a/src/drivers/intel/fsp1_1/Makefile.inc b/src/drivers/intel/fsp1_1/Makefile.inc deleted file mode 100644 index c890f350e1..0000000000 --- a/src/drivers/intel/fsp1_1/Makefile.inc +++ /dev/null @@ -1,45 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_PLATFORM_USES_FSP1_1),y) - -bootblock-$(CONFIG_USE_GENERIC_FSP_CAR_INC) += cache_as_ram.S -bootblock-y += fsp_util.c -bootblock-y += ../../../cpu/intel/microcode/microcode_asm.S -bootblock-y += fsp_report.c - -romstage-y += car.c -romstage-y += fsp_util.c -romstage-y += hob.c -romstage-y += raminit.c -romstage-y += romstage.c - -ramstage-y += fsp_relocate.c -ramstage-y += fsp_util.c -ramstage-y += hob.c -ramstage-y += ramstage.c -ramstage-$(CONFIG_INTEL_GMA_ADD_VBT) += vbt.c - -CPPFLAGS_common += -Isrc/drivers/intel/fsp1_1/include - -ifneq ($(CONFIG_SKIP_FSP_CAR),y) -postcar-y += temp_ram_exit.c -postcar-y += exit_car.S -endif -postcar-y += fsp_util.c - -# Add the FSP binary to the cbfs image -ifeq ($(CONFIG_HAVE_FSP_BIN),y) -cbfs-files-y += fsp.bin -fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE)) -fsp.bin-type := fsp -fsp.bin-options := --xip $(TXTIBB) -fsp.bin-COREBOOT-position := $(CONFIG_FSP_LOC) -endif - -# Add logo to the cbfs image -cbfs-files-$(CONFIG_BMP_LOGO) += logo.bmp -logo.bmp-file := $(call strip_quotes,$(CONFIG_FSP1_1_LOGO_FILE_NAME)) -logo.bmp-type := raw -logo.bmp-compression := LZMA - -endif diff --git a/src/drivers/intel/fsp1_1/Makefile.mk b/src/drivers/intel/fsp1_1/Makefile.mk new file mode 100644 index 0000000000..c890f350e1 --- /dev/null +++ b/src/drivers/intel/fsp1_1/Makefile.mk @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_PLATFORM_USES_FSP1_1),y) + +bootblock-$(CONFIG_USE_GENERIC_FSP_CAR_INC) += cache_as_ram.S +bootblock-y += fsp_util.c +bootblock-y += ../../../cpu/intel/microcode/microcode_asm.S +bootblock-y += fsp_report.c + +romstage-y += car.c +romstage-y += fsp_util.c +romstage-y += hob.c +romstage-y += raminit.c +romstage-y += romstage.c + +ramstage-y += fsp_relocate.c +ramstage-y += fsp_util.c +ramstage-y += hob.c +ramstage-y += ramstage.c +ramstage-$(CONFIG_INTEL_GMA_ADD_VBT) += vbt.c + +CPPFLAGS_common += -Isrc/drivers/intel/fsp1_1/include + +ifneq ($(CONFIG_SKIP_FSP_CAR),y) +postcar-y += temp_ram_exit.c +postcar-y += exit_car.S +endif +postcar-y += fsp_util.c + +# Add the FSP binary to the cbfs image +ifeq ($(CONFIG_HAVE_FSP_BIN),y) +cbfs-files-y += fsp.bin +fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE)) +fsp.bin-type := fsp +fsp.bin-options := --xip $(TXTIBB) +fsp.bin-COREBOOT-position := $(CONFIG_FSP_LOC) +endif + +# Add logo to the cbfs image +cbfs-files-$(CONFIG_BMP_LOGO) += logo.bmp +logo.bmp-file := $(call strip_quotes,$(CONFIG_FSP1_1_LOGO_FILE_NAME)) +logo.bmp-type := raw +logo.bmp-compression := LZMA + +endif diff --git a/src/drivers/intel/fsp2_0/Makefile.inc b/src/drivers/intel/fsp2_0/Makefile.inc deleted file mode 100644 index 4cb24ffb56..0000000000 --- a/src/drivers/intel/fsp2_0/Makefile.inc +++ /dev/null @@ -1,179 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y) - -bootblock-$(CONFIG_FSP_CAR) += fspt_report.c - -romstage-y += debug.c -romstage-$(CONFIG_FSP_USES_CB_DEBUG_EVENT_HANDLER) += fsp_debug_event.c -romstage-y += hand_off_block.c -romstage-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c -romstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c -romstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c -romstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c -romstage-y += util.c -romstage-y += memory_init.c -romstage-$(CONFIG_MMA) += mma_core.c -romstage-y += cbmem.c -romstage-$(CONFIG_ENABLE_FSP_ERROR_INFO) += fsp_error_info_hob.c -romstage-$(CONFIG_CACHE_MRC_SETTINGS) += save_mrc_data.c - -ramstage-y += debug.c -ramstage-$(CONFIG_FSP_USES_CB_DEBUG_EVENT_HANDLER) += fsp_debug_event.c -ramstage-$(CONFIG_USE_INTEL_FSP_MP_INIT) += fsp_mpinit.c -ramstage-$(CONFIG_DISPLAY_FSP_TIMESTAMPS) += fsp_timestamp.c -ramstage-$(CONFIG_RUN_FSP_GOP) += graphics.c -ramstage-y += hand_off_block.c -ramstage-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c -ramstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c -ramstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c -ramstage-y += notify.c -ramstage-y += silicon_init.c -ramstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c -ramstage-y += util.c -ramstage-$(CONFIG_FSP_NVS_DATA_POST_SILICON_INIT) += save_mrc_data.c -ramstage-$(CONFIG_MMA) += mma_core.c -ramstage-$(CONFIG_ENABLE_FSP_ERROR_INFO) += fsp_error_info_hob.c -ramstage-$(CONFIG_BMP_LOGO) += fsp_gop_blt.c - -ifneq ($(CONFIG_NO_FSP_TEMP_RAM_EXIT),y) -postcar-$(CONFIG_FSP_CAR) += temp_ram_exit.c -endif -postcar-$(CONFIG_FSP_CAR) += util.c -postcar-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c -postcar-y += hand_off_block.c - -CPPFLAGS_common += -I$(src)/drivers/intel/fsp2_0/include - -FSP_T_CBFS = $(call strip_quotes,$(CONFIG_FSP_T_CBFS)) -FSP_M_CBFS = $(call strip_quotes,$(CONFIG_FSP_M_CBFS)) -FSP_M_CBFS_2 = $(call strip_quotes,$(CONFIG_FSP_M_CBFS_2)) -FSP_S_CBFS = $(call strip_quotes,$(CONFIG_FSP_S_CBFS)) -FSP_S_CBFS_2 = $(call strip_quotes,$(CONFIG_FSP_S_CBFS_2)) - -# Add FSP blobs into cbfs. SoC code may supply additional options with -# -options, e.g --xip or -b -ifeq ($(CONFIG_ADD_FSP_BINARIES)$(CONFIG_FSP_CAR),yy) -cbfs-files-y += $(FSP_T_CBFS) -$(FSP_T_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_T_FILE)) -$(FSP_T_CBFS)-type := fsp -ifeq ($(CONFIG_FSP_T_XIP),y) -$(FSP_T_CBFS)-options := --xip $(TXTIBB) -$(FSP_T_CBFS)-position = $(CONFIG_FSP_T_LOCATION) -endif # CONFIG_FSP_T_XIP -endif # CONFIG_ADD_FSP_BINARIES && CONFIG_FSP_CAR - -cbfs-files-$(CONFIG_ADD_FSP_BINARIES) += $(FSP_M_CBFS) -ifeq ($(CONFIG_PLATFORM_USES_SECOND_FSP)$(CONFIG_ADD_FSP_BINARIES),yy) -cbfs-files-y += $(FSP_M_CBFS_2) -endif -$(FSP_M_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_M_FILE)) -$(FSP_M_CBFS_2)-file := $(call strip_quotes,$(CONFIG_FSP_M_FILE_2)) -$(FSP_M_CBFS)-type := fsp -$(FSP_M_CBFS_2)-type := fsp -ifeq ($(CONFIG_FSP_M_XIP),y) -$(FSP_M_CBFS)-options := --xip $(TXTIBB) -$(FSP_M_CBFS_2)-options := --xip $(TXTIBB) -endif -ifeq ($(CONFIG_FSP_COMPRESS_FSP_M_LZMA),y) -$(FSP_M_CBFS)-compression := LZMA -$(FSP_M_CBFS_2)-compression := LZMA -else ifeq ($(CONFIG_FSP_COMPRESS_FSP_M_LZ4),y) -$(FSP_M_CBFS)-compression := LZ4 -$(FSP_M_CBFS_2)-compression := LZ4 -endif -ifneq ($(CONFIG_FSP_ALIGNMENT_FSP_M),) -$(FSP_M_CBFS)-align := $(CONFIG_FSP_ALIGNMENT_FSP_M) -$(FSP_M_CBFS_2)-align := $(CONFIG_FSP_ALIGNMENT_FSP_M) -endif - -cbfs-files-$(CONFIG_ADD_FSP_BINARIES) += $(FSP_S_CBFS) -ifeq ($(CONFIG_PLATFORM_USES_SECOND_FSP)$(CONFIG_ADD_FSP_BINARIES),yy) -cbfs-files-y += $(FSP_S_CBFS_2) -endif -$(FSP_S_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_S_FILE)) -$(FSP_S_CBFS_2)-file := $(call strip_quotes,$(CONFIG_FSP_S_FILE_2)) -$(FSP_S_CBFS)-type := fsp -$(FSP_S_CBFS_2)-type := fsp -ifeq ($(CONFIG_FSP_COMPRESS_FSP_S_LZMA),y) -$(FSP_S_CBFS)-compression := LZMA -$(FSP_S_CBFS_2)-compression := LZMA -else ifeq ($(CONFIG_FSP_COMPRESS_FSP_S_LZ4),y) -$(FSP_S_CBFS)-compression := LZ4 -$(FSP_S_CBFS_2)-compression := LZ4 -endif -ifneq ($(CONFIG_FSP_ALIGNMENT_FSP_S),) -$(FSP_S_CBFS)-align := $(CONFIG_FSP_ALIGNMENT_FSP_S) -$(FSP_S_CBFS_2)-align := $(CONFIG_FSP_ALIGNMENT_FSP_S) -endif - -ifeq ($(CONFIG_FSP_FULL_FD),y) -$(obj)/Fsp_M.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH)) $(DOTCONFIG) - python 3rdparty/fsp/Tools/SplitFspBin.py split -f $(CONFIG_FSP_FD_PATH) -o "$(obj)" -n "Fsp.fd" - -$(obj)/Fsp_S.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH)) $(obj)/Fsp_M.fd - true - -$(obj)/Fsp_T.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH)) $(obj)/Fsp_M.fd - true -endif - -ifeq ($(CONFIG_PLATFORM_USES_SECOND_FSP)$(CONFIG_FSP_FULL_FD),yy) -$(obj)/Fsp_2_M.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH_2)) $(DOTCONFIG) - python 3rdparty/fsp/Tools/SplitFspBin.py split -f $(CONFIG_FSP_FD_PATH_2) -o "$(obj)" -n "Fsp_2.fd" - -$(obj)/Fsp_2_S.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH_2)) $(obj)/Fsp_M.fd - true -endif - -# Add logo to the cbfs image -ifneq ($(CONFIG_HAVE_CUSTOM_BMP_LOGO),y) -cbfs-files-$(CONFIG_BMP_LOGO) += logo.bmp -logo.bmp-file := $(call strip_quotes,$(CONFIG_FSP2_0_LOGO_FILE_NAME)) -logo.bmp-type := raw -ifeq ($(CONFIG_BMP_LOGO_COMPRESS_LZMA),y) -logo.bmp-compression := LZMA -else ifeq ($(CONFIG_BMP_LOGO_COMPRESS_LZ4),y) -logo.bmp-compression := LZ4 -endif -endif - -ifneq ($(call strip_quotes,$(CONFIG_FSP_HEADER_PATH)),) -CPPFLAGS_common+=-I$(CONFIG_FSP_HEADER_PATH) -endif - -# check if the FSP files that are supposed to be added are specified -ifeq ($(CONFIG_ADD_FSP_BINARIES),y) -ifeq ($(CONFIG_FSP_CAR),y) -ifeq ($(call strip_quotes,$(CONFIG_FSP_T_FILE)),) -$(error No FSP-T binary file specified.) -endif # CONFIG_FSP_T_FILE -endif # CONFIG_FSP_CAR -ifeq ($(call strip_quotes,$(CONFIG_FSP_M_FILE)),) -$(error No FSP-M binary file specified.) -endif # CONFIG_FSP_M_FILE -ifeq ($(call strip_quotes,$(CONFIG_FSP_S_FILE)),) -$(error No FSP-S binary file specified.) -endif # CONFIG_FSP_S_FILE -ifeq ($(CONFIG_PLATFORM_USES_SECOND_FSP),y) -ifeq ($(call strip_quotes,$(CONFIG_FSP_M_FILE_2)),) -$(error No second FSP-M binary file specified.) -endif # CONFIG_FSP_M_FILE_2 -ifeq ($(call strip_quotes,$(CONFIG_FSP_S_FILE_2)),) -$(error No second FSP-S binary file specified.) -endif # CONFIG_FSP_S_FILE_2 -endif # CONFIG_PLATFORM_USES_SECOND_FSP -else # CONFIG_ADD_FSP_BINARIES -show_notices:: warn_no_fsp_binaries -endif # CONFIG_ADD_FSP_BINARIES - -PHONY+=warn_no_fsp_binaries -warn_no_fsp_binaries: - printf "\n\t** WARNING **\n" - printf "ADD_FSP_BINARIES isn't selected even though this SoC relies on the FSP.\n" - printf "The resulting image won't contain the FSP binaries and will not boot unless\n" - printf "they are added later.\n" - -subdirs-y += ppi - -endif diff --git a/src/drivers/intel/fsp2_0/Makefile.mk b/src/drivers/intel/fsp2_0/Makefile.mk new file mode 100644 index 0000000000..4cb24ffb56 --- /dev/null +++ b/src/drivers/intel/fsp2_0/Makefile.mk @@ -0,0 +1,179 @@ +# SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y) + +bootblock-$(CONFIG_FSP_CAR) += fspt_report.c + +romstage-y += debug.c +romstage-$(CONFIG_FSP_USES_CB_DEBUG_EVENT_HANDLER) += fsp_debug_event.c +romstage-y += hand_off_block.c +romstage-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c +romstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c +romstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c +romstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c +romstage-y += util.c +romstage-y += memory_init.c +romstage-$(CONFIG_MMA) += mma_core.c +romstage-y += cbmem.c +romstage-$(CONFIG_ENABLE_FSP_ERROR_INFO) += fsp_error_info_hob.c +romstage-$(CONFIG_CACHE_MRC_SETTINGS) += save_mrc_data.c + +ramstage-y += debug.c +ramstage-$(CONFIG_FSP_USES_CB_DEBUG_EVENT_HANDLER) += fsp_debug_event.c +ramstage-$(CONFIG_USE_INTEL_FSP_MP_INIT) += fsp_mpinit.c +ramstage-$(CONFIG_DISPLAY_FSP_TIMESTAMPS) += fsp_timestamp.c +ramstage-$(CONFIG_RUN_FSP_GOP) += graphics.c +ramstage-y += hand_off_block.c +ramstage-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c +ramstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c +ramstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c +ramstage-y += notify.c +ramstage-y += silicon_init.c +ramstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c +ramstage-y += util.c +ramstage-$(CONFIG_FSP_NVS_DATA_POST_SILICON_INIT) += save_mrc_data.c +ramstage-$(CONFIG_MMA) += mma_core.c +ramstage-$(CONFIG_ENABLE_FSP_ERROR_INFO) += fsp_error_info_hob.c +ramstage-$(CONFIG_BMP_LOGO) += fsp_gop_blt.c + +ifneq ($(CONFIG_NO_FSP_TEMP_RAM_EXIT),y) +postcar-$(CONFIG_FSP_CAR) += temp_ram_exit.c +endif +postcar-$(CONFIG_FSP_CAR) += util.c +postcar-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c +postcar-y += hand_off_block.c + +CPPFLAGS_common += -I$(src)/drivers/intel/fsp2_0/include + +FSP_T_CBFS = $(call strip_quotes,$(CONFIG_FSP_T_CBFS)) +FSP_M_CBFS = $(call strip_quotes,$(CONFIG_FSP_M_CBFS)) +FSP_M_CBFS_2 = $(call strip_quotes,$(CONFIG_FSP_M_CBFS_2)) +FSP_S_CBFS = $(call strip_quotes,$(CONFIG_FSP_S_CBFS)) +FSP_S_CBFS_2 = $(call strip_quotes,$(CONFIG_FSP_S_CBFS_2)) + +# Add FSP blobs into cbfs. SoC code may supply additional options with +# -options, e.g --xip or -b +ifeq ($(CONFIG_ADD_FSP_BINARIES)$(CONFIG_FSP_CAR),yy) +cbfs-files-y += $(FSP_T_CBFS) +$(FSP_T_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_T_FILE)) +$(FSP_T_CBFS)-type := fsp +ifeq ($(CONFIG_FSP_T_XIP),y) +$(FSP_T_CBFS)-options := --xip $(TXTIBB) +$(FSP_T_CBFS)-position = $(CONFIG_FSP_T_LOCATION) +endif # CONFIG_FSP_T_XIP +endif # CONFIG_ADD_FSP_BINARIES && CONFIG_FSP_CAR + +cbfs-files-$(CONFIG_ADD_FSP_BINARIES) += $(FSP_M_CBFS) +ifeq ($(CONFIG_PLATFORM_USES_SECOND_FSP)$(CONFIG_ADD_FSP_BINARIES),yy) +cbfs-files-y += $(FSP_M_CBFS_2) +endif +$(FSP_M_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_M_FILE)) +$(FSP_M_CBFS_2)-file := $(call strip_quotes,$(CONFIG_FSP_M_FILE_2)) +$(FSP_M_CBFS)-type := fsp +$(FSP_M_CBFS_2)-type := fsp +ifeq ($(CONFIG_FSP_M_XIP),y) +$(FSP_M_CBFS)-options := --xip $(TXTIBB) +$(FSP_M_CBFS_2)-options := --xip $(TXTIBB) +endif +ifeq ($(CONFIG_FSP_COMPRESS_FSP_M_LZMA),y) +$(FSP_M_CBFS)-compression := LZMA +$(FSP_M_CBFS_2)-compression := LZMA +else ifeq ($(CONFIG_FSP_COMPRESS_FSP_M_LZ4),y) +$(FSP_M_CBFS)-compression := LZ4 +$(FSP_M_CBFS_2)-compression := LZ4 +endif +ifneq ($(CONFIG_FSP_ALIGNMENT_FSP_M),) +$(FSP_M_CBFS)-align := $(CONFIG_FSP_ALIGNMENT_FSP_M) +$(FSP_M_CBFS_2)-align := $(CONFIG_FSP_ALIGNMENT_FSP_M) +endif + +cbfs-files-$(CONFIG_ADD_FSP_BINARIES) += $(FSP_S_CBFS) +ifeq ($(CONFIG_PLATFORM_USES_SECOND_FSP)$(CONFIG_ADD_FSP_BINARIES),yy) +cbfs-files-y += $(FSP_S_CBFS_2) +endif +$(FSP_S_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_S_FILE)) +$(FSP_S_CBFS_2)-file := $(call strip_quotes,$(CONFIG_FSP_S_FILE_2)) +$(FSP_S_CBFS)-type := fsp +$(FSP_S_CBFS_2)-type := fsp +ifeq ($(CONFIG_FSP_COMPRESS_FSP_S_LZMA),y) +$(FSP_S_CBFS)-compression := LZMA +$(FSP_S_CBFS_2)-compression := LZMA +else ifeq ($(CONFIG_FSP_COMPRESS_FSP_S_LZ4),y) +$(FSP_S_CBFS)-compression := LZ4 +$(FSP_S_CBFS_2)-compression := LZ4 +endif +ifneq ($(CONFIG_FSP_ALIGNMENT_FSP_S),) +$(FSP_S_CBFS)-align := $(CONFIG_FSP_ALIGNMENT_FSP_S) +$(FSP_S_CBFS_2)-align := $(CONFIG_FSP_ALIGNMENT_FSP_S) +endif + +ifeq ($(CONFIG_FSP_FULL_FD),y) +$(obj)/Fsp_M.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH)) $(DOTCONFIG) + python 3rdparty/fsp/Tools/SplitFspBin.py split -f $(CONFIG_FSP_FD_PATH) -o "$(obj)" -n "Fsp.fd" + +$(obj)/Fsp_S.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH)) $(obj)/Fsp_M.fd + true + +$(obj)/Fsp_T.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH)) $(obj)/Fsp_M.fd + true +endif + +ifeq ($(CONFIG_PLATFORM_USES_SECOND_FSP)$(CONFIG_FSP_FULL_FD),yy) +$(obj)/Fsp_2_M.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH_2)) $(DOTCONFIG) + python 3rdparty/fsp/Tools/SplitFspBin.py split -f $(CONFIG_FSP_FD_PATH_2) -o "$(obj)" -n "Fsp_2.fd" + +$(obj)/Fsp_2_S.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH_2)) $(obj)/Fsp_M.fd + true +endif + +# Add logo to the cbfs image +ifneq ($(CONFIG_HAVE_CUSTOM_BMP_LOGO),y) +cbfs-files-$(CONFIG_BMP_LOGO) += logo.bmp +logo.bmp-file := $(call strip_quotes,$(CONFIG_FSP2_0_LOGO_FILE_NAME)) +logo.bmp-type := raw +ifeq ($(CONFIG_BMP_LOGO_COMPRESS_LZMA),y) +logo.bmp-compression := LZMA +else ifeq ($(CONFIG_BMP_LOGO_COMPRESS_LZ4),y) +logo.bmp-compression := LZ4 +endif +endif + +ifneq ($(call strip_quotes,$(CONFIG_FSP_HEADER_PATH)),) +CPPFLAGS_common+=-I$(CONFIG_FSP_HEADER_PATH) +endif + +# check if the FSP files that are supposed to be added are specified +ifeq ($(CONFIG_ADD_FSP_BINARIES),y) +ifeq ($(CONFIG_FSP_CAR),y) +ifeq ($(call strip_quotes,$(CONFIG_FSP_T_FILE)),) +$(error No FSP-T binary file specified.) +endif # CONFIG_FSP_T_FILE +endif # CONFIG_FSP_CAR +ifeq ($(call strip_quotes,$(CONFIG_FSP_M_FILE)),) +$(error No FSP-M binary file specified.) +endif # CONFIG_FSP_M_FILE +ifeq ($(call strip_quotes,$(CONFIG_FSP_S_FILE)),) +$(error No FSP-S binary file specified.) +endif # CONFIG_FSP_S_FILE +ifeq ($(CONFIG_PLATFORM_USES_SECOND_FSP),y) +ifeq ($(call strip_quotes,$(CONFIG_FSP_M_FILE_2)),) +$(error No second FSP-M binary file specified.) +endif # CONFIG_FSP_M_FILE_2 +ifeq ($(call strip_quotes,$(CONFIG_FSP_S_FILE_2)),) +$(error No second FSP-S binary file specified.) +endif # CONFIG_FSP_S_FILE_2 +endif # CONFIG_PLATFORM_USES_SECOND_FSP +else # CONFIG_ADD_FSP_BINARIES +show_notices:: warn_no_fsp_binaries +endif # CONFIG_ADD_FSP_BINARIES + +PHONY+=warn_no_fsp_binaries +warn_no_fsp_binaries: + printf "\n\t** WARNING **\n" + printf "ADD_FSP_BINARIES isn't selected even though this SoC relies on the FSP.\n" + printf "The resulting image won't contain the FSP binaries and will not boot unless\n" + printf "they are added later.\n" + +subdirs-y += ppi + +endif diff --git a/src/drivers/intel/fsp2_0/ppi/Makefile.inc b/src/drivers/intel/fsp2_0/ppi/Makefile.inc deleted file mode 100644 index 823718bf28..0000000000 --- a/src/drivers/intel/fsp2_0/ppi/Makefile.inc +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_MP_SERVICES_PPI) += mp_service_ppi.c -ramstage-$(CONFIG_MP_SERVICES_PPI_V1) += mp_service1.c -ramstage-$(CONFIG_MP_SERVICES_PPI_V2) += mp_service2.c -ramstage-$(CONFIG_MP_SERVICES_PPI_V2_NOOP) += mp_service2_noop.c diff --git a/src/drivers/intel/fsp2_0/ppi/Makefile.mk b/src/drivers/intel/fsp2_0/ppi/Makefile.mk new file mode 100644 index 0000000000..823718bf28 --- /dev/null +++ b/src/drivers/intel/fsp2_0/ppi/Makefile.mk @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_MP_SERVICES_PPI) += mp_service_ppi.c +ramstage-$(CONFIG_MP_SERVICES_PPI_V1) += mp_service1.c +ramstage-$(CONFIG_MP_SERVICES_PPI_V2) += mp_service2.c +ramstage-$(CONFIG_MP_SERVICES_PPI_V2_NOOP) += mp_service2_noop.c diff --git a/src/drivers/intel/gma/Makefile.inc b/src/drivers/intel/gma/Makefile.inc deleted file mode 100644 index 269ef5aeb0..0000000000 --- a/src/drivers/intel/gma/Makefile.inc +++ /dev/null @@ -1,72 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_INTEL_DDI) += intel_ddi.c -ramstage-$(CONFIG_INTEL_EDID) += edid.c vbt.c -ifeq ($(CONFIG_VGA_ROM_RUN),y) -ramstage-$(CONFIG_INTEL_INT15) += int15.c -endif -ramstage-$(CONFIG_INTEL_GMA_ACPI) += acpi.c -ramstage-$(CONFIG_INTEL_GMA_ACPI) += opregion.c - -ifeq ($(CONFIG_INTEL_GMA_ADD_VBT),y) -# add_vbt_to_cbfs, first argument is the filename in cbfs, the second one -# is the filename in the coreboot tree. -add_vbt_to_cbfs= \ - $(eval cbfs-files-y += $1) \ - $(eval $1-file := $2) \ - $(eval $1-type := raw) \ - $(eval $1-compression := $(call strip_quotes,$(CONFIG_VBT_CBFS_COMPRESSION_ALGORITHM))) -endif - -$(call add_vbt_to_cbfs, vbt.bin, $(call strip_quotes,$(CONFIG_INTEL_GMA_VBT_FILE))) - -ifneq (,$(filter y, $(CONFIG_GFX_GMA) $(CONFIG_EARLY_GFX_GMA))) - -gfx-gma-stages = \ - $(if $(filter y,$(CONFIG_EARLY_GFX_GMA)),romstage) \ - $(if $(filter y,$(CONFIG_GFX_GMA)),ramstage) \ - -$(call add-special-class,gfxinit) -gfxinit-handler +=$(foreach stage, $(gfx-gma-stages), \ - $(eval $(stage)-srcs += $$(addprefix $(1),$(2)))) - -$(call add-special-class,gfxinit-gen) -gfxinit-gen-handler += \ - $(eval additional-dirs += $(dir $(2))) \ - $(foreach stage, $(gfx-gma-stages), \ - $(eval $(stage)-srcs += $(2)) \ - $(eval $(stage)-ads-deps += $(2)) \ - $(eval $(stage)-adb-deps += $(2))) \ - $(eval $(2): $(obj)/config.h) - -ifeq ($(CONFIG_GFX_GMA_DEFAULT_MMIO),) -CONFIG_GFX_GMA_DEFAULT_MMIO := 0 # dummy, will be overwritten at runtime -else -$(call to-ada-hex,CONFIG_GFX_GMA_DEFAULT_MMIO) -endif - -subdirs-y += ../../../../3rdparty/libgfxinit - -$(foreach stage,$(gfx-gma-stages), \ - $(eval $(stage)-y += gma.ads gma.adb)) - -endif # CONFIG_GFX_GMA || CONFIG_EARLY_GFX_GMA - -ifeq ($(CONFIG_GFX_GMA),y) - -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-gfx_init.ads -ifeq ($(CONFIG_LINEAR_FRAMEBUFFER),y) -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += hires_fb/gma-gfx_init.adb -else -ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += text_fb/gma-gfx_init.adb -endif - -endif # CONFIG_GFX_GMA - -ifeq ($(CONFIG_EARLY_GFX_GMA),y) - -romstage-$(CONFIG_MAINBOARD_USE_EARLY_LIBGFXINIT) += \ - gma-gfx_init.ads \ - text_fb/gma-gfx_init.adb - -endif # CONFIG_EARLY_GFX_GMA diff --git a/src/drivers/intel/gma/Makefile.mk b/src/drivers/intel/gma/Makefile.mk new file mode 100644 index 0000000000..269ef5aeb0 --- /dev/null +++ b/src/drivers/intel/gma/Makefile.mk @@ -0,0 +1,72 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_INTEL_DDI) += intel_ddi.c +ramstage-$(CONFIG_INTEL_EDID) += edid.c vbt.c +ifeq ($(CONFIG_VGA_ROM_RUN),y) +ramstage-$(CONFIG_INTEL_INT15) += int15.c +endif +ramstage-$(CONFIG_INTEL_GMA_ACPI) += acpi.c +ramstage-$(CONFIG_INTEL_GMA_ACPI) += opregion.c + +ifeq ($(CONFIG_INTEL_GMA_ADD_VBT),y) +# add_vbt_to_cbfs, first argument is the filename in cbfs, the second one +# is the filename in the coreboot tree. +add_vbt_to_cbfs= \ + $(eval cbfs-files-y += $1) \ + $(eval $1-file := $2) \ + $(eval $1-type := raw) \ + $(eval $1-compression := $(call strip_quotes,$(CONFIG_VBT_CBFS_COMPRESSION_ALGORITHM))) +endif + +$(call add_vbt_to_cbfs, vbt.bin, $(call strip_quotes,$(CONFIG_INTEL_GMA_VBT_FILE))) + +ifneq (,$(filter y, $(CONFIG_GFX_GMA) $(CONFIG_EARLY_GFX_GMA))) + +gfx-gma-stages = \ + $(if $(filter y,$(CONFIG_EARLY_GFX_GMA)),romstage) \ + $(if $(filter y,$(CONFIG_GFX_GMA)),ramstage) \ + +$(call add-special-class,gfxinit) +gfxinit-handler +=$(foreach stage, $(gfx-gma-stages), \ + $(eval $(stage)-srcs += $$(addprefix $(1),$(2)))) + +$(call add-special-class,gfxinit-gen) +gfxinit-gen-handler += \ + $(eval additional-dirs += $(dir $(2))) \ + $(foreach stage, $(gfx-gma-stages), \ + $(eval $(stage)-srcs += $(2)) \ + $(eval $(stage)-ads-deps += $(2)) \ + $(eval $(stage)-adb-deps += $(2))) \ + $(eval $(2): $(obj)/config.h) + +ifeq ($(CONFIG_GFX_GMA_DEFAULT_MMIO),) +CONFIG_GFX_GMA_DEFAULT_MMIO := 0 # dummy, will be overwritten at runtime +else +$(call to-ada-hex,CONFIG_GFX_GMA_DEFAULT_MMIO) +endif + +subdirs-y += ../../../../3rdparty/libgfxinit + +$(foreach stage,$(gfx-gma-stages), \ + $(eval $(stage)-y += gma.ads gma.adb)) + +endif # CONFIG_GFX_GMA || CONFIG_EARLY_GFX_GMA + +ifeq ($(CONFIG_GFX_GMA),y) + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-gfx_init.ads +ifeq ($(CONFIG_LINEAR_FRAMEBUFFER),y) +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += hires_fb/gma-gfx_init.adb +else +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += text_fb/gma-gfx_init.adb +endif + +endif # CONFIG_GFX_GMA + +ifeq ($(CONFIG_EARLY_GFX_GMA),y) + +romstage-$(CONFIG_MAINBOARD_USE_EARLY_LIBGFXINIT) += \ + gma-gfx_init.ads \ + text_fb/gma-gfx_init.adb + +endif # CONFIG_EARLY_GFX_GMA diff --git a/src/drivers/intel/i210/Makefile.inc b/src/drivers/intel/i210/Makefile.inc deleted file mode 100644 index bbbde88f6c..0000000000 --- a/src/drivers/intel/i210/Makefile.inc +++ /dev/null @@ -1,7 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVER_INTEL_I210)+= i210.c - -ifeq ($(CONFIG_DRIVER_INTEL_I210),y) -CPPFLAGS_common += -I$(src)/drivers/intel/i210/include -endif diff --git a/src/drivers/intel/i210/Makefile.mk b/src/drivers/intel/i210/Makefile.mk new file mode 100644 index 0000000000..bbbde88f6c --- /dev/null +++ b/src/drivers/intel/i210/Makefile.mk @@ -0,0 +1,7 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVER_INTEL_I210)+= i210.c + +ifeq ($(CONFIG_DRIVER_INTEL_I210),y) +CPPFLAGS_common += -I$(src)/drivers/intel/i210/include +endif diff --git a/src/drivers/intel/ish/Makefile.inc b/src/drivers/intel/ish/Makefile.inc deleted file mode 100644 index dfa4b1c444..0000000000 --- a/src/drivers/intel/ish/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_INTEL_ISH) += ish.c diff --git a/src/drivers/intel/ish/Makefile.mk b/src/drivers/intel/ish/Makefile.mk new file mode 100644 index 0000000000..dfa4b1c444 --- /dev/null +++ b/src/drivers/intel/ish/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_INTEL_ISH) += ish.c diff --git a/src/drivers/intel/mipi_camera/Makefile.inc b/src/drivers/intel/mipi_camera/Makefile.inc deleted file mode 100644 index fca8326307..0000000000 --- a/src/drivers/intel/mipi_camera/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_INTEL_MIPI_CAMERA) += camera.c diff --git a/src/drivers/intel/mipi_camera/Makefile.mk b/src/drivers/intel/mipi_camera/Makefile.mk new file mode 100644 index 0000000000..fca8326307 --- /dev/null +++ b/src/drivers/intel/mipi_camera/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_INTEL_MIPI_CAMERA) += camera.c diff --git a/src/drivers/intel/pmc_mux/Makefile.inc b/src/drivers/intel/pmc_mux/Makefile.inc deleted file mode 100644 index f607135dea..0000000000 --- a/src/drivers/intel/pmc_mux/Makefile.inc +++ /dev/null @@ -1,4 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -subdirs-y += conn -ramstage-$(CONFIG_DRIVERS_INTEL_PMC) += mux.c diff --git a/src/drivers/intel/pmc_mux/Makefile.mk b/src/drivers/intel/pmc_mux/Makefile.mk new file mode 100644 index 0000000000..f607135dea --- /dev/null +++ b/src/drivers/intel/pmc_mux/Makefile.mk @@ -0,0 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only + +subdirs-y += conn +ramstage-$(CONFIG_DRIVERS_INTEL_PMC) += mux.c diff --git a/src/drivers/intel/pmc_mux/conn/Makefile.inc b/src/drivers/intel/pmc_mux/conn/Makefile.inc deleted file mode 100644 index 668351b4df..0000000000 --- a/src/drivers/intel/pmc_mux/conn/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_INTEL_PMC) += conn.c diff --git a/src/drivers/intel/pmc_mux/conn/Makefile.mk b/src/drivers/intel/pmc_mux/conn/Makefile.mk new file mode 100644 index 0000000000..668351b4df --- /dev/null +++ b/src/drivers/intel/pmc_mux/conn/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_INTEL_PMC) += conn.c diff --git a/src/drivers/intel/ptt/Makefile.inc b/src/drivers/intel/ptt/Makefile.inc deleted file mode 100644 index bab1789fd9..0000000000 --- a/src/drivers/intel/ptt/Makefile.inc +++ /dev/null @@ -1,6 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -romstage-$(CONFIG_HAVE_INTEL_PTT) += ptt.c -ramstage-$(CONFIG_HAVE_INTEL_PTT) += ptt.c -postcar-$(CONFIG_HAVE_INTEL_PTT) += ptt.c -verstage-$(CONFIG_HAVE_INTEL_PTT) += ptt.c diff --git a/src/drivers/intel/ptt/Makefile.mk b/src/drivers/intel/ptt/Makefile.mk new file mode 100644 index 0000000000..bab1789fd9 --- /dev/null +++ b/src/drivers/intel/ptt/Makefile.mk @@ -0,0 +1,6 @@ +## SPDX-License-Identifier: GPL-2.0-only + +romstage-$(CONFIG_HAVE_INTEL_PTT) += ptt.c +ramstage-$(CONFIG_HAVE_INTEL_PTT) += ptt.c +postcar-$(CONFIG_HAVE_INTEL_PTT) += ptt.c +verstage-$(CONFIG_HAVE_INTEL_PTT) += ptt.c diff --git a/src/drivers/intel/soundwire/Makefile.inc b/src/drivers/intel/soundwire/Makefile.inc deleted file mode 100644 index 044e2ab8e9..0000000000 --- a/src/drivers/intel/soundwire/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_INTEL_SOUNDWIRE) += soundwire.c diff --git a/src/drivers/intel/soundwire/Makefile.mk b/src/drivers/intel/soundwire/Makefile.mk new file mode 100644 index 0000000000..044e2ab8e9 --- /dev/null +++ b/src/drivers/intel/soundwire/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_INTEL_SOUNDWIRE) += soundwire.c diff --git a/src/drivers/intel/usb4/retimer/Makefile.inc b/src/drivers/intel/usb4/retimer/Makefile.inc deleted file mode 100644 index 1c814850bd..0000000000 --- a/src/drivers/intel/usb4/retimer/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_INTEL_USB4_RETIMER) += retimer.c diff --git a/src/drivers/intel/usb4/retimer/Makefile.mk b/src/drivers/intel/usb4/retimer/Makefile.mk new file mode 100644 index 0000000000..1c814850bd --- /dev/null +++ b/src/drivers/intel/usb4/retimer/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_INTEL_USB4_RETIMER) += retimer.c diff --git a/src/drivers/ipmi/Makefile.inc b/src/drivers/ipmi/Makefile.inc deleted file mode 100644 index ade7147030..0000000000 --- a/src/drivers/ipmi/Makefile.inc +++ /dev/null @@ -1,13 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_IPMI_KCS) += ipmi_if.c -ramstage-$(CONFIG_IPMI_KCS) += ipmi_kcs.c -ramstage-$(CONFIG_IPMI_KCS) += ipmi_kcs_ops.c -ramstage-$(CONFIG_IPMI_KCS) += ipmi_ops.c -ramstage-$(CONFIG_IPMI_KCS) += ipmi_fru.c -ramstage-$(CONFIG_DRIVERS_IPMI_SUPERMICRO_OEM) += supermicro_oem.c -romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_if.c -romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_ops_premem.c -romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_kcs.c -romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_ops.c -smm-$(CONFIG_SOC_RAS_BMC_SEL) += ipmi_kcs.c diff --git a/src/drivers/ipmi/Makefile.mk b/src/drivers/ipmi/Makefile.mk new file mode 100644 index 0000000000..ade7147030 --- /dev/null +++ b/src/drivers/ipmi/Makefile.mk @@ -0,0 +1,13 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_IPMI_KCS) += ipmi_if.c +ramstage-$(CONFIG_IPMI_KCS) += ipmi_kcs.c +ramstage-$(CONFIG_IPMI_KCS) += ipmi_kcs_ops.c +ramstage-$(CONFIG_IPMI_KCS) += ipmi_ops.c +ramstage-$(CONFIG_IPMI_KCS) += ipmi_fru.c +ramstage-$(CONFIG_DRIVERS_IPMI_SUPERMICRO_OEM) += supermicro_oem.c +romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_if.c +romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_ops_premem.c +romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_kcs.c +romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_ops.c +smm-$(CONFIG_SOC_RAS_BMC_SEL) += ipmi_kcs.c diff --git a/src/drivers/ipmi/ocp/Makefile.inc b/src/drivers/ipmi/ocp/Makefile.inc deleted file mode 100644 index 8141ed6876..0000000000 --- a/src/drivers/ipmi/ocp/Makefile.inc +++ /dev/null @@ -1,7 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_IPMI_OCP) += ipmi_ocp.c ipmi_sel.c -ifeq ($(CONFIG_IPMI_OCP),y) -romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_ocp_romstage.c ipmi_sel.c -smm-$(CONFIG_IPMI_BMC_SEL) += ipmi_sel.c -endif diff --git a/src/drivers/ipmi/ocp/Makefile.mk b/src/drivers/ipmi/ocp/Makefile.mk new file mode 100644 index 0000000000..8141ed6876 --- /dev/null +++ b/src/drivers/ipmi/ocp/Makefile.mk @@ -0,0 +1,7 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_IPMI_OCP) += ipmi_ocp.c ipmi_sel.c +ifeq ($(CONFIG_IPMI_OCP),y) +romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi_ocp_romstage.c ipmi_sel.c +smm-$(CONFIG_IPMI_BMC_SEL) += ipmi_sel.c +endif diff --git a/src/drivers/lenovo/Makefile.inc b/src/drivers/lenovo/Makefile.inc deleted file mode 100644 index 0b62460db2..0000000000 --- a/src/drivers/lenovo/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_LENOVO_WACOM) += wacom.c diff --git a/src/drivers/lenovo/Makefile.mk b/src/drivers/lenovo/Makefile.mk new file mode 100644 index 0000000000..0b62460db2 --- /dev/null +++ b/src/drivers/lenovo/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_LENOVO_WACOM) += wacom.c diff --git a/src/drivers/lenovo/hybrid_graphics/Makefile.inc b/src/drivers/lenovo/hybrid_graphics/Makefile.inc deleted file mode 100644 index ec08d12777..0000000000 --- a/src/drivers/lenovo/hybrid_graphics/Makefile.inc +++ /dev/null @@ -1,4 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_LENOVO_HYBRID_GRAPHICS) += hybrid_graphics.c -romstage-$(CONFIG_DRIVERS_LENOVO_HYBRID_GRAPHICS) += romstage.c diff --git a/src/drivers/lenovo/hybrid_graphics/Makefile.mk b/src/drivers/lenovo/hybrid_graphics/Makefile.mk new file mode 100644 index 0000000000..ec08d12777 --- /dev/null +++ b/src/drivers/lenovo/hybrid_graphics/Makefile.mk @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_LENOVO_HYBRID_GRAPHICS) += hybrid_graphics.c +romstage-$(CONFIG_DRIVERS_LENOVO_HYBRID_GRAPHICS) += romstage.c diff --git a/src/drivers/maxim/max77686/Makefile.inc b/src/drivers/maxim/max77686/Makefile.inc deleted file mode 100644 index f65e7fa981..0000000000 --- a/src/drivers/maxim/max77686/Makefile.inc +++ /dev/null @@ -1,4 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -romstage-$(CONFIG_DRIVER_MAXIM_MAX77686) += max77686.c -ramstage-$(CONFIG_DRIVER_MAXIM_MAX77686) += max77686.c diff --git a/src/drivers/maxim/max77686/Makefile.mk b/src/drivers/maxim/max77686/Makefile.mk new file mode 100644 index 0000000000..f65e7fa981 --- /dev/null +++ b/src/drivers/maxim/max77686/Makefile.mk @@ -0,0 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only + +romstage-$(CONFIG_DRIVER_MAXIM_MAX77686) += max77686.c +ramstage-$(CONFIG_DRIVER_MAXIM_MAX77686) += max77686.c diff --git a/src/drivers/mipi/Makefile.inc b/src/drivers/mipi/Makefile.inc deleted file mode 100644 index ffa90f9eff..0000000000 --- a/src/drivers/mipi/Makefile.inc +++ /dev/null @@ -1,37 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -ramstage-y += panel.c - -panel-params-y := - -panel-params-$(CONFIG_MIPI_PANEL_AUO_B101UAN08_3) += panel-AUO_B101UAN08_3 -panel-params-$(CONFIG_MIPI_PANEL_AUO_KD101N80_45NA) += panel-AUO_KD101N80_45NA -panel-params-$(CONFIG_MIPI_PANEL_AUO_NT51021D8P) += panel-AUO_NT51021D8P - -panel-params-$(CONFIG_MIPI_PANEL_BOE_NV110WUM_L60) += panel-BOE_NV110WUM_L60 -panel-params-$(CONFIG_MIPI_PANEL_BOE_TV080WUM_NG0) += panel-BOE_TV080WUM_NG0 -panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_N53) += panel-BOE_TV101WUM_N53 -panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_NG0) += panel-BOE_TV101WUM_NG0 -panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_NL6) += panel-BOE_TV101WUM_NL6 -panel-params-$(CONFIG_MIPI_PANEL_BOE_TV105WUM_NW0) += panel-BOE_TV105WUM_NW0 -panel-params-$(CONFIG_MIPI_PANEL_BOE_TV110C9M_LL0) += panel-BOE_TV110C9M_LL0 - -panel-params-$(CONFIG_MIPI_PANEL_CMN_P097PFG_SSD2858) += panel-CMN_P097PFG_SSD2858 - -panel-params-$(CONFIG_MIPI_PANEL_INX_HJ110IZ_01A_B2) += panel-INX_HJ110IZ_01A_B2 -panel-params-$(CONFIG_MIPI_PANEL_INX_OTA7290D10P) += panel-INX_OTA7290D10P - -panel-params-$(CONFIG_MIPI_PANEL_IVO_T109NW41) += panel-IVO_T109NW41 - -panel-params-$(CONFIG_MIPI_PANEL_STA_2081101QFH032011_53G) += panel-STA_2081101QFH032011_53G -panel-params-$(CONFIG_MIPI_PANEL_STA_HIMAX83102_J02) += panel-STA_HIMAX83102_J02 -panel-params-$(CONFIG_MIPI_PANEL_STA_ILI9882T) += panel-STA_ILI9882T - -panel-params-$(CONFIG_MIPI_PANEL_VIS_RM69299) += panel-VIS_RM69299 - -$(foreach params,$(panel-params-y), \ - $(eval cbfs-files-y += $(params)) \ - $(eval $(params)-file := $(params).c:struct) \ - $(eval $(params)-type := struct) \ - $(eval $(params)-compression := $(CBFS_COMPRESS_FLAG)) \ -) diff --git a/src/drivers/mipi/Makefile.mk b/src/drivers/mipi/Makefile.mk new file mode 100644 index 0000000000..ffa90f9eff --- /dev/null +++ b/src/drivers/mipi/Makefile.mk @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-only + +ramstage-y += panel.c + +panel-params-y := + +panel-params-$(CONFIG_MIPI_PANEL_AUO_B101UAN08_3) += panel-AUO_B101UAN08_3 +panel-params-$(CONFIG_MIPI_PANEL_AUO_KD101N80_45NA) += panel-AUO_KD101N80_45NA +panel-params-$(CONFIG_MIPI_PANEL_AUO_NT51021D8P) += panel-AUO_NT51021D8P + +panel-params-$(CONFIG_MIPI_PANEL_BOE_NV110WUM_L60) += panel-BOE_NV110WUM_L60 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV080WUM_NG0) += panel-BOE_TV080WUM_NG0 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_N53) += panel-BOE_TV101WUM_N53 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_NG0) += panel-BOE_TV101WUM_NG0 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_NL6) += panel-BOE_TV101WUM_NL6 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV105WUM_NW0) += panel-BOE_TV105WUM_NW0 +panel-params-$(CONFIG_MIPI_PANEL_BOE_TV110C9M_LL0) += panel-BOE_TV110C9M_LL0 + +panel-params-$(CONFIG_MIPI_PANEL_CMN_P097PFG_SSD2858) += panel-CMN_P097PFG_SSD2858 + +panel-params-$(CONFIG_MIPI_PANEL_INX_HJ110IZ_01A_B2) += panel-INX_HJ110IZ_01A_B2 +panel-params-$(CONFIG_MIPI_PANEL_INX_OTA7290D10P) += panel-INX_OTA7290D10P + +panel-params-$(CONFIG_MIPI_PANEL_IVO_T109NW41) += panel-IVO_T109NW41 + +panel-params-$(CONFIG_MIPI_PANEL_STA_2081101QFH032011_53G) += panel-STA_2081101QFH032011_53G +panel-params-$(CONFIG_MIPI_PANEL_STA_HIMAX83102_J02) += panel-STA_HIMAX83102_J02 +panel-params-$(CONFIG_MIPI_PANEL_STA_ILI9882T) += panel-STA_ILI9882T + +panel-params-$(CONFIG_MIPI_PANEL_VIS_RM69299) += panel-VIS_RM69299 + +$(foreach params,$(panel-params-y), \ + $(eval cbfs-files-y += $(params)) \ + $(eval $(params)-file := $(params).c:struct) \ + $(eval $(params)-type := struct) \ + $(eval $(params)-compression := $(CBFS_COMPRESS_FLAG)) \ +) diff --git a/src/drivers/mrc_cache/Makefile.inc b/src/drivers/mrc_cache/Makefile.inc deleted file mode 100644 index 44cd1f2f5a..0000000000 --- a/src/drivers/mrc_cache/Makefile.inc +++ /dev/null @@ -1,4 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -romstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c -ramstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c diff --git a/src/drivers/mrc_cache/Makefile.mk b/src/drivers/mrc_cache/Makefile.mk new file mode 100644 index 0000000000..44cd1f2f5a --- /dev/null +++ b/src/drivers/mrc_cache/Makefile.mk @@ -0,0 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only + +romstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c +ramstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c diff --git a/src/drivers/net/Makefile.inc b/src/drivers/net/Makefile.inc deleted file mode 100644 index 9ba459b25a..0000000000 --- a/src/drivers/net/Makefile.inc +++ /dev/null @@ -1,27 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-$(CONFIG_CONSOLE_NE2K) += ne2k.c -romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c -ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c -ramstage-$(CONFIG_REALTEK_8168_RESET) += r8168.c -ramstage-$(CONFIG_ATHEROS_ATL1E_SETMAC) += atl1e.c - -ifneq ($(CONFIG_REALTEK_8168_MACADDRESS),"") -$(obj)/rt8168-macaddress: $(DOTCONFIG) - echo " Creating a file holding the rt8168 macaddress" - printf %s $(CONFIG_REALTEK_8168_MACADDRESS) > $@ - -cbfs-files-$(CONFIG_REALTEK_8168_RESET) += rt8168-macaddress -rt8168-macaddress-file := $(obj)/rt8168-macaddress -rt8168-macaddress-type := raw -endif - -ifneq ($(CONFIG_ATHEROS_ATL1E_MACADDRESS),"") -$(obj)/atl1e-macaddress: $(DOTCONFIG) - echo " Creating a file holding the atl1e macaddress" - printf %s $(CONFIG_ATHEROS_ATL1E_MACADDRESS) > $@ - -cbfs-files-$(CONFIG_ATHEROS_ATL1E_SETMAC) += atl1e-macaddress -atl1e-macaddress-file := $(obj)/atl1e-macaddress -atl1e-macaddress-type := raw -endif diff --git a/src/drivers/net/Makefile.mk b/src/drivers/net/Makefile.mk new file mode 100644 index 0000000000..9ba459b25a --- /dev/null +++ b/src/drivers/net/Makefile.mk @@ -0,0 +1,27 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-$(CONFIG_CONSOLE_NE2K) += ne2k.c +romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c +ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c +ramstage-$(CONFIG_REALTEK_8168_RESET) += r8168.c +ramstage-$(CONFIG_ATHEROS_ATL1E_SETMAC) += atl1e.c + +ifneq ($(CONFIG_REALTEK_8168_MACADDRESS),"") +$(obj)/rt8168-macaddress: $(DOTCONFIG) + echo " Creating a file holding the rt8168 macaddress" + printf %s $(CONFIG_REALTEK_8168_MACADDRESS) > $@ + +cbfs-files-$(CONFIG_REALTEK_8168_RESET) += rt8168-macaddress +rt8168-macaddress-file := $(obj)/rt8168-macaddress +rt8168-macaddress-type := raw +endif + +ifneq ($(CONFIG_ATHEROS_ATL1E_MACADDRESS),"") +$(obj)/atl1e-macaddress: $(DOTCONFIG) + echo " Creating a file holding the atl1e macaddress" + printf %s $(CONFIG_ATHEROS_ATL1E_MACADDRESS) > $@ + +cbfs-files-$(CONFIG_ATHEROS_ATL1E_SETMAC) += atl1e-macaddress +atl1e-macaddress-file := $(obj)/atl1e-macaddress +atl1e-macaddress-type := raw +endif diff --git a/src/drivers/net/phy/m88e1512/Makefile.inc b/src/drivers/net/phy/m88e1512/Makefile.inc deleted file mode 100644 index a0433f56f4..0000000000 --- a/src/drivers/net/phy/m88e1512/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_ETH_PHY_M88E1512) += m88e1512.c diff --git a/src/drivers/net/phy/m88e1512/Makefile.mk b/src/drivers/net/phy/m88e1512/Makefile.mk new file mode 100644 index 0000000000..a0433f56f4 --- /dev/null +++ b/src/drivers/net/phy/m88e1512/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_ETH_PHY_M88E1512) += m88e1512.c diff --git a/src/drivers/nxp/uwb/Makefile.inc b/src/drivers/nxp/uwb/Makefile.inc deleted file mode 100644 index b81f7e257d..0000000000 --- a/src/drivers/nxp/uwb/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_DRIVERS_NXP_UWB_SR1XX) += uwb.c diff --git a/src/drivers/nxp/uwb/Makefile.mk b/src/drivers/nxp/uwb/Makefile.mk new file mode 100644 index 0000000000..b81f7e257d --- /dev/null +++ b/src/drivers/nxp/uwb/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_DRIVERS_NXP_UWB_SR1XX) += uwb.c diff --git a/src/drivers/ocp/dmi/Makefile.inc b/src/drivers/ocp/dmi/Makefile.inc deleted file mode 100644 index bce5bceda0..0000000000 --- a/src/drivers/ocp/dmi/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -ramstage-$(CONFIG_OCP_DMI) += smbios.c diff --git a/src/drivers/ocp/dmi/Makefile.mk b/src/drivers/ocp/dmi/Makefile.mk new file mode 100644 index 0000000000..bce5bceda0 --- /dev/null +++ b/src/drivers/ocp/dmi/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ramstage-$(CONFIG_OCP_DMI) += smbios.c diff --git a/src/drivers/ocp/ewl/Makefile.inc b/src/drivers/ocp/ewl/Makefile.inc deleted file mode 100644 index 2b3ffb6d31..0000000000 --- a/src/drivers/ocp/ewl/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -romstage-$(CONFIG_OCP_EWL) += ewl.c diff --git a/src/drivers/ocp/ewl/Makefile.mk b/src/drivers/ocp/ewl/Makefile.mk new file mode 100644 index 0000000000..2b3ffb6d31 --- /dev/null +++ b/src/drivers/ocp/ewl/Makefile.mk @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-only + +romstage-$(CONFIG_OCP_EWL) += ewl.c diff --git a/src/drivers/ocp/vpd/Makefile.inc b/src/drivers/ocp/vpd/Makefile.inc deleted file mode 100644 index 1cdc63b524..0000000000 --- a/src/drivers/ocp/vpd/Makefile.inc +++ /dev/null @@ -1,8 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -romstage-$(CONFIG_OCP_VPD) += vpd_util.c -ramstage-$(CONFIG_OCP_VPD) += vpd_util.c -ramstage-$(CONFIG_LINUXPAYLOAD_CMDLINE_VPD_OVERWRITE) += vpd_cmdline.c -ifeq ($(CONFIG_VPD),y) -all-$(CONFIG_CONSOLE_OVERRIDE_LOGLEVEL) += loglevel_vpd.c -endif diff --git a/src/drivers/ocp/vpd/Makefile.mk b/src/drivers/ocp/vpd/Makefile.mk new file mode 100644 index 0000000000..1cdc63b524 --- /dev/null +++ b/src/drivers/ocp/vpd/Makefile.mk @@ -0,0 +1,8 @@ +## SPDX-License-Identifier: GPL-2.0-only + +romstage-$(CONFIG_OCP_VPD) += vpd_util.c +ramstage-$(CONFIG_OCP_VPD) += vpd_util.c +ramstage-$(CONFIG_LINUXPAYLOAD_CMDLINE_VPD_OVERWRITE) += vpd_cmdline.c +ifeq ($(CONFIG_VPD),y) +all-$(CONFIG_CONSOLE_OVERRIDE_LOGLEVEL) += loglevel_vpd.c +endif -- cgit v1.2.3