[oe-commits] Marcin Juszkiewicz : sgalib: NHK-15 library for userspace access to graphics acceleration
git version control
git at git.openembedded.org
Mon Oct 26 19:18:56 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 6df5a87a7013aabd1432ec47f9274e25d79975f5
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6df5a87a7013aabd1432ec47f9274e25d79975f5
Author: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
Date: Mon Oct 26 20:21:04 2009 +0100
sgalib: NHK-15 library for userspace access to graphics acceleration
---
recipes/sgalib/files/sga-init | 23 +++++++++++++++++++++++
recipes/sgalib/sga-init.bb | 22 ++++++++++++++++++++++
recipes/sgalib/sgalib-0.1.0/sgalib-0.1.0.tar.gz | Bin 0 -> 138144 bytes
recipes/sgalib/sgalib_0.1.0.bb | 15 +++++++++++++++
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 0000000..3a7d403
--- /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 0000000..d0bd1f8
--- /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 0000000..a504b67
Binary files /dev/null and b/recipes/sgalib/sgalib-0.1.0/sgalib-0.1.0.tar.gz differ
diff --git a/recipes/sgalib/sgalib_0.1.0.bb b/recipes/sgalib/sgalib_0.1.0.bb
new file mode 100644
index 0000000..24fbeb6
--- /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}"
More information about the Openembedded-commits
mailing list