aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/ezx/ezx-gpiotool_svn.bb
blob: ed733a2ec0392512dd6aeec880d76e005e622684 (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
DESCRIPTION = "Gpiotool can read/write gpio configuration from userspace."
SECTION = "devel"
LICENSE = "GPL"
HOMEPAGE = "http://www.openezx.org"
AUTHOR = "Harald Welte"
SRCREV = "1877"
PV = "${SRCPV}"
PR = "r1"

SRC_URI = "svn://svn.openezx.org/trunk/src/userspace;module=gpiotool;protocol=http"
S = "${WORKDIR}/gpiotool"

do_compile() {
	for i in mmio.c gpiotool.c gpio.c
	do
		${CC} ${CFLAGS} -c $i
	done
	${CC} ${CFLAGS} ${LDFLAGS} -o ezx-gpiotool mmio.o gpiotool.o gpio.o
}

do_install() {
	install -d ${D}${sbindir}
	install -m 0755 ezx-gpiotool ${D}${sbindir}
}