summaryrefslogtreecommitdiffstats
path: root/meta-oe/dynamic-layers
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2020-12-02 16:28:41 +0100
committerKhem Raj <raj.khem@gmail.com>2020-12-02 11:21:18 -0800
commit4678e224755dd6fc32be16b1d062a5f2af26753b (patch)
treed5536bf630df8afda3d5afccf1e5aaf8808ddf82 /meta-oe/dynamic-layers
parenta039c0ed2ca4e2289225ef2371024adc98c213b1 (diff)
downloadmeta-openembedded-4678e224755dd6fc32be16b1d062a5f2af26753b.tar.gz
nanopb: move to dynamic-layers
* depends on python3-protobuf from meta-python: * fixes: ERROR: Nothing RPROVIDES 'python3-protobuf' (but meta-oe/recipes-devtools/nanopb/nanopb_0.4.3.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'python3-protobuf' is unbuildable, removing... Missing or unbuildable dependency chain was: ['python3-protobuf'] ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'nanopb', 'python3-protobuf'] Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/dynamic-layers')
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.3.bb29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.3.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.3.bb
new file mode 100644
index 0000000000..ed1a719fee
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.3.bb
@@ -0,0 +1,29 @@
1DESCRIPTION="Protocol Buffers with small code size"
2LICENSE="Zlib"
3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f"
4
5DEPENDS = "protobuf-native"
6
7SRC_URI = "git://github.com/nanopb/nanopb.git"
8SRCREV = "1466e6f953835b191a7f5acf0c06c941d4cd33d9"
9
10S = "${WORKDIR}/git"
11
12inherit cmake python3native
13
14do_install_append() {
15 install -Dm 0755 ${S}/generator/nanopb_generator.py ${D}${bindir}/nanopb_generator.py
16 install -Dm 0755 ${S}/generator/protoc-gen-nanopb ${D}${bindir}/protoc-gen-nanopb
17 install -Dm 0755 ${S}/generator/proto/__init__.py ${D}${PYTHON_SITEPACKAGES_DIR}/proto/__init__.py
18}
19
20FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}"
21FILES_${PN}-dev += "${libdir}/cmake/${BPN}"
22
23RDEPENDS_${PN} += "\
24 ${PYTHON_PN}-protobuf \
25 protobuf-compiler \
26"
27
28BBCLASSEXTEND = "native nativesdk"
29