diff options
author | Richard Purdie <richard@openedhand.com> | 2008-01-30 15:36:14 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-01-30 15:36:14 +0000 |
commit | f55e6e493e881453975fb038d88fcf13474ef42f (patch) | |
tree | 026b681dc4ac1680c64b51f5c6fbccca0688bed0 /meta | |
parent | 66bc1c7346edab13cec53015be35a805fb651caa (diff) | |
download | poky-f55e6e493e881453975fb038d88fcf13474ef42f.tar.gz |
Add chroot scripts to qemu-config package
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3626 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/oh/qemu-config.bb | 12 | ||||
-rwxr-xr-x | meta/packages/oh/qemu-config/poky-chroot-init | 7 | ||||
-rwxr-xr-x | meta/packages/oh/qemu-config/poky-chroot-launch | 26 |
3 files changed, 41 insertions, 4 deletions
diff --git a/meta/packages/oh/qemu-config.bb b/meta/packages/oh/qemu-config.bb index 741fb89422..3eccab99e1 100644 --- a/meta/packages/oh/qemu-config.bb +++ b/meta/packages/oh/qemu-config.bb | |||
@@ -1,13 +1,15 @@ | |||
1 | DESCRIPTION = "Adds scripts to use distcc on the host system under qemu" | 1 | DESCRIPTION = "Adds scripts to use distcc on the host system under qemu" |
2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
3 | RDEPENDS = "distcc task-poky-nfs-server fakeroot oprofileui-server rsync bash" | 3 | RDEPENDS = "distcc task-poky-nfs-server fakeroot oprofileui-server rsync bash" |
4 | PR = "r10" | 4 | PR = "r11" |
5 | 5 | ||
6 | SRC_URI = "file://distcc.sh \ | 6 | SRC_URI = "file://distcc.sh \ |
7 | file://anjuta-remote-run \ | 7 | file://anjuta-remote-run \ |
8 | file://exports \ | 8 | file://exports \ |
9 | file://shutdown.desktop \ | 9 | file://shutdown.desktop \ |
10 | file://shutdown.png \ | 10 | file://shutdown.png \ |
11 | file://poky-chroot-init \ | ||
12 | file://poky-chroot-launch \ | ||
11 | file://qemu-autostart" | 13 | file://qemu-autostart" |
12 | 14 | ||
13 | S = "${WORKDIR}" | 15 | S = "${WORKDIR}" |
@@ -23,6 +25,8 @@ do_install() { | |||
23 | 25 | ||
24 | install -d ${D}${bindir} | 26 | install -d ${D}${bindir} |
25 | install -m 0755 anjuta-remote-run ${D}${bindir}/ | 27 | install -m 0755 anjuta-remote-run ${D}${bindir}/ |
28 | install -m 0775 poky-chroot-init ${D}${bindir}/ | ||
29 | install -m 0775 poky-chroot-launch ${D}${bindir}/ | ||
26 | 30 | ||
27 | install -d ${D}${datadir}/applications | 31 | install -d ${D}${datadir}/applications |
28 | install -m 0644 shutdown.desktop ${D}${datadir}/applications/ | 32 | install -m 0644 shutdown.desktop ${D}${datadir}/applications/ |
@@ -31,7 +35,7 @@ do_install() { | |||
31 | install -m 0644 shutdown.png ${D}${datadir}/pixmaps/ | 35 | install -m 0644 shutdown.png ${D}${datadir}/pixmaps/ |
32 | 36 | ||
33 | install -d ${D}/etc/init.d | 37 | install -d ${D}/etc/init.d |
34 | install qemu-autostart ${D}/etc/init.d | 38 | install qemu-autostart ${D}/etc/init.d/ |
35 | } | 39 | } |
36 | 40 | ||
37 | inherit update-rc.d | 41 | inherit update-rc.d |
diff --git a/meta/packages/oh/qemu-config/poky-chroot-init b/meta/packages/oh/qemu-config/poky-chroot-init new file mode 100755 index 0000000000..0afa505100 --- /dev/null +++ b/meta/packages/oh/qemu-config/poky-chroot-init | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | export USER=root | ||
4 | export HOME=/home/root | ||
5 | export PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
6 | |||
7 | fakeroot ipkg configure | ||
diff --git a/meta/packages/oh/qemu-config/poky-chroot-launch b/meta/packages/oh/qemu-config/poky-chroot-launch new file mode 100755 index 0000000000..63d98d9361 --- /dev/null +++ b/meta/packages/oh/qemu-config/poky-chroot-launch | |||
@@ -0,0 +1,26 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | export USER=root | ||
4 | export HOME=/home/root | ||
5 | export PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
6 | |||
7 | export DISPLAY=:1 | ||
8 | |||
9 | unset DBUS_SESSION_BUS_ADDRESS | ||
10 | |||
11 | SERVICES=dbus-1 | ||
12 | |||
13 | for S in $SERVICES; do | ||
14 | fakeroot /etc/init.d/$S start | ||
15 | done | ||
16 | |||
17 | /etc/X11/Xsession & | ||
18 | |||
19 | bash -l | ||
20 | |||
21 | for S in $SERVICES; do | ||
22 | fakeroot /etc/init.d/$S stop | ||
23 | done | ||
24 | |||
25 | # The --user option in the dbus stop script breaks under chroot | ||
26 | /sbin/start-stop-daemon --stop --pidfile /var/run/dbus/pid | ||