From 82c6f50e0d1d012368e4fa2eb695abc838abbeb7 Mon Sep 17 00:00:00 2001 From: wangmy Date: Sat, 23 Jul 2022 13:36:05 +0800 Subject: nanopb: upgrade 0.4.5 -> 0.4.6.4 Changelog: ========= Fix passing of error message from substream callback (#703) Fix comments going to wrong member variables (#701) Fix regression in 0.4.3 where generator did not find all dependencies (#720) Fix FindNanopb.cmake not finding options file (#659) Fix double-definition errors with size_union (#692) Fix generator error with same inner message name (#746) Fix infinite recursion in generator/protoc script (#762) Fix unicode comment handling for Python 2 (#740) Fix compiler warnings with PB_BUFFER_ONLY (#717) Fix options dependency in nanopb.mk (#666) Fix handling of filenames with dot in them in FindNanopb.cmake (#756) Add fallback_type option (#772, #773) Use C11 static assert mechanism by default (#761, #766) Use 'static_assert' keyword for iar (#679) Explicitly check for pItem == NULL to satisfy Xcode analyzer (#667, #674) Support --proto-path as alias to -I (#749) Refactor name mangling to separate class, improve error messages (#735) Move PB_WT_PACKED definition to the header to fix compiler warnings (#671) FindNanopb.cmake: use --nanopb_opt for option passing by default (#752) FindNanopb.cmake: Add option NANOPB_GENERATE_CPP_STANDALONE (#741) FindNanopb.cmake: Add PROTOC_OPTIONS variable (#768, #771) CMakeLists: add build interface for using as a submodule (#669) CMakeLists: fix error with nanopb_BUILD_GENERATOR=OFF (#764) CMakeLists: make more uniform (#676) CMakeLists: Fix uninitialized PYTHON_INSTDIR (#652) Clean up CMake examples (#741) Rebuild nanopb_pb2.py and print version numbers on import failure (#733, #742) Use memcpy instead of iterating on buf_read/write (#751) Add generator support for PlatformIO (#718) Add clean target to generator/proto/Makefile (#681) Windows .bats: use standard python invocation instead of py.exe launcher (#657) Fix problems running tests with newer SCons version Improve handling of varint overflows Improve optimization for little-endian platforms Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../recipes-devtools/nanopb/nanopb_0.4.5.bb | 29 ---------------------- .../recipes-devtools/nanopb/nanopb_0.4.6.4.bb | 29 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.5.bb create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.6.4.bb diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.5.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.5.bb deleted file mode 100644 index 4b1853cc80..0000000000 --- a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.5.bb +++ /dev/null @@ -1,29 +0,0 @@ -DESCRIPTION="Protocol Buffers with small code size" -LICENSE="Zlib" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f" - -DEPENDS = "protobuf-native" - -SRC_URI = "git://github.com/nanopb/nanopb.git;branch=master;protocol=https" -SRCREV = "c9124132a604047d0ef97a09c0e99cd9bed2c818" - -S = "${WORKDIR}/git" - -inherit cmake python3native - -do_install:append() { - install -Dm 0755 ${S}/generator/nanopb_generator.py ${D}${bindir}/nanopb_generator.py - install -Dm 0755 ${S}/generator/protoc-gen-nanopb ${D}${bindir}/protoc-gen-nanopb - install -Dm 0755 ${S}/generator/proto/__init__.py ${D}${PYTHON_SITEPACKAGES_DIR}/proto/__init__.py -} - -FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" -FILES:${PN}-dev += "${libdir}/cmake/${BPN}" - -RDEPENDS:${PN} += "\ - ${PYTHON_PN}-protobuf \ - protobuf-compiler \ -" - -BBCLASSEXTEND = "native nativesdk" - diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.6.4.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.6.4.bb new file mode 100644 index 0000000000..691bbce9ac --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb_0.4.6.4.bb @@ -0,0 +1,29 @@ +DESCRIPTION="Protocol Buffers with small code size" +LICENSE="Zlib" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f" + +DEPENDS = "protobuf-native" + +SRC_URI = "git://github.com/nanopb/nanopb.git;branch=master;protocol=https" +SRCREV = "afc499f9a410fc9bbf6c9c48cdd8d8b199d49eb4" + +S = "${WORKDIR}/git" + +inherit cmake python3native + +do_install:append() { + install -Dm 0755 ${S}/generator/nanopb_generator.py ${D}${bindir}/nanopb_generator.py + install -Dm 0755 ${S}/generator/protoc-gen-nanopb ${D}${bindir}/protoc-gen-nanopb + install -Dm 0755 ${S}/generator/proto/__init__.py ${D}${PYTHON_SITEPACKAGES_DIR}/proto/__init__.py +} + +FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" +FILES:${PN}-dev += "${libdir}/cmake/${BPN}" + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-protobuf \ + protobuf-compiler \ +" + +BBCLASSEXTEND = "native nativesdk" + -- cgit v1.2.3-54-g00ecf