|
|
@@ -1,3 +1,8 @@
|
|
|
+From f3d2056b81b7a92d28402c22736534d84fe23cfe Mon Sep 17 00:00:00 2001
|
|
|
+From: Gabor Juhos <[email protected]>
|
|
|
+Date: Mon, 5 Dec 2011 14:52:22 +0000
|
|
|
+Subject: [PATCH] tools/mkimage: allow to use different magic in uImages
|
|
|
+
|
|
|
This patch makes it possible to set a custom image magic.
|
|
|
|
|
|
--- a/tools/mkimage.c
|
|
|
@@ -24,16 +29,16 @@ This patch makes it possible to set a custom image magic.
|
|
|
" -a ==> set load address to 'addr' (hex)\n"
|
|
|
" -e ==> set entry point to 'ep' (hex)\n"
|
|
|
" -n ==> set image name to 'name'\n"
|
|
|
-@@ -162,7 +164,7 @@ static int add_content(int type, const c
|
|
|
+@@ -164,7 +166,7 @@ static int add_content(int type, const c
|
|
|
}
|
|
|
|
|
|
static const char optstring[] =
|
|
|
-- "a:A:b:B:c:C:d:D:e:Ef:Fg:G:i:k:K:ln:N:o:O:p:qrR:stT:vVxy:Y:";
|
|
|
-+ "a:A:b:B:c:C:d:D:e:Ef:Fg:G:i:k:K:lM:n:N:o:O:p:qrR:stT:vVxy:Y:";
|
|
|
+- "a:A:b:B:c:C:d:D:e:Ef:Fg:G:i:k:K:ln:N:o:O:p:qrR:stT:vVxy:Y:z:Z:";
|
|
|
++ "a:A:b:B:c:C:d:D:e:Ef:Fg:G:i:k:K:lM:n:N:o:O:p:qrR:stT:vVxy:Y:z:Z:";
|
|
|
|
|
|
static const struct option longopts[] = {
|
|
|
{ "load-address", required_argument, NULL, 'a' },
|
|
|
-@@ -308,6 +310,14 @@ static void process_args(int argc, char
|
|
|
+@@ -312,6 +314,14 @@ static void process_args(int argc, char
|
|
|
case 'l':
|
|
|
params.lflag = 1;
|
|
|
break;
|