diff options
author | Xiangyu Chen <xiangyu.chen@windriver.com> | 2023-03-22 12:32:48 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-23 22:36:46 +0000 |
commit | e7e1bc43ca5d2209edb927ec3840719bb27e0350 (patch) | |
tree | c9885228c0802fe945298b07c0f31c08c388876e /meta | |
parent | 04daa7c7d0c1f39c01bbed49c4970395d5496530 (diff) | |
download | poky-e7e1bc43ca5d2209edb927ec3840719bb27e0350.tar.gz |
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] https://github.com/torvalds/linux/commit/30c08efec8884fb106b8e57094baa51bb4c44e32
[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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/rng-tools/rng-tools_6.16.bb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools_6.16.bb b/meta/recipes-support/rng-tools/rng-tools_6.16.bb index 02abe486bb..b31b2662cf 100644 --- a/meta/recipes-support/rng-tools/rng-tools_6.16.bb +++ b/meta/recipes-support/rng-tools/rng-tools_6.16.bb | |||
@@ -30,13 +30,22 @@ PACKAGECONFIG[libp11] = "--with-pkcs11,--without-pkcs11,libp11 openssl" | |||
30 | PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2" | 30 | PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2" |
31 | PACKAGECONFIG[qrypt] = "--with-qrypt,--without-qrypt,curl" | 31 | PACKAGECONFIG[qrypt] = "--with-qrypt,--without-qrypt,curl" |
32 | 32 | ||
33 | INITSCRIPT_NAME = "rng-tools" | 33 | INITSCRIPT_PACKAGES = "${PN}-service" |
34 | INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ." | 34 | INITSCRIPT_NAME:${PN}-service = "rng-tools" |
35 | INITSCRIPT_PARAMS:${PN}-service = "start 03 2 3 4 5 . stop 30 0 6 1 ." | ||
35 | 36 | ||
36 | SYSTEMD_SERVICE:${PN} = "rng-tools.service" | 37 | SYSTEMD_PACKAGES = "${PN}-service" |
38 | SYSTEMD_SERVICE:${PN}-service = "rng-tools.service" | ||
37 | 39 | ||
38 | CFLAGS += " -DJENT_CONF_ENABLE_INTERNAL_TIMER " | 40 | CFLAGS += " -DJENT_CONF_ENABLE_INTERNAL_TIMER " |
39 | 41 | ||
42 | PACKAGES =+ "${PN}-service" | ||
43 | |||
44 | FILES:${PN}-service += " \ | ||
45 | ${sysconfdir}/init.d/rng-tools \ | ||
46 | ${sysconfdir}/default/rng-tools \ | ||
47 | " | ||
48 | |||
40 | # Refer autogen.sh in rng-tools | 49 | # Refer autogen.sh in rng-tools |
41 | do_configure:prepend() { | 50 | do_configure:prepend() { |
42 | cp ${S}/README.md ${S}/README | 51 | cp ${S}/README.md ${S}/README |