flatbuffers: update to version 2.0.7

Backport from NXP's lf-6.1.1-1.0.0 release for the ccimx93 (meta-ml
layer).

This version of flatbuffers is needed for ethos-u-vela version 3.6.0
(backported in following commit).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2023-06-26 15:40:14 +02:00
parent cbe83df69a
commit 9acc53d948
5 changed files with 68 additions and 0 deletions

View File

@ -280,6 +280,8 @@ PREFERRED_VERSION_optee-test:mx9-nxp-bsp ??= "3.19.0.imx"
# Machine learning backports from NXP's lf-6.1.1_1.0.0 release # Machine learning backports from NXP's lf-6.1.1_1.0.0 release
PREFERRED_VERSION_deepview-rt:ccimx93 = "2.4.46.1-aarch64" PREFERRED_VERSION_deepview-rt:ccimx93 = "2.4.46.1-aarch64"
PREFERRED_VERSION_flatbuffers:ccimx93 = "2.0.7"
PREFERRED_VERSION_flatbuffers-native:ccimx93 = "2.0.7"
PREFERRED_VERSION_tensorflow-lite:ccimx93 = "2.10.0" PREFERRED_VERSION_tensorflow-lite:ccimx93 = "2.10.0"
PREFERRED_VERSION_tensorflow-lite-host-tools:ccimx93 = "2.10.0" PREFERRED_VERSION_tensorflow-lite-host-tools:ccimx93 = "2.10.0"
PREFERRED_VERSION_tensorflow-lite-host-tools-native:ccimx93 = "2.10.0" PREFERRED_VERSION_tensorflow-lite-host-tools-native:ccimx93 = "2.10.0"

View File

@ -0,0 +1,7 @@
Name: flatbuffers
Description: memory efficient serialization library
Version: @version@
Requires:
Libs: -L@libdir@ -lflatbuffers
Cflags: -I@includedir@

View File

@ -0,0 +1,11 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI:append = " file://flatbuffers.pc.in"
do_install:append() {
install -D -m 0644 ${WORKDIR}/flatbuffers.pc.in ${D}${libdir}/pkgconfig/flatbuffers.pc
sed -i 's:@version@:${PV}:g
s:@libdir@:${libdir}:g
s:@includedir@:${includedir}:g' ${D}${libdir}/pkgconfig/flatbuffers.pc
}

View File

@ -0,0 +1,34 @@
SUMMARY = "Memory Efficient Serialization Library"
HOMEPAGE = "https://github.com/google/flatbuffers"
SECTION = "console/tools"
LICENSE = "Apache-2.0"
PACKAGE_BEFORE_PN = "${PN}-compiler"
DEPENDS = "flatbuffers-native"
RDEPENDS:${PN}-compiler = "${PN}"
RDEPENDS:${PN}-${PYTHON_PN} = "${PN}"
RDEPENDS:${PN}-dev += "${PN}-compiler"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRCREV = "8367664f15c3ea2ee58c67dacf9d630b49466de5"
SRC_URI = "git://github.com/google/flatbuffers.git;branch=master;protocol=https"
CVE_CHECK_IGNORE += "CVE-2020-35864"
EXTRA_OECMAKE += "\
-DFLATBUFFERS_BUILD_TESTS=OFF \
-DFLATBUFFERS_BUILD_SHAREDLIB=ON \
"
EXTRA_OECMAKE:append:class-target = " -DFLATBUFFERS_FLATC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/flatc"
inherit cmake python3native
S = "${WORKDIR}/git"
FILES:${PN}-compiler = "${bindir}"
BBCLASSEXTEND = "native nativesdk"

View File

@ -0,0 +1,14 @@
SUMMARY = "Memory Efficient Serialization Library - Python3 Modules"
HOMEPAGE = "https://github.com/google/flatbuffers"
SECTION = "console/tools"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://../LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRCREV = "8367664f15c3ea2ee58c67dacf9d630b49466de5"
SRC_URI = "git://github.com/google/flatbuffers.git;branch=master;protocol=https"
S = "${WORKDIR}/git/python"
RDEPENDS:${PN} = "flatbuffers"
inherit setuptools3