mirror of
https://git.yoctoproject.org/poky
synced 2026-01-30 13:28:43 +01:00
rng-tools: splitting the rng-tools systemd/sysvinit serivce as a package
Since we removed the openssh dependency[1] on rng-tools, there are no package requiring
rng-tools in oe-core, meta-oe, meta-virt, and the /dev/random won't block anymore after
linux-5.6[2], one of the reasons for keeping rng-tools build into the image is that it
can be used to test[3], so splitting the rng-tools systemd/systvinit service as a package.
If someone needs rng-tools daemon service, they can enable the rng-tools-service package by
directly.
Reference:
[1] https://git.openembedded.org/openembedded-core/commit/?id=868dfb46d96a27ec9041cb902fb769330277257d
[2] 30c08efec8
[3] https://linux.die.net/man/1/rngtest
(From OE-Core rev: a7b1d5418eb3a90eb14780ab6336790ab73e4692)
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
04daa7c7d0
commit
e7e1bc43ca
@@ -30,13 +30,22 @@ PACKAGECONFIG[libp11] = "--with-pkcs11,--without-pkcs11,libp11 openssl"
|
||||
PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2"
|
||||
PACKAGECONFIG[qrypt] = "--with-qrypt,--without-qrypt,curl"
|
||||
|
||||
INITSCRIPT_NAME = "rng-tools"
|
||||
INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ."
|
||||
INITSCRIPT_PACKAGES = "${PN}-service"
|
||||
INITSCRIPT_NAME:${PN}-service = "rng-tools"
|
||||
INITSCRIPT_PARAMS:${PN}-service = "start 03 2 3 4 5 . stop 30 0 6 1 ."
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "rng-tools.service"
|
||||
SYSTEMD_PACKAGES = "${PN}-service"
|
||||
SYSTEMD_SERVICE:${PN}-service = "rng-tools.service"
|
||||
|
||||
CFLAGS += " -DJENT_CONF_ENABLE_INTERNAL_TIMER "
|
||||
|
||||
PACKAGES =+ "${PN}-service"
|
||||
|
||||
FILES:${PN}-service += " \
|
||||
${sysconfdir}/init.d/rng-tools \
|
||||
${sysconfdir}/default/rng-tools \
|
||||
"
|
||||
|
||||
# Refer autogen.sh in rng-tools
|
||||
do_configure:prepend() {
|
||||
cp ${S}/README.md ${S}/README
|
||||
|
||||
Reference in New Issue
Block a user