aboutsummaryrefslogtreecommitdiff
path: root/package/tpm-tools/0001-tpm_nvread-include-sys-stat.h-for-open-modes.patch
diff options
context:
space:
mode:
authorGravatar Noé Rubinstein <noe.rubinstein@gmail.com>2015-11-04 18:47:05 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-24 09:16:37 +0100
commit4ef0ef352c1edda0a7df482e9bd84543e827cc92 (patch)
tree9556703c704affb84163c652449cdeff661f86bc /package/tpm-tools/0001-tpm_nvread-include-sys-stat.h-for-open-modes.patch
parente2eaf814eb05b7c782dc87c7ef0b8e8cb356b592 (diff)
downloadbuildroot-4ef0ef352c1edda0a7df482e9bd84543e827cc92.tar.gz
buildroot-4ef0ef352c1edda0a7df482e9bd84543e827cc92.tar.bz2
tpm-tools: new package
[Thomas: - move from Libraries/Crypto to System tools in menuconfig - add patch to fix build with uClibc - use 'select' for openssl rather than a 'depends on' - propagate trousers dependencies - add <pkg>_LICENSE and <pkg>_LICENSEFILES - link against libiconv when needed, fixing !locale builds - explicitly disable pkcs11 support, since it is not handled by tpm-tools.mk currently.] Signed-off-by: Al West <al.west@v-nova.com> Signed-off-by: Noé Rubinstein <nrubinstein@aldebaran.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/tpm-tools/0001-tpm_nvread-include-sys-stat.h-for-open-modes.patch')
-rw-r--r--package/tpm-tools/0001-tpm_nvread-include-sys-stat.h-for-open-modes.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/tpm-tools/0001-tpm_nvread-include-sys-stat.h-for-open-modes.patch b/package/tpm-tools/0001-tpm_nvread-include-sys-stat.h-for-open-modes.patch
new file mode 100644
index 0000000000..35fd7632bd
--- /dev/null
+++ b/package/tpm-tools/0001-tpm_nvread-include-sys-stat.h-for-open-modes.patch
@@ -0,0 +1,33 @@
+From 5fedfd32a226e3ac8a6022227ec2d8fc6df26901 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Thu, 24 Dec 2015 08:57:09 +0100
+Subject: [PATCH] tpm_nvread: include <sys/stat.h> for open() modes
+
+As the manual page of open(2) indicates, the <sys/stat.h> header
+should be included. Indeed, it is this header that provides the mode_t
+macros such as S_IRUSR and S_IWUSR.
+
+While the build happens to work with glibc without this included
+header, it fails with other C libraries such as uClibc, due to the
+missing inclusion.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ src/tpm_mgmt/tpm_nvread.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/tpm_mgmt/tpm_nvread.c b/src/tpm_mgmt/tpm_nvread.c
+index 35fe17c..92f047c 100644
+--- a/src/tpm_mgmt/tpm_nvread.c
++++ b/src/tpm_mgmt/tpm_nvread.c
+@@ -23,6 +23,7 @@
+ #include <ctype.h>
+ #include <fcntl.h>
+ #include <unistd.h>
++#include <sys/stat.h>
+
+ #include "tpm_nvcommon.h"
+ #include "tpm_tspi.h"
+--
+2.6.4
+