9 Commits

Author SHA1 Message Date
Martin Jansa 21f956598d recipes: drop ${SRCPV} usage
* Drop SRCPV similarly like oe-core did in:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=843f82a246a535c353e08072f252d1dc78217872

* SRCPV is deferred now from PV to PKGV since:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=a8e7b0f932b9ea69b3a218fca18041676c65aba0

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
2024-02-09 09:52:12 -08:00
Wang Mingyu f0512636fd cmocka: Fix install conflict when enable multilib.
Error: Transaction test error:
  file /usr/share/cmocka/example/mock/libproc_uptime.so conflicts between attempted installs of lib32-libcmocka-examples-1.1.7+git0+a01cc69ee9-r0.armv7ahf_neon and libcmocka-examples-1.1.7+git0+a01cc69ee9-r0.cortexa57

Change install directory from share to lib to resolve conflict.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-01 08:17:38 -08:00
Khem Raj 05f0920798 cmocka: Check for previous declaration of uintptr_t
Fix build with musl/aarch64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-22 09:12:40 -07:00
Randy MacLeod c9136de654 cmocka: update from 1.1.5+ to 1.1.7
Switch the SRC_URI branch from master to stable-1.1

The 1.1.5 version was actually a bit ahead of that tag but
the ChangeLog comment for the two releases are:

Thu Feb 23 2023 Andreas Schneider <asn@cryptomilk.org>
    * cmocka version 1.1.7
    * Update ignore list for source tarball generation

Fri Feb 16 2023 Andreas Schneider <asn@cryptomilk.org>
    * cmocka version 1.1.6
    * Added new assert macros to compare 2 double given an epsilon
    * Added meson build system
    * Added header with version to TAP13 output
    * Fixed issues with MSVC
    * Fixed TAP output for skipped tests
    * Fixed issue with fail_msg
    * CMake generated configs for find_package(cmocka)
    * Documentation improvements

CMake still seems to be the default build tool based on Install.md
so use that rather than the shiny Meson system.

One test, test_cmockery, was added so now there are 23 passing ptests.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-22 09:12:40 -07:00
Tim Orling 2a93580169 cmocka: use https protocol for fetching
Upstream gitlab instance is refusing git:// protocol.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-18 09:01:51 -08:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj 1b825a6e58 cmocka: Fix buils with LTO
Update to latest on master
Drop uintptr_t patch, its fixed upstream differently
Package up the new library libproc_uptime.so needed by examples
Add it to INSANE_SKIP for examples

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-09 13:41:02 -08:00
Armin Kuster f946444879 cmocka: add recipe
includes ptest and bundling of examples that can be used for testing

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-28 09:17:18 -07:00