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 <vidwer@gmail.com> Change-Id: I295fd308b0f5e2902931f02c9455823a614976de Reviewed-on: https://review.coreboot.org/c/coreboot/+/48977 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
2c626f332b
commit
93df1d9cfa
|
@ -57,6 +57,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "amdfwtool.h"
|
#include "amdfwtool.h"
|
||||||
|
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
#ifndef _AMD_FW_TOOL_H_
|
#ifndef _AMD_FW_TOOL_H_
|
||||||
#define _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 {
|
typedef enum _amd_fw_type {
|
||||||
AMD_FW_PSP_PUBKEY = 0,
|
AMD_FW_PSP_PUBKEY = 0,
|
||||||
AMD_FW_PSP_BOOTLOADER = 1,
|
AMD_FW_PSP_BOOTLOADER = 1,
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "amdfwtool.h"
|
#include "amdfwtool.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue