Skip to contentSkip to conversation

run-opentest: handle kernel images in zImage in addition to uImage format

PATCH In review Denys Dmytriyenko 2 participants 2 messages Oct 2, 2013 – Oct 3, 2013 Library code

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 run-opentest: handle kernel images in zImage in addition to uImage format

From: Denys Dmytriyenko <[email protected]>

---
v2 - fix passing not expanded [uz]Image to opentest

 lib/run-opentest |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
lib/run-opentest +9 -2
index d3a04f3..71f9b96 100644
@@ -170,9 +170,16 @@ run_target_side_test() {
         return 1
     fi
 
-    if [ -f $test_dir/temp/board-support/prebuilt-images/uImage-$m.bin ]
+    if [ -f $test_dir/temp/board-support/prebuilt-images/[uz]Image-$m.bin ]
     then
-        kernel=$test_dir/temp/board-support/prebuilt-images/uImage-$m.bin
+        if [ -f $test_dir/temp/board-support/prebuilt-images/zImage-$m.bin ]
+        then
+            kernel=$test_dir/temp/board-support/prebuilt-images/zImage-$m.bin
+        elif [ -f $test_dir/temp/board-support/prebuilt-images/uImage-$m.bin ]
+        then
+            kernel=$test_dir/temp/board-support/prebuilt-images/uImage-$m.bin
+        fi
+
         if [ "$odtb" ]
         then
             dtb="~dtb=$test_dir/temp/board-support/prebuilt-images/$odtb"
Signature · 1 line
1.7.9.5
Acked-by on v2 1/3
#1 lore raw
Quoted 55 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, October 02, 2013 4:19 PM
To: [email protected]
Subject: [meta-arago] [PATCHv2 1/3] run-opentest: handle kernel images in zImage in addition to uImage format

From: Denys Dmytriyenko <[email protected]>

---
v2 - fix passing not expanded [uz]Image to opentest

lib/run-opentest | 11 +++++++++--

1 file changed, 9 insertions(+), 2 deletions(-)
lib/run-opentest +0 -1
index d3a04f3..71f9b96 100644
@@ -170,9 +170,16 @@ run_target_side_test() {
        return 1
    fi
 
-    if [ -f $test_dir/temp/board-support/prebuilt-images/uImage-

$m.bin ]
+ if [ -f $test_dir/temp/board-support/prebuilt-
images/[uz]Image-$m.bin ]
then
- kernel=$test_dir/temp/board-support/prebuilt-
images/uImage-$m.bin
+ if [ -f $test_dir/temp/board-support/prebuilt-
images/zImage-$m.bin ]

lib/run-opentest +2 -0
+        then
+            kernel=$test_dir/temp/board-support/prebuilt-

images/zImage-$m.bin
+ elif [ -f $test_dir/temp/board-support/prebuilt-
images/uImage-$m.bin ]

lib/run-opentest +2 -0
+        then
+            kernel=$test_dir/temp/board-support/prebuilt-

images/uImage-$m.bin

lib/run-opentest +2 -0
+        fi
+
        if [ "$odtb" ]
        then
            dtb="~dtb=$test_dir/temp/board-support/prebuilt-

images/$odtb"
--
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago