diff options
author | Marcin Nowakowski <marcin.nowakowski@imgtec.com> | 2017-09-22 08:20:20 +0200 |
---|---|---|
committer | Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> | 2017-09-26 22:38:18 +0200 |
commit | cd707a9112e38b4ce98326b96c0ed12054ca1cca (patch) | |
tree | 437220f3afd9ac19ab9fb440716f455a3563cc25 /package/libkcapi/0002-Do-not-compile-unused-functions.patch | |
parent | 3f61400d2fc37ab54d266bde48c3b69261827f5d (diff) | |
download | buildroot-cd707a9112e38b4ce98326b96c0ed12054ca1cca.tar.gz buildroot-cd707a9112e38b4ce98326b96c0ed12054ca1cca.zip |
libkcapi: bump version to 0.14.0
Switch from github hash to an official release.
Several upstream patches are required to build the code correctly
on all platforms supported by buildroot.
The test application now uses fork().
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
[Arnout: Squash the two patches, MMU dependency was introduced with the
version bump.
Wrap assignments in libkcapi.mk differently.]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'package/libkcapi/0002-Do-not-compile-unused-functions.patch')
-rw-r--r-- | package/libkcapi/0002-Do-not-compile-unused-functions.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/libkcapi/0002-Do-not-compile-unused-functions.patch b/package/libkcapi/0002-Do-not-compile-unused-functions.patch new file mode 100644 index 0000000000..97ab7fc50b --- /dev/null +++ b/package/libkcapi/0002-Do-not-compile-unused-functions.patch @@ -0,0 +1,35 @@ +From 217b154a5f65d46064ceb69ce69664105e703a74 Mon Sep 17 00:00:00 2001 +From: Stephan Mueller <smueller@chronox.de> +Date: Thu, 3 Aug 2017 17:52:48 +0200 +Subject: [PATCH] Do not compile unused functions + +GCC 7 now rightfully complains about unused functions. + +Signed-off-by: Stephan Mueller <smueller@chronox.de> + +[Upstream commit: https://github.com/smuellerDD/libkcapi/commit/217b154a5f65d46064ceb69ce69664105e703a74] +Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com> +--- + apps/kcapi-rng.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/apps/kcapi-rng.c b/apps/kcapi-rng.c +index df7decf..e15edf9 100644 +--- a/apps/kcapi-rng.c ++++ b/apps/kcapi-rng.c +@@ -45,6 +45,7 @@ struct kcapi_handle *rng = NULL; + unsigned int Verbosity = 0; + char *rng_name = NULL; + ++#ifndef HAVE_GETRANDOM + static int read_complete(int fd, uint8_t *buf, uint32_t buflen) + { + ssize_t ret; +@@ -76,6 +77,7 @@ static int read_random(uint8_t *buf, uint32_t buflen) + close(fd); + return ret; + } ++#endif + + static int get_random(uint8_t *buf, uint32_t buflen) + { |