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
e715e676
Commit
e715e676
authored
May 24, 2017
by
danh-arm
Committed by
GitHub
May 24, 2017
Browse files
Merge pull request #938 from masahir0y/tools_share
Collect headers shared between TF and host-tools into include/tools_share
parents
c1de3fdd
232c6b34
Changes
25
Hide whitespace changes
Inline
Side-by-side
tools/fiptool/Makefile
View file @
e715e676
#
# Copyright (c) 2014-201
6
, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2014-201
7
, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
...
...
@@ -11,7 +11,6 @@ include ${MAKE_HELPERS_DIRECTORY}build_env.mk
PROJECT
:=
fiptool
${BIN_EXT}
OBJECTS
:=
fiptool.o tbbr_config.o
V
:=
0
COPIED_H_FILES
:=
uuid.h firmware_image_package.h
override
CPPFLAGS
+=
-D_GNU_SOURCE
-D_XOPEN_SOURCE
=
700
CFLAGS
:=
-Wall
-Werror
-pedantic
-std
=
c99
...
...
@@ -28,8 +27,7 @@ else
Q
:=
endif
# Only include from local directory (see comment below).
INCLUDE_PATHS
:=
-I
.
INCLUDE_PATHS
:=
-I
.
-I
../../include/tools_share
CC
:=
gcc
...
...
@@ -48,24 +46,9 @@ fip_create: fip_create.sh
${Q}
mkdir
-p
../fip_create
${Q}
install
-m
755 fip_create.sh ../fip_create/fip_create
%.o
:
%.c %.h
${COPIED_H_FILES}
Makefile
%.o
:
%.c %.h Makefile
@
echo
" CC
$<
"
${Q}${CC}
-c
${CPPFLAGS}
${CFLAGS}
${INCLUDE_PATHS}
$<
-o
$@
#
# Copy required library headers to a local directory so they can be included
# by this project without adding the library directories to the system include
# path. This avoids conflicts with definitions in the compiler standard
# include path.
#
uuid.h
:
../../include/lib/stdlib/sys/uuid.h
$(
call
SHELL_COPY,
$<
,
$@
)
firmware_image_package.h
:
../../include/common/firmware_image_package.h
$(
call
SHELL_COPY,
$<
,
$@
)
clean
:
$(
call
SHELL_DELETE_ALL,
${PROJECT}
${OBJECTS}
fip_create
)
distclean
:
clean
$(
call
SHELL_DELETE_ALL,
${COPIED_H_FILES}
)
tools/fiptool/fiptool.c
View file @
e715e676
/*
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016
-2017
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -20,8 +20,9 @@
#include <openssl/sha.h>
#include <firmware_image_package.h>
#include "fiptool.h"
#include "firmware_image_package.h"
#include "tbbr_config.h"
#define OPT_TOC_ENTRY 0
...
...
tools/fiptool/fiptool.h
View file @
e715e676
/*
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016
-2017
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -10,8 +10,8 @@
#include <stddef.h>
#include <stdint.h>
#include
"
firmware_image_package.h
"
#include
"
uuid.h
"
#include
<
firmware_image_package.h
>
#include
<
uuid.h
>
#define NELEM(x) (sizeof (x) / sizeof *(x))
...
...
tools/fiptool/tbbr_config.c
View file @
e715e676
/*
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016
-2017
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stddef.h>
#include "firmware_image_package.h"
#include <firmware_image_package.h>
#include "tbbr_config.h"
/* The images used depends on the platform. */
...
...
tools/fiptool/tbbr_config.h
View file @
e715e676
/*
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016
-2017
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -9,7 +9,7 @@
#include <stdint.h>
#include
"
uuid.h
"
#include
<
uuid.h
>
/* TODO: Update this number as required */
#define TOC_HEADER_SERIAL_NUMBER 0x12345678
...
...
Prev
1
2
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