Import buildroot 2016.02.01
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
From f03c7987c234a81f7e4274b26bab07318357a2a5 Mon Sep 17 00:00:00 2001
|
||||
From: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
Date: Fri, 25 Dec 2015 20:09:21 -0200
|
||||
Subject: [PATCH] Remove inline for read_data and write_data
|
||||
|
||||
read_data and write_data functions are declared with inline, but
|
||||
their definition is not in a .h file. This is causing errors when
|
||||
linking:
|
||||
|
||||
tcsps.c:(.text+0x4ac): undefined reference to `read_data'
|
||||
tcsps.c:(.text+0x1888): undefined reference to `write_data'
|
||||
...
|
||||
|
||||
Partial backport of upstream commit
|
||||
3297fcdf5ac0df868778e976b8b59e35542c1ee2.
|
||||
|
||||
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
---
|
||||
src/include/tcsps.h | 5 -----
|
||||
src/tcs/ps/ps_utils.c | 8 --------
|
||||
src/tspi/ps/ps_utils.c | 4 ++--
|
||||
3 files changed, 2 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/src/include/tcsps.h b/src/include/tcsps.h
|
||||
index 87542965877d..dcd5db469822 100644
|
||||
--- a/src/include/tcsps.h
|
||||
+++ b/src/include/tcsps.h
|
||||
@@ -23,13 +23,8 @@ int get_file();
|
||||
int put_file(int);
|
||||
void close_file(int);
|
||||
void ps_destroy();
|
||||
-#ifdef SOLARIS
|
||||
TSS_RESULT read_data(int, void *, UINT32);
|
||||
TSS_RESULT write_data(int, void *, UINT32);
|
||||
-#else
|
||||
-inline TSS_RESULT read_data(int, void *, UINT32);
|
||||
-inline TSS_RESULT write_data(int, void *, UINT32);
|
||||
-#endif
|
||||
int write_key_init(int, UINT32, UINT32, UINT32);
|
||||
TSS_RESULT cache_key(UINT32, UINT16, TSS_UUID *, TSS_UUID *, UINT16, UINT32, UINT32);
|
||||
TSS_RESULT UnloadBlob_KEY_PS(UINT16 *, BYTE *, TSS_KEY *);
|
||||
diff --git a/src/tcs/ps/ps_utils.c b/src/tcs/ps/ps_utils.c
|
||||
index 2e7f502b9599..35ac89f8fc12 100644
|
||||
--- a/src/tcs/ps/ps_utils.c
|
||||
+++ b/src/tcs/ps/ps_utils.c
|
||||
@@ -42,11 +42,7 @@
|
||||
struct key_disk_cache *key_disk_cache_head = NULL;
|
||||
|
||||
|
||||
-#ifdef SOLARIS
|
||||
TSS_RESULT
|
||||
-#else
|
||||
-inline TSS_RESULT
|
||||
-#endif
|
||||
read_data(int fd, void *data, UINT32 size)
|
||||
{
|
||||
int rc;
|
||||
@@ -64,11 +60,7 @@ read_data(int fd, void *data, UINT32 size)
|
||||
}
|
||||
|
||||
|
||||
-#ifdef SOLARIS
|
||||
TSS_RESULT
|
||||
-#else
|
||||
-inline TSS_RESULT
|
||||
-#endif
|
||||
write_data(int fd, void *data, UINT32 size)
|
||||
{
|
||||
int rc;
|
||||
diff --git a/src/tspi/ps/ps_utils.c b/src/tspi/ps/ps_utils.c
|
||||
index aac40a147314..83259141d375 100644
|
||||
--- a/src/tspi/ps/ps_utils.c
|
||||
+++ b/src/tspi/ps/ps_utils.c
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "tspps.h"
|
||||
#include "tsplog.h"
|
||||
|
||||
-inline TSS_RESULT
|
||||
+TSS_RESULT
|
||||
read_data(int fd, void *data, UINT32 size)
|
||||
{
|
||||
int rc;
|
||||
@@ -39,7 +39,7 @@ read_data(int fd, void *data, UINT32 size)
|
||||
return TSS_SUCCESS;
|
||||
}
|
||||
|
||||
-inline TSS_RESULT
|
||||
+TSS_RESULT
|
||||
write_data(int fd, void *data, UINT32 size)
|
||||
{
|
||||
int rc;
|
||||
--
|
||||
1.9.1
|
||||
|
||||
18
firmware/buildroot/package/trousers/Config.in
Normal file
18
firmware/buildroot/package/trousers/Config.in
Normal file
@@ -0,0 +1,18 @@
|
||||
config BR2_PACKAGE_TROUSERS
|
||||
bool "trousers"
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
# doesn't build properly in static only configurations
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
The open-source TCG Software Stack (TSS).
|
||||
|
||||
This library enables the use of a Trusted Platform Module that
|
||||
complies with the TPM specification, version 1.2. It implements the
|
||||
TSS specification, version 1.2.
|
||||
|
||||
http://trousers.sourceforge.net/
|
||||
|
||||
comment "trousers needs a toolchain w/ threads, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
3
firmware/buildroot/package/trousers/trousers.hash
Normal file
3
firmware/buildroot/package/trousers/trousers.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# http://sourceforge.net/projects/trousers/files/trousers/0.3.13/
|
||||
sha1 d23f1a3df4febffc4174f5cca7d1c54230477bb2 trousers-0.3.13.tar.gz
|
||||
md5 ad508f97b406f6e48cd90e85d78e7ca8 trousers-0.3.13.tar.gz
|
||||
24
firmware/buildroot/package/trousers/trousers.mk
Normal file
24
firmware/buildroot/package/trousers/trousers.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
#############################################################
|
||||
#
|
||||
# trousers
|
||||
#
|
||||
##############################################################
|
||||
|
||||
TROUSERS_VERSION = 0.3.13
|
||||
TROUSERS_SOURCE = trousers-$(TROUSERS_VERSION).tar.gz
|
||||
TROUSERS_SITE = http://downloads.sourceforge.net/project/trousers/trousers/$(TROUSERS_VERSION)
|
||||
TROUSERS_LICENSE = BSD-3c
|
||||
TROUSERS_LICENSE_FILES = LICENSE
|
||||
TROUSERS_INSTALL_STAGING = YES
|
||||
TROUSERS_DEPENDENCIES = openssl
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
TROUSERS_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
# The TrouSerS build system attempts to create the tss user and group
|
||||
# on the host system. Disable the user checking feature as a
|
||||
# workaround.
|
||||
TROUSERS_CONF_OPTS += --disable-usercheck
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user