nanopb: Split into 2 packages

This makes it possible to avoid building components which are not used
in the native or runtime tooling. Most users of nanopb just want to
build `nanopb-generator-native` and `nanopb-runtime` and not the other
two combinations as they are building software for their target
leveraging nanopb.

Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
William A. Kennington III authored and Khem Raj committed 2024-02-10 01:48:01 -08:00
1 parent f0d3a2bc86
commit 30bb83b306
5 files changed
+60 -29

No files matched your search

@@ -0,0 +1,16 @@
require nanopb.inc
EXTRA_OECMAKE += " \
-Dnanopb_PROTOC_PATH=/bin/false \
-Dnanopb_BUILD_RUNTIME=ON \
-Dnanopb_BUILD_GENERATOR=OFF \
"
# Maintain compatability with old header locations for packages
# which haven't yet migrated to `nanopb/pb*.h`
do_install:append() {
for hdr in ${D}${includedir}/nanopb/*; do
ln -sv nanopb/$(basename "$hdr") ${D}${includedir}/
done
}