projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fb340a
)
fiptool: Support non-decimal --align arguments
author
Andreas Färber
<afaerber@suse.de>
Fri, 21 Apr 2017 17:39:10 +0000
(19:39 +0200)
committer
Andreas Färber
<afaerber@suse.de>
Mon, 24 Apr 2017 10:46:44 +0000
(12:46 +0200)
An alignment value of 0x4000 is much easier to type than 16384,
so enhance get_image_align() to recognize a 0x prefix for hexadecimals.
Signed-off-by: Andreas Färber <afaerber@suse.de>
tools/fiptool/fiptool.c
patch
|
blob
|
history
diff --git
a/tools/fiptool/fiptool.c
b/tools/fiptool/fiptool.c
index 542a946667efd6e8489c2d1fc57ca6235eb795c5..0503696b8b9661a374ce472cecca083bdd366e92 100644
(file)
--- a/
tools/fiptool/fiptool.c
+++ b/
tools/fiptool/fiptool.c
@@
-646,7
+646,7
@@
static unsigned long get_image_align(char *arg)
unsigned long align;
errno = 0;
- align = strtoul(arg, &endptr,
1
0);
+ align = strtoul(arg, &endptr, 0);
if (*endptr != '\0' || !is_power_of_2(align) || errno != 0)
log_errx("Invalid alignment: %s", arg);