2 ## This file is part of the coreboot project.
4 ## SPDX-License-Identifier: GPL-2.0-only
6 ramstage-$(CONFIG_INTEL_DDI) += intel_ddi.c
7 ramstage-$(CONFIG_INTEL_EDID) += edid.c vbt.c
8 ifeq ($(CONFIG_VGA_ROM_RUN),y)
9 ramstage-$(CONFIG_INTEL_INT15) += int15.c
11 ramstage-$(CONFIG_INTEL_GMA_ACPI) += acpi.c
12 ramstage-$(CONFIG_INTEL_GMA_ACPI) += opregion.c
14 # add_vbt_to_cbfs, first argument is the filename in cbfs, the second one
15 # is the filename in the coreboot tree.
17 $(eval cbfs-files-y += $1) \
18 $(eval $1-file := $2) \
19 $(eval $1-type := raw) \
20 $(eval $1-compression := lzma)
22 ifeq ($(CONFIG_INTEL_GMA_ADD_VBT),y)
23 $(call add_vbt_to_cbfs, vbt.bin, $(call strip_quotes,$(CONFIG_INTEL_GMA_VBT_FILE)))
26 ifeq ($(CONFIG_GFX_GMA),y)
28 $(call add-special-class,gfxinit)
29 gfxinit-handler = $(eval ramstage-srcs += $(1)$(2))
31 $(call add-special-class,gfxinit-gen)
32 gfxinit-gen-handler = \
33 $(eval additional-dirs += $(dir $(2))) \
34 $(eval ramstage-srcs += $(2)) \
35 $(eval ramstage-ads-deps += $(2)) \
36 $(eval ramstage-adb-deps += $(2)) \
37 $(eval $(2): $(obj)/config.h)
39 CONFIG_GFX_GMA_DEFAULT_MMIO := 0 # dummy, will be overwritten at runtime
41 subdirs-y += ../../../../3rdparty/libgfxinit
43 ramstage-y += gma.ads gma.adb
45 ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-gfx_init.ads
46 ifeq ($(CONFIG_LINEAR_FRAMEBUFFER),y)
47 ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += hires_fb/gma-gfx_init.adb
49 ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += text_fb/gma-gfx_init.adb
52 endif # CONFIG_GFX_GMA