mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
1659d38199
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. I tried backporting Richard's master change but there where many merge conflicts. I went the lazy route and ran the script. This is work based on "b402a3076 recipes: Update SRC_URI branch and protocols" Signed-off-by: Armin Kuster <akuster808@gmail.com>
38 lines
1.1 KiB
BlitzBasic
38 lines
1.1 KiB
BlitzBasic
SUMMARY = "YANG data modeling language library"
|
|
DESCRIPTION = "libyang is a YANG data modelling language parser and toolkit written (and providing API) in C."
|
|
HOMEPAGE = "https://github.com/CESNET/libyang"
|
|
SECTION = "libs"
|
|
LICENSE = "BSD-3-Clause"
|
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=f3916d7d8d42a6508d0ea418cfff10ad"
|
|
|
|
SRCREV = "69d9fff65abb58beb0bb6aa9ecacd572ca1dfc56"
|
|
|
|
SRC_URI = "git://github.com/CESNET/libyang.git;branch=master;protocol=https \
|
|
file://libyang-skip-pcre2-config-add-stdint-h.patch \
|
|
file://run-ptest \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
COMPATIBLE_HOST:riscv32 = "null"
|
|
COMPATIBLE_HOST:armv5 = "null"
|
|
COMPATIBLE_HOST:riscv64 = "null"
|
|
|
|
# Main dependencies
|
|
inherit cmake pkgconfig lib_package binconfig-disabled ptest
|
|
DEPENDS = "libpcre2"
|
|
DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'cmocka', '', d)}"
|
|
BINCONFIG = "${bindir}/pcre2-config"
|
|
|
|
# Ptest dependencies
|
|
RDEPENDS:${PN}-ptest += "valgrind"
|
|
|
|
EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"
|
|
EXTRA_OECMAKE += " ${@bb.utils.contains('PTEST_ENABLED', '1', '-DENABLE_BUILD_TESTS=ON', '', d)}"
|
|
|
|
do_install_ptest () {
|
|
cp -fR ${B}/tests/ ${D}${PTEST_PATH}/
|
|
}
|
|
|