mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-07-19 18:39:09 +02:00
flatbuffers: upgrade v1.12.0 -> v2.0.7
Apps using TF Lite as its backend need to have the corresponding version of flatbuffers available, which is v2.0.7 as of TF Lite v2.10.0 Signed-off-by: Adam Lanicek adam.lanicek@nxp.com
This commit is contained in:
parent
09ab96f374
commit
109a0786af
|
@ -3,9 +3,8 @@ HOMEPAGE = "https://github.com/google/flatbuffers"
|
|||
SECTION = "console/tools"
|
||||
LICENSE = "Apache-2.0"
|
||||
|
||||
inherit python3-dir
|
||||
|
||||
PACKAGE_BEFORE_PN = "${PN}-compiler ${PN}-${PYTHON_PN}"
|
||||
PACKAGE_BEFORE_PN = "${PN}-compiler"
|
||||
DEPENDS = "flatbuffers-native"
|
||||
|
||||
RDEPENDS:${PN}-compiler = "${PN}"
|
||||
RDEPENDS:${PN}-${PYTHON_PN} = "${PN}"
|
||||
|
@ -13,33 +12,23 @@ RDEPENDS:${PN}-dev += "${PN}-compiler"
|
|||
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
||||
SRCREV = "6df40a2471737b27271bdd9b900ab5f3aec746c7"
|
||||
SRCREV = "8367664f15c3ea2ee58c67dacf9d630b49466de5"
|
||||
|
||||
SRC_URI = "git://github.com/google/flatbuffers.git;branch=master;protocol=https"
|
||||
|
||||
CVE_CHECK_IGNORE += "CVE-2020-35864"
|
||||
|
||||
CXXFLAGS += "-fPIC"
|
||||
BUILD_CXXFLAGS += "-fPIC"
|
||||
|
||||
# BUILD_TYPE=Release is required, otherwise flatc is not installed
|
||||
EXTRA_OECMAKE += "\
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DFLATBUFFERS_BUILD_TESTS=OFF \
|
||||
-DFLATBUFFERS_BUILD_SHAREDLIB=ON \
|
||||
"
|
||||
|
||||
inherit cmake
|
||||
EXTRA_OECMAKE:append:class-target = " -DFLATBUFFERS_FLATC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/flatc"
|
||||
|
||||
inherit cmake python3native
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
|
||||
cp -rf ${S}/python/flatbuffers ${D}${PYTHON_SITEPACKAGES_DIR}
|
||||
}
|
||||
|
||||
FILES:${PN}-compiler = "${bindir}"
|
||||
|
||||
FILES:${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user