Set the CMake configure arguments based on the comment in the rule file
that only headers, generators and static libraries are installed.
Therefore disabled building a shared library. Also the static library
depends on the BUILD_RUNTIME setting, which is therefore enabled.

Signed-off-by: Sven Püschel <[email protected]>
---
 rules/nanopb.make | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/rules/nanopb.make b/rules/nanopb.make
index 4b5927688..8df47f52d 100644
--- a/rules/nanopb.make
+++ b/rules/nanopb.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_NANOPB) += nanopb
 #
 # Paths and names
 #
-NANOPB_VERSION         := 0.4.8
-NANOPB_MD5             := 7c5305add7bf70b915c6eb1dc50cc20f
+NANOPB_VERSION         := 0.4.9.1
+NANOPB_MD5             := 97b043a99b26eb1722460ee4c826ddba
 NANOPB                 := nanopb-$(NANOPB_VERSION)
 NANOPB_SUFFIX          := tar.gz
 NANOPB_URL             := 
https://jpa.kapsi.fi/nanopb/download/$(NANOPB).$(NANOPB_SUFFIX)
@@ -33,7 +33,11 @@ NANOPB_LICENSE_FILES := 
file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f
 #
 NANOPB_CONF_TOOL       := cmake
 NANOPB_CONF_OPT                := \
-       $(CROSS_CMAKE_USR)
+       $(CROSS_CMAKE_USR) \
+       -DBUILD_SHARED_LIBS=OFF \
+       -DBUILD_STATIC_LIBS=ON \
+       -Dnanopb_BUILD_GENERATOR=ON \
+       -Dnanopb_BUILD_RUNTIME=ON
 
 # Note: the package installs only headers, generators, and static libraries, so
 # no targetinstall stage is needed.
-- 
2.47.3


Reply via email to