From 93df1d9cfaef526bf5a8f18cb619623d9bd82293 Mon Sep 17 00:00:00 2001 From: Idwer Vollering Date: Wed, 30 Dec 2020 00:01:59 +0100 Subject: util/amdfwtool: portability fixes for FreeBSD Add the stdint.h header, and drop the GLIBC section from amdfwtool.h to build this tool on FreeBSD as well as Linux. Signed-off-by: Idwer Vollering Change-Id: I295fd308b0f5e2902931f02c9455823a614976de Reviewed-on: https://review.coreboot.org/c/coreboot/+/48977 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- util/amdfwtool/amdfwtool.c | 1 + util/amdfwtool/amdfwtool.h | 8 -------- util/amdfwtool/data_parse.c | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) (limited to 'util') diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index f167e5ed1a..8b54876db7 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -57,6 +57,7 @@ #include #include #include +#include #include "amdfwtool.h" diff --git a/util/amdfwtool/amdfwtool.h b/util/amdfwtool/amdfwtool.h index 6ae4675121..b12b989b74 100644 --- a/util/amdfwtool/amdfwtool.h +++ b/util/amdfwtool/amdfwtool.h @@ -3,14 +3,6 @@ #ifndef _AMD_FW_TOOL_H_ #define _AMD_FW_TOOL_H_ -#if defined(__GLIBC__) -typedef unsigned long long int uint64_t; -typedef unsigned int uint32_t; -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -#endif - - typedef enum _amd_fw_type { AMD_FW_PSP_PUBKEY = 0, AMD_FW_PSP_BOOTLOADER = 1, diff --git a/util/amdfwtool/data_parse.c b/util/amdfwtool/data_parse.c index 017c689f13..b6e14a8f9a 100644 --- a/util/amdfwtool/data_parse.c +++ b/util/amdfwtool/data_parse.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "amdfwtool.h" -- cgit v1.2.3