mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
239debcd8a
Add usleep in to support sleeping some number of microseconds. Signed-off-by: Ming Liu <ming.liu@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
27 lines
582 B
BlitzBasic
27 lines
582 B
BlitzBasic
SUMMARY = "A user tool to support sleeping some number of microseconds"
|
|
SECTION = "base"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
|
|
|
PR = "r0"
|
|
|
|
S = "${WORKDIR}"
|
|
DEPENDS = "popt"
|
|
|
|
SRC_URI = "file://usleep.c \
|
|
file://usleep.1 \
|
|
file://GPLv2.patch \
|
|
"
|
|
|
|
do_compile() {
|
|
${CC} ${CFLAGS} ${LDFLAGS} usleep.c -o usleep -lpopt
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${base_bindir}
|
|
install -d ${D}${mandir}/man1
|
|
|
|
install -m 0755 ${WORKDIR}/usleep ${D}${base_bindir}
|
|
install -m 0644 ${WORKDIR}/usleep.1 ${D}${mandir}/man1
|
|
}
|