Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
onny
uboot-i9100
Commits
1895420b
Commit
1895420b
authored
13 years ago
by
Horst Kronstorfer
Committed by
Wolfgang Denk
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mkenvimage: Add version info switch (-V)
Signed-off-by:
Horst Kronstorfer
<
hkronsto@frequentis.com
>
parent
5e0c63e2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/mkenvimage.c
+6
-1
6 additions, 1 deletion
tools/mkenvimage.c
with
6 additions
and
1 deletion
tools/mkenvimage.c
+
6
−
1
View file @
1895420b
...
...
@@ -36,6 +36,7 @@
#include
<sys/stat.h>
#include
<u-boot/crc.h>
#include
<version.h>
#define CRC_SIZE sizeof(uint32_t)
...
...
@@ -56,6 +57,7 @@ static void usage(const char *exec_name)
"
\t
-b : the target is big endian (default is little endian)
\n
"
"
\t
-p <byte> : fill the image with <byte> bytes instead of "
"0xff bytes
\n
"
"
\t
-V : print version information and exit
\n
"
"
\n
"
"If the input file is
\"
-
\"
, data is read from standard input
\n
"
,
exec_name
);
...
...
@@ -84,7 +86,7 @@ int main(int argc, char **argv)
opterr
=
0
;
/* Parse the cmdline */
while
((
option
=
getopt
(
argc
,
argv
,
":s:o:rbp:h"
))
!=
-
1
)
{
while
((
option
=
getopt
(
argc
,
argv
,
":s:o:rbp:h
V
"
))
!=
-
1
)
{
switch
(
option
)
{
case
's'
:
datasize
=
strtol
(
optarg
,
NULL
,
0
);
...
...
@@ -109,6 +111,9 @@ int main(int argc, char **argv)
case
'h'
:
usage
(
argv
[
0
]);
return
EXIT_SUCCESS
;
case
'V'
:
printf
(
"%s version %s
\n
"
,
prg
,
PLAIN_VERSION
);
return
EXIT_SUCCESS
;
case
':'
:
fprintf
(
stderr
,
"Missing argument for option -%c
\n
"
,
optopt
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment