mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-21 05:57:05 +00:00
4c983dc837
after commit https://git.openembedded.org/openembedded-core/ commit/meta/classes/ptest.bbclass?id=b47194b57d94260b4e6438c5bf74914027f0b520 package ${PN}-ptest will depend on ${PN} by default, but for uthash, ${PN} is empty package, remove it from dependency to avoid image do rootfs failure since nothing provides error. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
47 lines
1.3 KiB
BlitzBasic
47 lines
1.3 KiB
BlitzBasic
SUMMARY = "Hash table and linked list for C structures"
|
|
DESCRIPTION = " uthash-dev provides a hash table implementation using C preprocessor macros.\n\
|
|
This package also includes:\n\
|
|
* utlist.h provides linked list macros for C structures\n\
|
|
* utarray.h implements dynamic arrays using macros\n\
|
|
* utstring.h implements a basic dynamic string\n\
|
|
"
|
|
HOMEPAGE = "https://troydhanson.github.io/uthash/"
|
|
SECTION = "base"
|
|
LICENSE = "BSD-1-Clause"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=a2513f7d2291df840527b76b2a8f9718"
|
|
SRCREV = "8b214aefcb81df86a7e5e0d4fa20e59a6c18bc02"
|
|
|
|
SRC_URI = "\
|
|
git://github.com/troydhanson/${BPN}.git \
|
|
file://run-ptest \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit ptest
|
|
|
|
do_compile[noexec] = "1"
|
|
|
|
do_compile_ptest() {
|
|
oe_runmake -C tests tests_only TEST_TARGET=
|
|
}
|
|
|
|
do_install () {
|
|
install -dm755 ${D}${includedir}
|
|
install -m0644 src/*.h ${D}${includedir}
|
|
}
|
|
|
|
do_install_ptest() {
|
|
install -dm755 ${D}${PTEST_PATH}/tests
|
|
install -m0755 tests/test*[0-9] ${D}${PTEST_PATH}/tests
|
|
install -m0644 tests/test*[0-9].ans ${D}${PTEST_PATH}/tests
|
|
install -m0644 tests/test*[0-9].dat ${D}${PTEST_PATH}/tests
|
|
}
|
|
|
|
# The main package is empty and non-existent, so -dev
|
|
# should not depend on it...
|
|
RDEPENDS_${PN}-dev = ""
|
|
RDEPENDS_${PN}-ptest_remove = "${PN}"
|
|
|
|
BBCLASSEXTEND = "native"
|