Update buildroot & docker (#25)
* Update docker & buildroot * Fix * fix versions
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From 2fdbf9f56bd6e7b00c695881a81c0df2f5088760 Mon Sep 17 00:00:00 2001
|
||||
From: Carlos Santos <casantos@datacom.ind.br>
|
||||
Date: Fri, 23 Mar 2018 09:15:44 -0300
|
||||
Subject: [PATCH] tcti/tcti_socket.cpp: add missing inclusion of sys/select.h
|
||||
|
||||
Prevents compilation errors due to undeclared "fd_set" type.
|
||||
|
||||
Fixes:
|
||||
http://autobuild.buildroot.net/results/09e8b3b85d7113d60e8967a2d41a6aea8f8197c0
|
||||
http://autobuild.buildroot.net/results/2e4c70f2f1239eb19235ae04a936a6492daf316d
|
||||
http://autobuild.buildroot.net/results/bbd68f52781da735e983b1260de5b804787374b1
|
||||
|
||||
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
|
||||
---
|
||||
tcti/tcti_socket.cpp | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/tcti/tcti_socket.cpp b/tcti/tcti_socket.cpp
|
||||
index e8982f1..b6e5874 100644
|
||||
--- a/tcti/tcti_socket.cpp
|
||||
+++ b/tcti/tcti_socket.cpp
|
||||
@@ -28,6 +28,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h> // Needed for _wtoi
|
||||
|
||||
+#include <sys/select.h> // for fd_set
|
||||
+
|
||||
#include "sapi/tpm20.h"
|
||||
#include "tcti/tcti_socket.h"
|
||||
#include "sysapi_util.h"
|
||||
--
|
||||
2.14.3
|
||||
|
||||
35
buildroot/package/tpm2-tss/Config.in
Normal file
35
buildroot/package/tpm2-tss/Config.in
Normal file
@@ -0,0 +1,35 @@
|
||||
config BR2_PACKAGE_TPM2_TSS
|
||||
bool "tpm2-tss"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_LIBURIPARSER
|
||||
help
|
||||
OSS implementation of the Trusted Computing Group's (TCG) TPM2
|
||||
Software Stack (TSS). This stack consists of the following
|
||||
layers from top to bottom:
|
||||
|
||||
* System API (SAPI) as described in the system level API and
|
||||
TPM command transmission interface specification. This API
|
||||
is a 1-to-1 mapping of the TPM2 commands documented in Part
|
||||
3 of the TPM2 specification. Additionally there are
|
||||
asynchronous versions of each command. These asynchronous
|
||||
variants may be useful for integration into event-driven
|
||||
programming environments. Both the synchronous and
|
||||
asynchronous API are exposed through a single library:
|
||||
libsapi.
|
||||
|
||||
* TPM Command Transmission Interface (TCTI) that is described
|
||||
in the same specification. This API provides a standard
|
||||
interface to transmit / receive TPM command / response
|
||||
buffers. It is expected that any number of libraries
|
||||
implementing the TCTI API will be implemented as a way to
|
||||
abstract various platform specific IPC mechanisms. Currently
|
||||
this repository provides two TCTI implementations:
|
||||
libtcti-device and libtcti-socket. The prior should be used
|
||||
for direct access to the TPM through the Linux kernel
|
||||
driver. The later implements the protocol exposed by the
|
||||
Microsoft software TPM2 simulator.
|
||||
|
||||
https://github.com/tpm2-software/tpm2-tss
|
||||
|
||||
comment "tpm2-tss needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
3
buildroot/package/tpm2-tss/tpm2-tss.hash
Normal file
3
buildroot/package/tpm2-tss/tpm2-tss.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 cf8784cc536be16e6fba47f77033e093a6aeaed8420877ac9f42f77fb7b09031 tpm2-tss-1.4.0.tar.gz
|
||||
sha256 18c1bf4b1ba1fb2c4ffa7398c234d83c0d55475298e470ae1e5e3a8a8bd2e448 LICENSE
|
||||
18
buildroot/package/tpm2-tss/tpm2-tss.mk
Normal file
18
buildroot/package/tpm2-tss/tpm2-tss.mk
Normal file
@@ -0,0 +1,18 @@
|
||||
################################################################################
|
||||
#
|
||||
# tpm2-tss
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TPM2_TSS_VERSION = 1.4.0
|
||||
TPM2_TSS_SITE = https://github.com/tpm2-software/tpm2-tss/releases/download/$(TPM2_TSS_VERSION)
|
||||
TPM2_TSS_LICENSE = BSD-2-Clause
|
||||
TPM2_TSS_LICENSE_FILES = LICENSE
|
||||
TPM2_TSS_INSTALL_STAGING = YES
|
||||
TPM2_TSS_DEPENDENCIES = liburiparser host-pkgconf
|
||||
|
||||
# configure.ac doesn't contain a link test, so it doesn't detect when
|
||||
# libssp is missing.
|
||||
TPM2_TSS_CONF_ENV = ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user