Skip to content

Commit 835ea93

Browse files
author
Ulrich Becker
committed
Inttial commit
1 parent abe8c20 commit 835ea93

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

yocto-recipe/process-id.bb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
###############################################################################
2+
## ##
3+
## Yocto-recipe to building shared-library for getting ##
4+
## the Linux-process-ID of running processes ##
5+
## ##
6+
##---------------------------------------------------------------------------##
7+
## Author: Ulrich Becker ##
8+
## File: process-id.bb ##
9+
## Date: 14.06.2018 ##
10+
## Revision: ##
11+
###############################################################################
12+
13+
SUMMARY = "Shared-library for getting Linux-process-ID of running processes"
14+
15+
SECTION = "libs"
16+
S = "${WORKDIR}/git"
17+
LICENSE = "GPLv3"
18+
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
19+
SRC_URI = "git://github.com/UlrichBecker/get_linux_process_id.git;branch=master"
20+
SRCREV = "${AUTOREV}"
21+
PV = "1.0-git${SRCPV}"
22+
PR = "r0"
23+
24+
TARGET_CC_ARCH += "${LDFLAGS}"
25+
26+
FILES_${PN} += "${libdir}/lib*.so.*"
27+
FILES_${PN}-dev += "${libdir}/lib*.so"
28+
FILES_${PN}-dev += "${includedir}/*.h"
29+
30+
do_compile() {
31+
oe_runmake -C ${S}/src
32+
}
33+
34+
do_install() {
35+
mkdir -p ${D}${includedir}
36+
mkdir -p ${D}${libdir}
37+
oe_runmake -C ${S}/src HEADDER_DIR=${D}${includedir} LIB_DIR=${D}${libdir} install
38+
}
39+
40+
#=================================== EOF ======================================

0 commit comments

Comments
 (0)