add gpio, a userspace utility to tweak the GPIOs on the s3c24xx platform
authorMichael Lauer <mickey@vanille-media.de>
Tue, 26 Feb 2008 12:52:34 +0000 (12:52 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Tue, 26 Feb 2008 12:52:34 +0000 (12:52 +0000)
conf/distro/include/sane-srcrevs.inc
packages/s3c24xx-utils/gpio_svn.bb [new file with mode: 0644]

index 1c6d810..2ff0809 100644 (file)
@@ -30,6 +30,7 @@ SRCREV_pn-fstests ?= "204"
 SRCREV_pn-gconf-dbus ?= "641"
 SRCREV_pn-gnuradio ?= "6377"
 SRCREV_pn-gpe-contacts ?= "9312"
+SRCREV_pn-gpio ?= "4112"
 SRCREV_pn-gsm0710muxd ?= "77"
 SRCREV_pn-gtkhtml2 ?= "1158"
 SRCREV_pn-gypsy ?= "56"
diff --git a/packages/s3c24xx-utils/gpio_svn.bb b/packages/s3c24xx-utils/gpio_svn.bb
new file mode 100644 (file)
index 0000000..263161a
--- /dev/null
@@ -0,0 +1,17 @@
+DESCRIPTION = "A user-space tool to show and modify the state of GPIOs on the S3c24xx platform"
+SECTION = "console/utils"
+LICENSE = "GPL"
+PV = "1.0+svn${SRCDATE}"
+PR = "r1"
+
+SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gpio;proto=http"
+S = "${WORKDIR}/gpio"
+
+do_compile() {
+       ${CC} ${CFLAGS} ${LDFLAGS} -static -o gpio gpio.c
+}
+
+do_install() {
+       install -d ${D}${sbindir}
+       install -m 0755 gpio ${D}${sbindir}
+}