summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorZhai Edwin <edwin.zhai@intel.com>2011-12-21 15:17:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-03 12:12:38 +0000
commit4203c7bd256e21d930f5a80202170b8a7684276d (patch)
tree8300133811b6fe6f1b1be804dcfdec1fc30f897f /meta
parent192fbe7e6fdb6b003766a5939b5ce257e20bf8a9 (diff)
downloadpoky-4203c7bd256e21d930f5a80202170b8a7684276d.tar.gz
Add "builder" user for specific purpose.
"builder" can start some auto stuff by mini X session. (From OE-Core rev: fdb12302674101feb85f4e83936652474ffd231d) Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/builder/builder_0.1.bb27
-rw-r--r--meta/recipes-graphics/builder/files/builder_hob_start.sh11
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-graphics/builder/builder_0.1.bb b/meta/recipes-graphics/builder/builder_0.1.bb
new file mode 100644
index 0000000000..ceb961206d
--- /dev/null
+++ b/meta/recipes-graphics/builder/builder_0.1.bb
@@ -0,0 +1,27 @@
1SUMMARY = "New user to do specific job"
2DESCRIPTION = "This recipe create a new user named ${PN}, who is used for specific jobs like building. The task can be auto started via mini X"
3SECTION = "x11"
4PR = "r0"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
7
8SRC_URI = "file://builder_hob_start.sh"
9
10S = "${WORKDIR}"
11
12RDEPENDS_${PN} = "mini-x-session"
13
14inherit useradd
15
16USERADD_PACKAGES = "${PN}"
17USERADD_PARAM_${PN} = "--system --create-home \
18 --groups video,tty,audio \
19 --user-group ${PN}"
20
21do_install () {
22 install -d -m 755 ${D}/etc/mini_x/session.d
23 install -p -m 755 builder_hob_start.sh ${D}/etc/mini_x/session.d/
24
25 chown ${PN}.${PN} ${D}/etc/mini_x/session.d/builder_hob_start.sh
26}
27
diff --git a/meta/recipes-graphics/builder/files/builder_hob_start.sh b/meta/recipes-graphics/builder/files/builder_hob_start.sh
new file mode 100644
index 0000000000..fdafc4e632
--- /dev/null
+++ b/meta/recipes-graphics/builder/files/builder_hob_start.sh
@@ -0,0 +1,11 @@
1#!/bin/sh
2#This script will be called via mini X session on behalf of file owner, after
3#installed in /etc/mini_x/session.d/. Any auto start jobs including X apps can
4#be put here
5
6# start hob here
7#cd /intel/poky/poky
8#. ./oe-init-build-env
9#../scripts/hob
10
11matchbox-terminal&