gma config: Turn Alder Lake into its own generation
It's not physically compatible to Tiger Lake. Hence no binary has
to support both and we can compile them separately. Also, the new
generation actually starts with Alder Lake P, so we name it accor-
dingly.
Change-Id: I66f01609326204d9a93a2206c048bd59bfdbef6b
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/503
Reviewed-by: Thomas Heijligen <src@posteo.de>
Tested-by: Ada SPARK <gnatbot@sourcearcade.org>
diff --git a/common/Makefile.inc b/common/Makefile.inc
index 175c152..236a323 100644
--- a/common/Makefile.inc
+++ b/common/Makefile.inc
@@ -64,7 +64,7 @@
CONFIG_GFX_GMA_ANALOG_I2C_PORT := $(call strip_quotes,$(CONFIG_GFX_GMA_ANALOG_I2C_PORT))
CONFIG_GFX_GMA_IGNORE_PRESENCE_STRAPS := $(if $(filter y,$(CONFIG_GFX_GMA_IGNORE_PRESENCE_STRAPS)),True,False)
-_GEN_TLA_SUBSTITUTIONS := i945 g45 ilk hsw skl tgl
+_GEN_TLA_SUBSTITUTIONS := i945 g45 ilk hsw skl tgl adl
_GEN_NONCONST := $(strip \
$(if $(filter I945,$(CONFIG_GFX_GMA_GENERATION)),i945, \
@@ -72,7 +72,8 @@
$(if $(filter Ironlake,$(CONFIG_GFX_GMA_GENERATION)),ilk, \
$(if $(filter Haswell,$(CONFIG_GFX_GMA_GENERATION)),hsw, \
$(if $(filter Skylake,$(CONFIG_GFX_GMA_GENERATION)),skl, \
- $(if $(filter Tigerlake,$(CONFIG_GFX_GMA_GENERATION)),tgl)))))))
+ $(if $(filter Tigerlake,$(CONFIG_GFX_GMA_GENERATION)),tgl, \
+ $(if $(filter AlderlakeP,$(CONFIG_GFX_GMA_GENERATION)),adl))))))))
# GNATprove (GPL 2017) doesn't realize when a boolean expression
# that depends both on static values and variables can be evalu-
# ated at compile time (e.g. `False and then Variable` is always
@@ -138,6 +139,6 @@
subdirs-y += haswell_shared broxton
else ifneq ($(filter Skylake,$(CONFIG_GFX_GMA_GENERATION)),)
subdirs-y += haswell_shared skylake
-else ifneq ($(filter Tigerlake,$(CONFIG_GFX_GMA_GENERATION)),)
+else ifneq ($(filter Tigerlake AlderlakeP,$(CONFIG_GFX_GMA_GENERATION)),)
subdirs-y += tigerlake
endif