diff options
author | Martin Roth <gaumless@gmail.com> | 2024-01-18 13:18:47 -0700 |
---|---|---|
committer | Felix Singer <service+coreboot-gerrit@felixsinger.de> | 2024-01-24 10:04:10 +0000 |
commit | af880447028ae532428224097ca171a3e729afd4 (patch) | |
tree | e7c249896beade5213c854dfcc2ba77b0570cddf /src/drivers/intel/gma/Makefile.mk | |
parent | b72ad6657c7a4a9cddfa0fc1a0e94a939c0caccc (diff) |
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 <gaumless@gmail.com>
Change-Id: Id47a5ef3c53f767d1e03c788e0022d05b21f5c28
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80079
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Diffstat (limited to 'src/drivers/intel/gma/Makefile.mk')
-rw-r--r-- | src/drivers/intel/gma/Makefile.mk | 72 |
1 files changed, 72 insertions, 0 deletions
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 |