From cd9f5f00d75fe3735eebe886a1e0701bb25ea967 Mon Sep 17 00:00:00 2001 From: Zhenfei Tai Date: Fri, 2 Apr 2021 17:03:31 -0700 Subject: meta-google: add nanopb recipe We want to create a nanopb recipe instead of copying nanopb code into multiple recipes that need it. Signed-off-by: Zhenfei Tai Change-Id: Id03695ccd1ef57f078eefb9e3638bbd802234e58 --- meta-google/recipes-google/nanopb/nanopb_0.4.5.bb | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta-google/recipes-google/nanopb/nanopb_0.4.5.bb diff --git a/meta-google/recipes-google/nanopb/nanopb_0.4.5.bb b/meta-google/recipes-google/nanopb/nanopb_0.4.5.bb new file mode 100644 index 000000000..232872e75 --- /dev/null +++ b/meta-google/recipes-google/nanopb/nanopb_0.4.5.bb @@ -0,0 +1,24 @@ +SUMMARY = "Nanopb library" +DESCRIPTION = "Nanopb - Protocol Buffers for Embedded Systems" +HOMEPAGE = "https://github.com/nanopb/nanopb" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f" + +inherit cmake python3native + +SRC_URI = "git://github.com/nanopb/nanopb" +SRCREV = "f7e4140a27d9e63517b5d596bc117bd6d5248888" +S = "${WORKDIR}/git" + +DEPENDS = "protobuf-native python3-protobuf" + +RDEPENDS_${PN}-generator += "python3 python3-protobuf" + +PACKAGES_prepend = "${PN}-generator ${PN}-runtime " + +FILES_${PN}-generator = "${libdir}/python* ${bindir}" + +FILES_${PN}-runtime = "${libdir}/*.so.*" + +BBCLASSEXTEND = "native" -- cgit v1.2.3