From d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 1 Sep 2010 19:09:11 +0100 Subject: packages: Separate out most of the remaining packages into recipes Signed-off-by: Richard Purdie --- meta/recipes-bsp/qemu-config/qemu-config.bb | 36 +++++++++++++++++++++ .../qemu-config/qemu-config/anjuta-remote-run | 7 ++++ meta/recipes-bsp/qemu-config/qemu-config/distcc.sh | 4 +++ meta/recipes-bsp/qemu-config/qemu-config/exports | 1 + .../qemu-config/qemu-config/qemu-autostart | 37 ++++++++++++++++++++++ .../qemu-config/qemuarm/shutdown.desktop | 10 ++++++ .../qemu-config/qemu-config/shutdown.desktop | 10 ++++++ 7 files changed, 105 insertions(+) create mode 100644 meta/recipes-bsp/qemu-config/qemu-config.bb create mode 100644 meta/recipes-bsp/qemu-config/qemu-config/anjuta-remote-run create mode 100644 meta/recipes-bsp/qemu-config/qemu-config/distcc.sh create mode 100644 meta/recipes-bsp/qemu-config/qemu-config/exports create mode 100755 meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart create mode 100644 meta/recipes-bsp/qemu-config/qemu-config/qemuarm/shutdown.desktop create mode 100644 meta/recipes-bsp/qemu-config/qemu-config/shutdown.desktop (limited to 'meta/recipes-bsp/qemu-config') diff --git a/meta/recipes-bsp/qemu-config/qemu-config.bb b/meta/recipes-bsp/qemu-config/qemu-config.bb new file mode 100644 index 000000000..fc5932028 --- /dev/null +++ b/meta/recipes-bsp/qemu-config/qemu-config.bb @@ -0,0 +1,36 @@ +DESCRIPTION = "Adds scripts to use distcc on the host system under qemu" +LICENSE = "GPL" +RDEPENDS = "distcc task-poky-nfs-server oprofileui-server rsync bash" +PR = "r17" + +SRC_URI = "file://distcc.sh \ + file://anjuta-remote-run \ + file://exports \ + file://shutdown.desktop \ + file://qemu-autostart" + +S = "${WORKDIR}" + +COMPATIBLE_MACHINE = "(qemuarm|qemux86)" +PACKAGE_ARCH = "all" + +do_install() { + install -d ${D}${sysconfdir}/profile.d + + install -m 0755 distcc.sh ${D}${sysconfdir}/profile.d/ + install -m 0644 exports ${D}${sysconfdir}/ + + install -d ${D}${bindir} + install -m 0755 anjuta-remote-run ${D}${bindir}/ + + install -d ${D}${datadir}/applications + install -m 0644 shutdown.desktop ${D}${datadir}/applications/ + + install -d ${D}/etc/init.d + install qemu-autostart ${D}/etc/init.d/ +} + +inherit update-rc.d + +INITSCRIPT_NAME = "qemu-autostart" +INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ." diff --git a/meta/recipes-bsp/qemu-config/qemu-config/anjuta-remote-run b/meta/recipes-bsp/qemu-config/qemu-config/anjuta-remote-run new file mode 100644 index 000000000..620e3a705 --- /dev/null +++ b/meta/recipes-bsp/qemu-config/qemu-config/anjuta-remote-run @@ -0,0 +1,7 @@ +#!/bin/sh + +. /etc/profile +export DISPLAY=:0 +dbus-launch $@ + + diff --git a/meta/recipes-bsp/qemu-config/qemu-config/distcc.sh b/meta/recipes-bsp/qemu-config/qemu-config/distcc.sh new file mode 100644 index 000000000..a2b543d6b --- /dev/null +++ b/meta/recipes-bsp/qemu-config/qemu-config/distcc.sh @@ -0,0 +1,4 @@ +DISTCC_HOSTS="192.168.7.1" +#DISTCC_VERBOSE="1" + +export DISTCC_HOSTS diff --git a/meta/recipes-bsp/qemu-config/qemu-config/exports b/meta/recipes-bsp/qemu-config/qemu-config/exports new file mode 100644 index 000000000..b7257aa00 --- /dev/null +++ b/meta/recipes-bsp/qemu-config/qemu-config/exports @@ -0,0 +1 @@ +/ *(rw,no_root_squash,async) diff --git a/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart b/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart new file mode 100755 index 000000000..db2668eb4 --- /dev/null +++ b/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart @@ -0,0 +1,37 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: hddtemp +# Required-Start: $network +# Required-Stop: $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: OProfile server +# Description: +### END INIT INFO + +. /etc/init.d/functions + +case "$1" in + start) + echo "Starting automatic qemu services" + . /etc/profile + /usr/bin/oprofile-server & + ;; + + stop) + echo "Stopping qemu services" + killproc oprofile-server + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + *) + echo "usage: $0 { start | stop | restart }" + ;; +esac + +exit 0 diff --git a/meta/recipes-bsp/qemu-config/qemu-config/qemuarm/shutdown.desktop b/meta/recipes-bsp/qemu-config/qemu-config/qemuarm/shutdown.desktop new file mode 100644 index 000000000..b973d4318 --- /dev/null +++ b/meta/recipes-bsp/qemu-config/qemu-config/qemuarm/shutdown.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Shutdown +Comment=Close down the machine safely +Exec=reboot +Icon=system-shutdown +Terminal=false +Categories=Utility; +StartupNotify=true \ No newline at end of file diff --git a/meta/recipes-bsp/qemu-config/qemu-config/shutdown.desktop b/meta/recipes-bsp/qemu-config/qemu-config/shutdown.desktop new file mode 100644 index 000000000..272688922 --- /dev/null +++ b/meta/recipes-bsp/qemu-config/qemu-config/shutdown.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Shutdown +Comment=Close down the machine safely +Exec=halt +Icon=system-shutdown +Terminal=false +Categories=Utility; +StartupNotify=true \ No newline at end of file -- cgit v1.2.3