summaryrefslogtreecommitdiff
path: root/openembedded/packages/maemo
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-08-31 16:13:52 +0000
committerRichard Purdie <richard@openedhand.com>2005-08-31 16:13:52 +0000
commitf32bed3ebd85c6c36ab4c629c49770bdeb62c348 (patch)
treebd14cfdcee83c88a88064b872a4ee75317901f2b /openembedded/packages/maemo
parenta716d991156aa04939496ba177c29ff87a26608c (diff)
downloadopenembedded-core-f32bed3ebd85c6c36ab4c629c49770bdeb62c348.tar.gz
openembedded-core-f32bed3ebd85c6c36ab4c629c49770bdeb62c348.tar.bz2
openembedded-core-f32bed3ebd85c6c36ab4c629c49770bdeb62c348.tar.xz
openembedded-core-f32bed3ebd85c6c36ab4c629c49770bdeb62c348.zip
Add nokia770 machine support files
git-svn-id: https://svn.o-hand.com/repos/poky@7 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/maemo')
-rw-r--r--openembedded/packages/maemo/nokia770-init/fixup-770.sh25
-rw-r--r--openembedded/packages/maemo/nokia770-init_1.0.bb42
-rw-r--r--openembedded/packages/maemo/xpext/auxdir.patch13
-rw-r--r--openembedded/packages/maemo/xpext_1.0-5.bb27
-rw-r--r--openembedded/packages/maemo/xsp_1.0.0-8.bb20
5 files changed, 127 insertions, 0 deletions
diff --git a/openembedded/packages/maemo/nokia770-init/fixup-770.sh b/openembedded/packages/maemo/nokia770-init/fixup-770.sh
new file mode 100644
index 000000000..b65fb131e
--- /dev/null
+++ b/openembedded/packages/maemo/nokia770-init/fixup-770.sh
@@ -0,0 +1,25 @@
+#! /bin/sh
+case "$1" in
+ start)
+ echo -n "Unmounting virtual fs from initrd"
+ umount /mnt/initfs/sys
+ umount /mnt/initfs/proc
+ ln -s /dev/vc/0 /dev/tty0
+ ln -s /dev/vc/1 /dev/tty1
+ ln -s /dev/vc/2 /dev/tty2
+ ln -s /dev/vc/3 /dev/tty3
+ ln -s /dev/vc/4 /dev/tty4
+ ln -s /dev/vc/5 /dev/tty5
+ ln -s /dev/vc/6 /dev/tty6
+ ln -s /dev/vc/7 /dev/tty7
+ ;;
+ stop)
+ ;;
+ *)
+ echo "Usage: $SCRIPTNAME {start|stop}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
+ \ No newline at end of file
diff --git a/openembedded/packages/maemo/nokia770-init_1.0.bb b/openembedded/packages/maemo/nokia770-init_1.0.bb
new file mode 100644
index 000000000..14ec4a0cf
--- /dev/null
+++ b/openembedded/packages/maemo/nokia770-init_1.0.bb
@@ -0,0 +1,42 @@
+LICENSE = "GPL"
+MAINTAINER = "Florian Boor <florian@kernelconcepts.de"
+PR = "r3"
+
+DEPENDS = "base-passwd"
+RDEPENDS = "hotplug"
+
+SRC_URI = "file://fixup-770.sh"
+
+FILES_${PN} = "${sysconfdir} ${libdir}"
+
+inherit update-rc.d
+
+
+INITSCRIPT_NAME = "fixup-770.sh"
+INITSCRIPT_PARAMS = "defaults 01"
+
+
+do_install () {
+ install -d ${D}${sysconfdir}/init.d
+ install -m 755 ${WORKDIR}/fixup-770.sh ${D}/${sysconfdir}/init.d/fixup-770.sh
+
+ install -d ${D}/lib/firmware
+}
+
+pkg_postinst () {
+#!/bin/sh
+
+# can't do adduser stuff offline
+if [ "x$D" != "x" ]; then
+ exit 1
+fi
+
+# set up some links to firmware and modules in initrd
+ mkdir -p /lib/firmware
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/3825.arm /lib/firmware/3825.arm
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/brf6150fw.bin /lib/firmware/brf6150fw.bin
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/mtlm3825.arm /lib/firmware/mtlm3825.arm
+
+ rm -rf /lib/modules
+ ln -s /mnt/initfs/lib/modules /lib/modules
+}
diff --git a/openembedded/packages/maemo/xpext/auxdir.patch b/openembedded/packages/maemo/xpext/auxdir.patch
new file mode 100644
index 000000000..da5841a13
--- /dev/null
+++ b/openembedded/packages/maemo/xpext/auxdir.patch
@@ -0,0 +1,13 @@
+--- configure.ac.old 2005-06-03 12:53:28.000000000 +0200
++++ configure.ac 2005-06-03 12:54:29.000000000 +0200
+@@ -25,9 +25,9 @@
+
+ AC_PREREQ([2.57])
+ AC_INIT([spext], [1.0], [lauri.leukkunen@nokia.com], spext)
++AC_CONFIG_AUX_DIR(.)
+ AM_INIT_AUTOMAKE([dist-bzip2])
+ AM_MAINTAINER_MODE
+-AC_CONFIG_AUX_DIR(.)
+
+ dnl PKG_CHECK_MODULES(FIXESEXT, fixesext)
+
diff --git a/openembedded/packages/maemo/xpext_1.0-5.bb b/openembedded/packages/maemo/xpext_1.0-5.bb
new file mode 100644
index 000000000..cd5aec2d1
--- /dev/null
+++ b/openembedded/packages/maemo/xpext_1.0-5.bb
@@ -0,0 +1,27 @@
+PR = "r0"
+LICENSE= "MIT"
+DESCRIPTION = "X Server Nokia 770 extensions library"
+SECTION = "x11/libs"
+PRIORITY = "optional"
+DEPENDS = "x11 xextensions xext"
+
+SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/${PN}/${PN}_${PV}.tar.gz \
+ file://auxdir.patch;patch=1;pnum=0"
+S = "${WORKDIR}/xpext-1.0"
+
+inherit autotools pkgconfig
+
+do_configure_prepend () {
+ cd ${S}
+ chmod +x ./autogen.sh
+ ./autogen.sh
+}
+
+do_stage() {
+ oe_runmake install prefix=${STAGING_DIR} \
+ bindir=${STAGING_BINDIR} \
+ includedir=${STAGING_INCDIR} \
+ libdir=${STAGING_LIBDIR} \
+ datadir=${STAGING_DATADIR} \
+ mandir=${STAGING_DATADIR}/man
+}
diff --git a/openembedded/packages/maemo/xsp_1.0.0-8.bb b/openembedded/packages/maemo/xsp_1.0.0-8.bb
new file mode 100644
index 000000000..0c4a4c62f
--- /dev/null
+++ b/openembedded/packages/maemo/xsp_1.0.0-8.bb
@@ -0,0 +1,20 @@
+PR = "r0"
+LICENSE= "MIT"
+DESCRIPTION = "X Server Nokia 770 extensions library"
+SECTION = "x11/libs"
+PRIORITY = "optional"
+DEPENDS = "x11 xextensions xext xpext"
+
+SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/xsp/${PN}_${PV}.tar.gz"
+S = "${WORKDIR}/Xsp"
+
+inherit autotools pkgconfig
+
+do_stage() {
+ oe_runmake install prefix=${STAGING_DIR} \
+ bindir=${STAGING_BINDIR} \
+ includedir=${STAGING_INCDIR} \
+ libdir=${STAGING_LIBDIR} \
+ datadir=${STAGING_DATADIR} \
+ mandir=${STAGING_DATADIR}/man
+}