From b028636d02f63881e4663ff0f1ae435c00865615 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 18 Jan 2024 10:48:28 -0700 Subject: cpu: Rename Makefiles from .inc to .mk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: I552d487978906f5ea74c3d0d85373fe5b2de3f38 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80068 Reviewed-by: Michael Niewöhner Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer Reviewed-by: Maximilian Brune --- src/cpu/intel/microcode/Makefile.inc | 27 --------------------------- src/cpu/intel/microcode/Makefile.mk | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 src/cpu/intel/microcode/Makefile.inc create mode 100644 src/cpu/intel/microcode/Makefile.mk (limited to 'src/cpu/intel/microcode') diff --git a/src/cpu/intel/microcode/Makefile.inc b/src/cpu/intel/microcode/Makefile.inc deleted file mode 100644 index 4e10a4b15f..0000000000 --- a/src/cpu/intel/microcode/Makefile.inc +++ /dev/null @@ -1,27 +0,0 @@ -## SPDX-License-Identifier: GPL-2.0-only - -bootblock-$(CONFIG_MICROCODE_UPDATE_PRE_RAM) += microcode_asm.S - -bootblock-$(CONFIG_SUPPORT_CPU_UCODE_IN_CBFS) += microcode.c -ramstage-$(CONFIG_SUPPORT_CPU_UCODE_IN_CBFS) += microcode.c -romstage-$(CONFIG_SUPPORT_CPU_UCODE_IN_CBFS) += microcode.c - -# Pack individual microcodes per CPUID from CONFIG_CPU_INTEL_UCODE_SPLIT_BINARIES directory into the CBFS. -ifeq ($(CONFIG_CPU_INTEL_MICROCODE_CBFS_SPLIT_BINS),y) -microcode-params-dir := $(call strip_quotes,$(CONFIG_CPU_INTEL_UCODE_SPLIT_BINARIES))/ -microcode-params := $(shell find "$(microcode-params-dir)" -type f -exec basename {} \;) - -# Make "cpu_microcode_$(CPUID).bin" file entry into the FIT table -$(call add_intermediate, add_mcu_fit, set_fit_ptr $(IFITTOOL)) - $(foreach params, $(microcode-params), $(shell $(IFITTOOL) -f $< -a -n $(params) -t 1 \ - -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT)) true - -# Add "cpu_microcode_$(CPUID).bin" file into the CBFS -$(foreach params,$(microcode-params), \ - $(eval cbfs-files-y += $(params)) \ - $(eval $(params)-file := $(microcode-params-dir)/$(params)) \ - $(eval $(params)-type := microcode) \ - $(eval $(params)-align := 16) \ -) - -endif diff --git a/src/cpu/intel/microcode/Makefile.mk b/src/cpu/intel/microcode/Makefile.mk new file mode 100644 index 0000000000..4e10a4b15f --- /dev/null +++ b/src/cpu/intel/microcode/Makefile.mk @@ -0,0 +1,27 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-$(CONFIG_MICROCODE_UPDATE_PRE_RAM) += microcode_asm.S + +bootblock-$(CONFIG_SUPPORT_CPU_UCODE_IN_CBFS) += microcode.c +ramstage-$(CONFIG_SUPPORT_CPU_UCODE_IN_CBFS) += microcode.c +romstage-$(CONFIG_SUPPORT_CPU_UCODE_IN_CBFS) += microcode.c + +# Pack individual microcodes per CPUID from CONFIG_CPU_INTEL_UCODE_SPLIT_BINARIES directory into the CBFS. +ifeq ($(CONFIG_CPU_INTEL_MICROCODE_CBFS_SPLIT_BINS),y) +microcode-params-dir := $(call strip_quotes,$(CONFIG_CPU_INTEL_UCODE_SPLIT_BINARIES))/ +microcode-params := $(shell find "$(microcode-params-dir)" -type f -exec basename {} \;) + +# Make "cpu_microcode_$(CPUID).bin" file entry into the FIT table +$(call add_intermediate, add_mcu_fit, set_fit_ptr $(IFITTOOL)) + $(foreach params, $(microcode-params), $(shell $(IFITTOOL) -f $< -a -n $(params) -t 1 \ + -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT)) true + +# Add "cpu_microcode_$(CPUID).bin" file into the CBFS +$(foreach params,$(microcode-params), \ + $(eval cbfs-files-y += $(params)) \ + $(eval $(params)-file := $(microcode-params-dir)/$(params)) \ + $(eval $(params)-type := microcode) \ + $(eval $(params)-align := 16) \ +) + +endif -- cgit v1.2.3