aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2020-07-07 16:16:59 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2020-07-16 00:57:04 +0300
commit74333340d5853f807009c3a427ff156a7661ca2e (patch)
treed7c4c80bb8cf07b847be06605b69b24427bd29a0
parent5eaa0bf906c5efe35603dea3122521d2ec3f4fd0 (diff)
downloadmeta-qcom-74333340d5853f807009c3a427ff156a7661ca2e.tar.gz
meta-qcom-74333340d5853f807009c3a427ff156a7661ca2e.tar.bz2
meta-qcom-74333340d5853f807009c3a427ff156a7661ca2e.zip
mesa: simplify meta-qcom bbappend
To simplify mesa_%.bbappend define separate variable with `PACKAGECONFIG` appends and incude it into per-machine overrides. Also drop separate `GALLIUMDRIVERS` override in favour of using `freedreno` in `PACKAGECONFIG`. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
-rw-r--r--recipes-graphics/mesa/mesa_%.bbappend26
1 files changed, 6 insertions, 20 deletions
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
index 00e12fd..bdacbb0 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -1,27 +1,13 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
# Enable freedreno driver
-GALLIUMDRIVERS_append_apq8064 = ",freedreno"
-GALLIUMDRIVERS_append_apq8016 = ",freedreno"
-GALLIUMDRIVERS_append_apq8096 = ",freedreno"
-GALLIUMDRIVERS_append_sdm845 = ",freedreno"
-
-PACKAGECONFIG_append_apq8064 = " \
- gallium \
- ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xa', '', d)} \
-"
-
-PACKAGECONFIG_append_apq8016 = " \
- gallium \
- ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xa', '', d)} \
-"
-
-PACKAGECONFIG_append_apq8096 = " \
+PACKAGECONFIG_FREEDRENO = "\
gallium \
+ freedreno \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xa', '', d)} \
"
-PACKAGECONFIG_append_sdm845 = " \
- gallium \
- ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xa', '', d)} \
-"
+PACKAGECONFIG_append_apq8016 = "${PACKAGECONFIG_FREEDRENO}"
+PACKAGECONFIG_append_apq8064 = "${PACKAGECONFIG_FREEDRENO}"
+PACKAGECONFIG_append_apq8096 = "${PACKAGECONFIG_FREEDRENO}"
+PACKAGECONFIG_append_sdm845 = "${PACKAGECONFIG_FREEDRENO}"