Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
d818a02c
Commit
d818a02c
authored
7 years ago
by
davidcunado-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1074 from EvanLloyd/ejll/62_file_mode
fiptool: Update file open modes with 'b' (for Windows)
parents
615cd166
55745dea
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/fiptool/fiptool.c
+4
-4
tools/fiptool/fiptool.c
with
4 additions
and
4 deletions
+4
-4
tools/fiptool/fiptool.c
View file @
d818a02c
...
...
@@ -285,7 +285,7 @@ static int parse_fip(const char *filename, fip_toc_header_t *toc_header_out)
fip_toc_entry_t
*
toc_entry
;
int
terminated
=
0
;
fp
=
fopen
(
filename
,
"r"
);
fp
=
fopen
(
filename
,
"r
b
"
);
if
(
fp
==
NULL
)
log_err
(
"fopen %s"
,
filename
);
...
...
@@ -376,7 +376,7 @@ static image_t *read_image_from_file(const uuid_t *uuid, const char *filename)
assert
(
uuid
!=
NULL
);
fp
=
fopen
(
filename
,
"r"
);
fp
=
fopen
(
filename
,
"r
b
"
);
if
(
fp
==
NULL
)
log_err
(
"fopen %s"
,
filename
);
...
...
@@ -398,7 +398,7 @@ static int write_image_to_file(const image_t *image, const char *filename)
{
FILE
*
fp
;
fp
=
fopen
(
filename
,
"w"
);
fp
=
fopen
(
filename
,
"w
b
"
);
if
(
fp
==
NULL
)
log_err
(
"fopen"
);
xfwrite
(
image
->
buffer
,
image
->
toc_e
.
size
,
fp
,
filename
);
...
...
@@ -534,7 +534,7 @@ static int pack_images(const char *filename, uint64_t toc_flags, unsigned long a
toc_entry
->
offset_address
=
entry_offset
;
/* Generate the FIP file. */
fp
=
fopen
(
filename
,
"w"
);
fp
=
fopen
(
filename
,
"w
b
"
);
if
(
fp
==
NULL
)
log_err
(
"fopen %s"
,
filename
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help