Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
9d068f66
Unverified
Commit
9d068f66
authored
Nov 08, 2018
by
Antonio Niño Díaz
Committed by
GitHub
Nov 08, 2018
Browse files
Merge pull request #1673 from antonio-nino-diaz-arm/an/headers
Standardise header guards across codebase
parents
f5ae1b0e
c3cf06f1
Changes
508
Hide whitespace changes
Inline
Side-by-side
tools/cert_create/include/sha.h
View file @
9d068f66
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef SHA_H
_
#ifndef SHA_H
#define SHA_H
_
#define SHA_H
int
sha_file
(
int
md_alg
,
const
char
*
filename
,
unsigned
char
*
md
);
int
sha_file
(
int
md_alg
,
const
char
*
filename
,
unsigned
char
*
md
);
#endif
/* SHA_H
_
*/
#endif
/* SHA_H */
tools/cert_create/include/tbbr/tbb_cert.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef TBB_CERT_H
_
#ifndef TBB_CERT_H
#define TBB_CERT_H
_
#define TBB_CERT_H
#include "cert.h"
#include "cert.h"
...
@@ -26,4 +26,4 @@ enum {
...
@@ -26,4 +26,4 @@ enum {
FWU_CERT
FWU_CERT
};
};
#endif
/* TBB_CERT_H
_
*/
#endif
/* TBB_CERT_H */
tools/cert_create/include/tbbr/tbb_ext.h
View file @
9d068f66
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef TBB_EXT_H
_
#ifndef TBB_EXT_H
#define TBB_EXT_H
_
#define TBB_EXT_H
#include "ext.h"
#include "ext.h"
...
@@ -35,4 +35,4 @@ enum {
...
@@ -35,4 +35,4 @@ enum {
FWU_HASH_EXT
FWU_HASH_EXT
};
};
#endif
/* TBB_EXT_H
_
*/
#endif
/* TBB_EXT_H */
tools/cert_create/include/tbbr/tbb_key.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef TBB_KEY_H
_
#ifndef TBB_KEY_H
#define TBB_KEY_H
_
#define TBB_KEY_H
#include "key.h"
#include "key.h"
...
@@ -22,4 +22,4 @@ enum {
...
@@ -22,4 +22,4 @@ enum {
NON_TRUSTED_FW_CONTENT_CERT_KEY
NON_TRUSTED_FW_CONTENT_CERT_KEY
};
};
#endif
/* TBB_KEY_H
_
*/
#endif
/* TBB_KEY_H */
tools/fiptool/fiptool.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
FIPTOOL_H
__
#ifndef FIPTOOL_H
#define
__
FIPTOOL_H
__
#define FIPTOOL_H
#include <stddef.h>
#include <stddef.h>
#include <stdint.h>
#include <stdint.h>
...
@@ -51,4 +51,4 @@ typedef struct cmd {
...
@@ -51,4 +51,4 @@ typedef struct cmd {
void
(
*
usage
)(
void
);
void
(
*
usage
)(
void
);
}
cmd_t
;
}
cmd_t
;
#endif
/*
__
FIPTOOL_H
__
*/
#endif
/* FIPTOOL_H */
tools/fiptool/fiptool_platform.h
View file @
9d068f66
/*
/*
* Copyright (c) 2016-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*
*/
/*
* Build platform specific handling.
* Build platform specific handling.
* This allows for builds on non-Posix platforms
* This allows for builds on non-Posix platforms
* e.g. Visual Studio on Windows
* e.g. Visual Studio on Windows
*/
*/
#ifndef
__
FIPTOOL_PLATFORM_H
__
#ifndef FIPTOOL_PLATFORM_H
#
define
__
FIPTOOL_PLATFORM_H
__
#define FIPTOOL_PLATFORM_H
#
ifndef _MSC_VER
#ifndef _MSC_VER
/* Not Visual Studio, so include Posix Headers. */
/* Not Visual Studio, so include Posix Headers. */
#
include <getopt.h>
#
include <getopt.h>
#
include <openssl/sha.h>
#
include <openssl/sha.h>
#
include <unistd.h>
#
include <unistd.h>
#
define BLD_PLAT_STAT stat
#
define BLD_PLAT_STAT stat
#
else
#else
/* Visual Studio. */
/* Visual Studio. */
#
include "win_posix.h"
#
include "win_posix.h"
#
endif
#endif
#endif
/*
__
FIPTOOL_PLATFORM_H
__
*/
#endif
/* FIPTOOL_PLATFORM_H */
tools/fiptool/tbbr_config.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
TBBR_CONFIG_H
__
#ifndef TBBR_CONFIG_H
#define
__
TBBR_CONFIG_H
__
#define TBBR_CONFIG_H
#include <stdint.h>
#include <stdint.h>
...
@@ -22,4 +22,4 @@ typedef struct toc_entry {
...
@@ -22,4 +22,4 @@ typedef struct toc_entry {
extern
toc_entry_t
toc_entries
[];
extern
toc_entry_t
toc_entries
[];
#endif
/*
__
TBBR_CONFIG_H
__
*/
#endif
/* TBBR_CONFIG_H */
tools/fiptool/win_posix.h
View file @
9d068f66
/*
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
WINPOSIX_H
__
#ifndef WIN
_
POSIX_H
#
define
__
WINPOSIX_H
__
#define WIN
_
POSIX_H
#
define _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
# include <direct.h>
#include <direct.h>
# include <io.h>
#include <io.h>
# include <stdint.h>
#include <stdint.h>
# include <stdlib.h>
#include <stdlib.h>
# include <string.h>
#include <string.h>
# include <sys/stat.h>
#include <sys/stat.h>
# include "uuid.h"
#include "uuid.h"
/* Derive or provide Windows equivalents of Posix/GCC/Unix stuff. */
/* Derive or provide Windows equivalents of Posix/GCC/Unix stuff. */
#
ifndef PATH_MAX
#ifndef PATH_MAX
#
ifdef MAX_PATH
#
ifdef MAX_PATH
#
define PATH_MAX MAX_PATH
#
define PATH_MAX MAX_PATH
#
else
#
else
#
ifdef _MAX_PATH
#
ifdef _MAX_PATH
#
define MAX_PATH _MAX_PATH
#
define MAX_PATH _MAX_PATH
#
define PATH_MAX _MAX_PATH
#
define PATH_MAX _MAX_PATH
#
else
#
else
#
define PATH_MAX 260
#
define PATH_MAX 260
#
endif
#
endif
#
endif
#
endif
#
endif
#endif
#
ifndef _CRT_SECURE_NO_WARNINGS
#ifndef _CRT_SECURE_NO_WARNINGS
#
define _CRT_SECURE_NO_WARNINGS 1
#
define _CRT_SECURE_NO_WARNINGS 1
#
endif
#endif
/*
/*
* Platform specific names.
* Platform specific names.
...
@@ -46,13 +45,13 @@
...
@@ -46,13 +45,13 @@
*/
*/
/* fileno cannot be an inline function, because _fileno is a macro. */
/* fileno cannot be an inline function, because _fileno is a macro. */
#
define fileno(fileptr) _fileno(fileptr)
#define fileno(fileptr) _fileno(fileptr)
/* _fstat uses the _stat structure, not stat. */
/* _fstat uses the _stat structure, not stat. */
#
define BLD_PLAT_STAT _stat
#define BLD_PLAT_STAT _stat
/* Define flag values for _access. */
/* Define flag values for _access. */
#
define F_OK 0
#define F_OK 0
/* getopt implementation for Windows: Data. */
/* getopt implementation for Windows: Data. */
...
@@ -184,4 +183,4 @@ int getopt_long_only(int argc,
...
@@ -184,4 +183,4 @@ int getopt_long_only(int argc,
const
struct
option
*
longopts
,
const
struct
option
*
longopts
,
int
*
indexptr
);
int
*
indexptr
);
#endif
/*
__
WINPOSIX_H
__
*/
#endif
/* WIN
_
POSIX_H */
Prev
1
…
22
23
24
25
26
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment