From 543f86aded7bbea1f32849029822e497126161d3 Mon Sep 17 00:00:00 2001 From: Armin Kuster Date: Fri, 27 Jan 2017 21:07:51 -0800 Subject: tpm2.0-tss: fix musl build error Signed-off-by: Armin Kuster Signed-off-by: Patrick Ohly Signed-off-by: Armin Kuster --- .../tpm2.0-tss/fix_musl_select_include.patch | 31 ++++++++++++++++++++++ recipes-tpm/tpm2.0-tss/tpm2.0-tss_git.bb | 3 ++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 recipes-tpm/tpm2.0-tss/tpm2.0-tss/fix_musl_select_include.patch diff --git a/recipes-tpm/tpm2.0-tss/tpm2.0-tss/fix_musl_select_include.patch b/recipes-tpm/tpm2.0-tss/tpm2.0-tss/fix_musl_select_include.patch new file mode 100644 index 0000000..ecaca6e --- /dev/null +++ b/recipes-tpm/tpm2.0-tss/tpm2.0-tss/fix_musl_select_include.patch @@ -0,0 +1,31 @@ +This fixes musl build issue do to missing FD_* defines. +Add sys/select.h + +Upstream-Status: Pending + +Signed-off-by: Armin Kuster + +Index: TPM2.0-TSS/tcti/tcti_socket.cpp +=================================================================== +--- TPM2.0-TSS.orig/tcti/tcti_socket.cpp ++++ TPM2.0-TSS/tcti/tcti_socket.cpp +@@ -28,6 +28,7 @@ + #include + #include // Needed for _wtoi + ++#include "sys/select.h" + #include + #include + #include "sysapi_util.h" +Index: TPM2.0-TSS/resourcemgr/resourcemgr.c +=================================================================== +--- TPM2.0-TSS.orig/resourcemgr/resourcemgr.c ++++ TPM2.0-TSS/resourcemgr/resourcemgr.c +@@ -28,6 +28,7 @@ + #include + #include // Needed for _wtoi + ++#include "sys/select.h" + #include + #include + #include diff --git a/recipes-tpm/tpm2.0-tss/tpm2.0-tss_git.bb b/recipes-tpm/tpm2.0-tss/tpm2.0-tss_git.bb index c4b5c8c..a03559c 100644 --- a/recipes-tpm/tpm2.0-tss/tpm2.0-tss_git.bb +++ b/recipes-tpm/tpm2.0-tss/tpm2.0-tss_git.bb @@ -7,7 +7,8 @@ SECTION = "tpm" SRCREV = "8e25d0cbb287d30c93b2b77e99bc761dc67e31a9" SRC_URI = " \ git://github.com/01org/TPM2.0-TSS.git;protocol=git;branch=master;name=TPM2.0-TSS;destsuffix=TPM2.0-TSS \ - file://ax_pthread.m4" + file://ax_pthread.m4 \ + file://fix_musl_select_include.patch " inherit autotools pkgconfig -- cgit v1.2.3-54-g00ecf