mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-07 04:58:47 +00:00
tpm2.0-tss: fix musl build error
Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -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 <akuster@mvista.com>
|
||||
|
||||
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 <stdio.h>
|
||||
#include <stdlib.h> // Needed for _wtoi
|
||||
|
||||
+#include "sys/select.h"
|
||||
#include <sapi/tpm20.h>
|
||||
#include <tcti/tcti_socket.h>
|
||||
#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 <stdio.h>
|
||||
#include <stdlib.h> // Needed for _wtoi
|
||||
|
||||
+#include "sys/select.h"
|
||||
#include <sapi/tpm20.h>
|
||||
#include <tcti/tcti_device.h>
|
||||
#include <tcti/tcti_socket.h>
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user