summaryrefslogtreecommitdiff
path: root/recipes/robostix-utils/robostix-sertest.bb
blob: 0196f6c8f32322ff4af6b7c70cb12b47c9671268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESCRIPTION = "robostix programs"
SECTION = "base"
PRIORITY = "required"
PR = "r1"

DEPENDS = robostix-module

SRC_URI = " \
   file://sertest.c \
  "

CMD_NAME=sertest
LDLIBS = -lpthread

S = "${WORKDIR}"

do_compile () {
	${CC} ${LDLIBS} -o ${CMD_NAME} *.c
}

do_install () {
  install -d ${D}${bindir}/
	install -m 0755 ${WORKDIR}/${CMD_NAME} ${D}${bindir}/
}

PACKAGES = "${PN}"
FILES_${PN} = "${bindir}/*"