M7350/oe-core/meta/recipes-graphics/builder/builder_0.1.bb

34 lines
1.1 KiB
BlitzBasic
Raw Normal View History

2024-09-09 08:52:07 +00:00
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"
2024-09-09 08:57:42 +00:00
PR = "r6"
2024-09-09 08:52:07 +00:00
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
2024-09-09 08:57:42 +00:00
SRC_URI = "file://builder_hob_start.sh \
file://please_wait_dialog.py \
"
2024-09-09 08:52:07 +00:00
S = "${WORKDIR}"
RDEPENDS_${PN} = "mini-x-session"
inherit useradd
2024-09-09 08:57:42 +00:00
# builder user password is "builder"
BUILDER_PASSWORD ?= ".gLibiNXn0P12"
2024-09-09 08:52:07 +00:00
USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "--system --create-home \
--groups video,tty,audio \
2024-09-09 08:57:42 +00:00
--password ${BUILDER_PASSWORD} \
2024-09-09 08:52:07 +00:00
--user-group ${PN}"
do_install () {
2024-09-09 08:57:42 +00:00
install -d -m 755 ${D}${sysconfdir}/mini_x/session.d
install -p -m 755 builder_hob_start.sh ${D}${sysconfdir}/mini_x/session.d/
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
chown ${PN}.${PN} ${D}${sysconfdir}/mini_x/session.d/builder_hob_start.sh
install -p -m 755 please_wait_dialog.py ${D}${sysconfdir}/mini_x
2024-09-09 08:52:07 +00:00
}