summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWadim Egorov <w.egorov@phytec.de>2018-12-11 13:17:46 +0100
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2018-12-11 14:55:58 +0100
commit1ebc2e12941c7c198e82c31759886161c3ef312d (patch)
treec05c6dac45fb5be213da481c198dea2d805019ad
parent587654d747006d4d1f7ab719cd9eb20d9397ed09 (diff)
downloadmeta-phytec-1ebc2e12941c7c198e82c31759886161c3ef312d.tar.bz2
meta-phytec-1ebc2e12941c7c198e82c31759886161c3ef312d.zip
mali-t760-libs: Update gbm.h
This was causing compilation issues when one of its providers wasn’t already included before gbm.h. Original patch comes from the mesa project: f3d4d10a1d48 ("gbm.h: Add a missing stddef.h include for size_t.") Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--recipes-graphics/mali-t760-libs/files/0001-gbm.h-Add-a-missing-stddef.h-include-for-size_t.patch12
-rw-r--r--recipes-graphics/mali-t760-libs/mali-t760-libs_r12p0-04rel0.bb4
2 files changed, 15 insertions, 1 deletions
diff --git a/recipes-graphics/mali-t760-libs/files/0001-gbm.h-Add-a-missing-stddef.h-include-for-size_t.patch b/recipes-graphics/mali-t760-libs/files/0001-gbm.h-Add-a-missing-stddef.h-include-for-size_t.patch
new file mode 100644
index 0000000..1958c15
--- /dev/null
+++ b/recipes-graphics/mali-t760-libs/files/0001-gbm.h-Add-a-missing-stddef.h-include-for-size_t.patch
@@ -0,0 +1,12 @@
+diff --git a/gbm/inc/gbm.h b/gbm/inc/gbm.h
+index 9d2a030..7a808a0 100644
+--- a/gbm/inc/gbm.h
++++ b/gbm/inc/gbm.h
+@@ -35,6 +35,7 @@ extern "C" {
+
+ #define __GBM__ 1
+
++#include <stddef.h>
+ #include <stdint.h>
+
+ /**
diff --git a/recipes-graphics/mali-t760-libs/mali-t760-libs_r12p0-04rel0.bb b/recipes-graphics/mali-t760-libs/mali-t760-libs_r12p0-04rel0.bb
index 5fb981c..96488c4 100644
--- a/recipes-graphics/mali-t760-libs/mali-t760-libs_r12p0-04rel0.bb
+++ b/recipes-graphics/mali-t760-libs/mali-t760-libs_r12p0-04rel0.bb
@@ -16,7 +16,9 @@ S = "${WORKDIR}/mali-t760-libs_${PV}"
SRC_URI[md5sum] = "71790b9a635263188bd88e539d24d89c"
SRC_URI[sha256sum] = "f1ac336dd72401ec2656a9ef71fcee11d50a2f38d48fbd25a07f7750d1543a60"
-SRC_URI = "ftp://ftp.phytec.de/pub/Software/Linux/Driver/mali-t760/mali-t760-libs_${PV}.tar.gz"
+SRC_URI = "ftp://ftp.phytec.de/pub/Software/Linux/Driver/mali-t760/mali-t760-libs_${PV}.tar.gz \
+ file://0001-gbm.h-Add-a-missing-stddef.h-include-for-size_t.patch \
+"
PACKAGES = "${PN} ${PN}-dev ${PN}-dbg"