diff options
author | Tony Tascioglu <tony.tascioglu@windriver.com> | 2021-06-30 09:55:16 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-06-30 11:26:38 -0700 |
commit | c1c9327af17c143498c5808576c672bf8133cf53 (patch) | |
tree | 9c542237a7ab8b4535e3cfdb870e79a5357a9460 /meta-python/recipes-devtools/python/python3-m2crypto/cross-compile-platform.patch | |
parent | b86476b4f9644053aa3e64521863231cb3cb0c82 (diff) | |
download | meta-openembedded-c1c9327af17c143498c5808576c672bf8133cf53.tar.gz |
libyang: create recipe for libyang
Add a new recipe, patches, and ptest coverage for libyang.
The recipe follows from upstream, using the cmake build system.
There were 2 small changes needed to get the package building:
- Remove call to pcre2-config
- Add missing import statement
The recipe has a dependency on libpcre2, which satisfies the minimum
requirements for libyang. In addition, for tests, cmocka is required
during build and runtime, and valgrind is required in the runtime for
some tests.
Due to the way the library by default builds in a debug mode, release
mode was specified. However, this disables building the built-in tests,
so an EXTRA_OECMAKE was added based on whether or not ptests are enabled
to specifiy the required extra flag.
Binconfig-disabled is inherited since using pcre2-config directly is not
suggested anymore. Cmocka as a dependency depends on whether ptests have
been enabled. Since ptests are built with the main package, we need
cmocka installed before the test are compiled if they are needed.
Ptest coverage:
The ptests come from the original tests included with the library.
Ptests are in ctest format by default, so we compare the return code to
print it in Yocto format. However, as each "test" target executable has
multiple tests in it, the full stdout and stderr logs are saved for
troubleshooting.
Currently, several of the tests fail due to hardcoded paths in the
executable binaries generated, this is an issue we will take upstream.
For now, only the tests which work on a different target are enabled as
the ptests. The list can be updated in the run-ptest script, which is
portable shell compatible, without requiring bash.
The recipe also has libyang-bin as a split package, which includes
yanglint should it be needed.
This recipe was tested using buildall-qemu as well as from within qemu
in x86_64 and arm64.
Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-m2crypto/cross-compile-platform.patch')
0 files changed, 0 insertions, 0 deletions