summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2009-10-26 20:21:04 +0100
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2009-10-26 20:21:04 +0100
commit6df5a87a7013aabd1432ec47f9274e25d79975f5 (patch)
treebca00010560b778931f37f776762907f30f4a488
parent764574e16f87d2882f691a3d9cd8799ab67c1344 (diff)
sgalib: NHK-15 library for userspace access to graphics acceleration
-rw-r--r--recipes/sgalib/files/sga-init23
-rw-r--r--recipes/sgalib/sga-init.bb22
-rw-r--r--recipes/sgalib/sgalib-0.1.0/sgalib-0.1.0.tar.gzbin0 -> 138144 bytes
-rw-r--r--recipes/sgalib/sgalib_0.1.0.bb15
4 files changed, 60 insertions, 0 deletions
diff --git a/recipes/sgalib/files/sga-init b/recipes/sgalib/files/sga-init
new file mode 100644
index 0000000000..3a7d4031af
--- /dev/null
+++ b/recipes/sgalib/files/sga-init
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ test -f /dev/SGA/ || mknod /dev/SGA c 254 0
+ ;;
+
+ stop)
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ *)
+ echo "usage: $0 { start | stop | restart }"
+ ;;
+esac
+
+exit 0
+
diff --git a/recipes/sgalib/sga-init.bb b/recipes/sgalib/sga-init.bb
new file mode 100644
index 0000000000..d0bd1f8cbc
--- /dev/null
+++ b/recipes/sgalib/sga-init.bb
@@ -0,0 +1,22 @@
+DESCRIPTION = "Simple Nomadik SGA Init Script"
+LICENSE = "ST"
+SECTION = "x11"
+PRIORITY = "optional"
+PR = "r1"
+
+SRC_URI = "file://sga-init"
+S = ${WORKDIR}
+
+PACKAGE_ARCH = "all"
+
+FILES_${PN}= "${sysconfdir}"
+
+do_install() {
+ install -d ${D}/${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/sga-init ${D}/${sysconfdir}/init.d
+}
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "sga-init"
+INITSCRIPT_PARAMS = "start 30 5 2 ."
diff --git a/recipes/sgalib/sgalib-0.1.0/sgalib-0.1.0.tar.gz b/recipes/sgalib/sgalib-0.1.0/sgalib-0.1.0.tar.gz
new file mode 100644
index 0000000000..a504b67269
--- /dev/null
+++ b/recipes/sgalib/sgalib-0.1.0/sgalib-0.1.0.tar.gz
Binary files differ
diff --git a/recipes/sgalib/sgalib_0.1.0.bb b/recipes/sgalib/sgalib_0.1.0.bb
new file mode 100644
index 0000000000..24fbeb6319
--- /dev/null
+++ b/recipes/sgalib/sgalib_0.1.0.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "Nomadik userland graphical acceleration library"
+SECTION = "x11"
+DEPENDS = "virtual/kernel"
+LICENSE = "LGPL2+"
+
+SRC_URI = "file://sgalib-${PV}.tar.gz"
+
+S = "${WORKDIR}/sgalib-${PV}"
+
+COMPATIBLE_MACHINE = "nhk15"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit autotools_stage
+
+EXTRA_OECONF = "--with-kernelsrcdir=${STAGING_KERNEL_DIR}"