diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-11-09 17:12:22 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:40 +0000 |
commit | 9a124f6539ad1644accc06b8b2e81cd8d945dc79 (patch) | |
tree | 8dba7cb9cd3a352e1dc3790cdd192b21d2bde632 /meta | |
parent | b39fca9d453d68f51cd12fc83901769f4c2a56ed (diff) | |
download | poky-9a124f6539ad1644accc06b8b2e81cd8d945dc79.tar.gz |
libjitterentropy: add 2.1.2
>From the following kernel commit we know: Fedora has integrated the jitter
entropy daemon to work around slow boot problems, especially on VM's that
don't support virtio-rng
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81e69df38e2911b642ec121dec319fad2a4782f3
Do the same thing for Yocto.
(From OE-Core rev: fb85c1b420b86b8420785334a3a18afbb013b238)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/libjitterentropy/files/0001-fix-do_install-failure-on-oe.patch | 33 | ||||
-rw-r--r-- | meta/recipes-support/libjitterentropy/libjitterentropy_2.1.2.bb | 28 |
2 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-support/libjitterentropy/files/0001-fix-do_install-failure-on-oe.patch b/meta/recipes-support/libjitterentropy/files/0001-fix-do_install-failure-on-oe.patch new file mode 100644 index 0000000000..30ff4feb6b --- /dev/null +++ b/meta/recipes-support/libjitterentropy/files/0001-fix-do_install-failure-on-oe.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 00cefca0eefecec657969b50cd4e1ed5b057a857 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Thu, 25 Oct 2018 16:30:06 +0800 | ||
4 | Subject: [PATCH] fix do_install failure on oe | ||
5 | |||
6 | - Do not strip at do_install | ||
7 | |||
8 | - Create includedir | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
13 | --- | ||
14 | Makefile | 3 ++- | ||
15 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/Makefile b/Makefile | ||
18 | index 5e31276..76fcbfa 100644 | ||
19 | --- a/Makefile | ||
20 | +++ b/Makefile | ||
21 | @@ -51,7 +51,8 @@ install: | ||
22 | install -m 644 doc/$(NAME).3 $(DESTDIR)$(PREFIX)/share/man/man3/ | ||
23 | gzip -9 $(DESTDIR)$(PREFIX)/share/man/man3/$(NAME).3 | ||
24 | install -d -m 0755 $(DESTDIR)$(PREFIX)/$(LIBDIR) | ||
25 | - install -m 0755 -s lib$(NAME).so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/$(LIBDIR)/ | ||
26 | + install -m 0755 lib$(NAME).so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/$(LIBDIR)/ | ||
27 | + install -d -m 0755 $(DESTDIR)$(PREFIX)/$(INCDIR)/ | ||
28 | install -m 0644 jitterentropy.h $(DESTDIR)$(PREFIX)/$(INCDIR)/ | ||
29 | install -m 0644 jitterentropy-base-user.h $(DESTDIR)$(PREFIX)/$(INCDIR)/ | ||
30 | $(RM) $(DESTDIR)$(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) | ||
31 | -- | ||
32 | 2.7.4 | ||
33 | |||
diff --git a/meta/recipes-support/libjitterentropy/libjitterentropy_2.1.2.bb b/meta/recipes-support/libjitterentropy/libjitterentropy_2.1.2.bb new file mode 100644 index 0000000000..3b5b4e4aa0 --- /dev/null +++ b/meta/recipes-support/libjitterentropy/libjitterentropy_2.1.2.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | SUMMARY = "Hardware RNG based on CPU timing jitter" | ||
2 | DESCRIPTION = "The Jitter RNG provides a noise source using the CPU execution timing jitter. \ | ||
3 | It does not depend on any system resource other than a high-resolution time \ | ||
4 | stamp. It is a small-scale, yet fast entropy source that is viable in almost \ | ||
5 | all environments and on a lot of CPU architectures." | ||
6 | HOMEPAGE = "http://www.chronox.de/jent.html" | ||
7 | LICENSE = "GPLv2+ | BSD" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=e52365752b36cfcd7f9601d80de7d8c6 \ | ||
9 | file://COPYING.gplv2;md5=eb723b61539feef013de476e68b5c50a \ | ||
10 | file://COPYING.bsd;md5=66a5cedaf62c4b2637025f049f9b826f \ | ||
11 | " | ||
12 | SRC_URI = "git://github.com/smuellerDD/jitterentropy-library.git \ | ||
13 | file://0001-fix-do_install-failure-on-oe.patch \ | ||
14 | " | ||
15 | SRCREV = "f5a80c6f3fcc6deebd0eabf75324f48aed1afbce" | ||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | do_configure[noexec] = "1" | ||
19 | |||
20 | LDFLAGS += "-Wl,-O0" | ||
21 | |||
22 | do_install () { | ||
23 | oe_runmake install INCDIR="/include" \ | ||
24 | DESTDIR="${D}" \ | ||
25 | PREFIX="${exec_prefix}" \ | ||
26 | LIBDIR="${baselib}" | ||
27 | } | ||
28 | |||