summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-generator_0.4.8.bb14
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-runtime_0.4.8.bb16
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.bb17
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.inc13
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.8.bb29
5 files changed, 60 insertions, 29 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-generator_0.4.8.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-generator_0.4.8.bb
new file mode 100644
index 0000000000..c86750f8b6
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-generator_0.4.8.bb
@@ -0,0 +1,14 @@
1require nanopb.inc
2
3inherit python3-dir
4
5DEPENDS = "protobuf-native"
6RDEPENDS:${PN} += "python3-protobuf"
7
8EXTRA_OECMAKE += " \
9 -Dnanopb_PYTHON_INSTDIR_OVERRIDE=${PYTHON_SITEPACKAGES_DIR} \
10 -Dnanopb_BUILD_RUNTIME=OFF \
11 -Dnanopb_BUILD_GENERATOR=ON \
12 "
13
14FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-runtime_0.4.8.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-runtime_0.4.8.bb
new file mode 100644
index 0000000000..e36abf808d
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-runtime_0.4.8.bb
@@ -0,0 +1,16 @@
1require nanopb.inc
2
3EXTRA_OECMAKE += " \
4 -Dnanopb_PROTOC_PATH=/bin/false \
5 -Dnanopb_BUILD_RUNTIME=ON \
6 -Dnanopb_BUILD_GENERATOR=OFF \
7 "
8
9# Maintain compatability with old header locations for packages
10# which haven't yet migrated to `nanopb/pb*.h`
11do_install:append() {
12 for hdr in ${D}${includedir}/nanopb/*; do
13 ln -sv nanopb/$(basename "$hdr") ${D}${includedir}/
14 done
15}
16
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.bb
new file mode 100644
index 0000000000..7ad6a32782
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.bb
@@ -0,0 +1,17 @@
1SUMMARY = "Combined nanopb package"
2PV = "1.0"
3PR = "r1"
4
5PACKAGE_ARCH = "${MACHINE_ARCH}"
6
7inherit packagegroup
8
9DEPENDS = " \
10 nanopb-generator \
11 nanopb-runtime \
12"
13
14RDEPENDS:${PN} = " \
15 nanopb-generator \
16 nanopb-runtime \
17"
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.inc b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.inc
new file mode 100644
index 0000000000..87dbc73e63
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.inc
@@ -0,0 +1,13 @@
1DESCRIPTION="Protocol Buffers with small code size"
2LICENSE="Zlib"
3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f"
4
5SRC_URI = "git://github.com/nanopb/nanopb.git;branch=master;protocol=https"
6SRCREV = "6cfe48d6f1593f8fa5c0f90437f5e6522587745e"
7
8S = "${WORKDIR}/git"
9
10inherit cmake
11
12BBCLASSEXTEND = "native nativesdk"
13
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.8.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.8.bb
deleted file mode 100644
index d282bf1b2c..0000000000
--- a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.8.bb
+++ /dev/null
@@ -1,29 +0,0 @@
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;branch=master;protocol=https"
8SRCREV = "6cfe48d6f1593f8fa5c0f90437f5e6522587745e"
9
10S = "${WORKDIR}/git"
11
12inherit cmake python3-dir
13
14EXTRA_OECMAKE += "-Dnanopb_PYTHON_INSTDIR_OVERRIDE=${PYTHON_SITEPACKAGES_DIR}"
15
16RDEPENDS:${PN} += "${PYTHON_PN}-protobuf"
17
18# Maintain compatability with old header locations for packages
19# which haven't yet migrated to `nanopb/pb*.h`
20do_install:append() {
21 for hdr in ${D}${includedir}/nanopb/*; do
22 ln -sv nanopb/$(basename "$hdr") ${D}${includedir}/
23 done
24}
25
26FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
27
28BBCLASSEXTEND = "native nativesdk"
29