diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
commit | 21f9b84b4b729fbd7acbd465e7a3f726e4d20f91 (patch) | |
tree | eb2d091d427ca0813b445509d59cc8e27e8ad25f /yocto-poky/meta/recipes-graphics/builder/builder_0.1.bb | |
parent | 101cef31e2bf54c678501155cd2106251acbd076 (diff) | |
parent | c124f4f2e04dca16a428a76c89677328bc7bf908 (diff) | |
download | openbmc-21f9b84b4b729fbd7acbd465e7a3f726e4d20f91.tar.xz |
Merge commit 'c124f4f2e04dca16a428a76c89677328bc7bf908' as 'yocto-poky'
Diffstat (limited to 'yocto-poky/meta/recipes-graphics/builder/builder_0.1.bb')
-rw-r--r-- | yocto-poky/meta/recipes-graphics/builder/builder_0.1.bb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-graphics/builder/builder_0.1.bb b/yocto-poky/meta/recipes-graphics/builder/builder_0.1.bb new file mode 100644 index 000000000..bb729fce2 --- /dev/null +++ b/yocto-poky/meta/recipes-graphics/builder/builder_0.1.bb @@ -0,0 +1,33 @@ +SUMMARY = "New user to do specific job" +DESCRIPTION = "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" +SECTION = "x11" +PR = "r6" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e" + +SRC_URI = "file://builder_hob_start.sh \ + file://please_wait_dialog.py \ + " + +S = "${WORKDIR}" + +RDEPENDS_${PN} = "mini-x-session" + +inherit useradd + +# builder user password is "builder" +BUILDER_PASSWORD ?= ".gLibiNXn0P12" +USERADD_PACKAGES = "${PN}" +USERADD_PARAM_${PN} = "--system --create-home \ + --groups video,tty,audio \ + --password ${BUILDER_PASSWORD} \ + --user-group builder" + +do_install () { + install -d -m 755 ${D}${sysconfdir}/mini_x/session.d + install -p -m 755 builder_hob_start.sh ${D}${sysconfdir}/mini_x/session.d/ + + chown builder.builder ${D}${sysconfdir}/mini_x/session.d/builder_hob_start.sh + install -p -m 755 please_wait_dialog.py ${D}${sysconfdir}/mini_x +} + |