Skip to contentSkip to conversation

ltp-ddt: Skip mv of kernel files if no files found

PATCH In review Sam Nelson 2 participants 4 messages Apr 17, 2015 – May 4, 2015

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 ltp-ddt: Skip mv of kernel files if no files found

- Install was failing if there are no modules for certain platforms

---
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb +1 -1
index 68e1a3c..609b344 100644
@@ -87,7 +87,7 @@ do_install() {
     oe_runmake install
     install -d ${D}${datadir}
     install -d ${D}${kmoddir}
-    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
+    find ${D}${LTPROOT}/testcases/bin/ddt/*.ko && mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
 }
 
 # do_make_scripts should be a separate task for the lock to work
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 12 lines · Sam Nelson

- Install was failing if there are no modules for certain platforms

---
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb +0 -0
index 68e1a3c..609b344 100644

meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb do_install() { · line 90

Quoted 5 lines
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb +1 -1
@@ -87,7 +87,7 @@ do_install() {
     oe_runmake install
     install -d ${D}${datadir}
     install -d ${D}${kmoddir}
-    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
+    find ${D}${LTPROOT}/testcases/bin/ddt/*.ko && mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}

Should probably do "mv || true" instead...

Quoted 10 lines
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb +0 -0
 }
 
 # do_make_scripts should be a separate task for the lock to work
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#2 lore raw
Quoted 8 lines · Denys Dmytriyenko
Quoted 7 lines · Sam Nelson

- Install was failing if there are no modules for certain platforms

---
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb do_install() { · line 90

Quoted 10 lines
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb +1 -1
index 68e1a3c..609b344 100644
@@ -87,7 +87,7 @@ do_install() {
     oe_runmake install
     install -d ${D}${datadir}
     install -d ${D}${kmoddir}
-    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
+    find ${D}${LTPROOT}/testcases/bin/ddt/*.ko && mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}

Should probably do "mv || true" instead...

Sam,

Do you have any issues doing mv||true construct or do you want to stick with the find command for any reason?

Signature · 1 line
Denys
#3 lore raw
Quoted 35 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, April 22, 2015 3:15 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] ltp-ddt: Skip mv of kernel files if no files found

Quoted 8 lines · Denys Dmytriyenko
Quoted 7 lines · Sam Nelson

- Install was failing if there are no modules for certain platforms

---
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb do_install() { · line 91

Quoted 13 lines

diff --git a/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb b/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb index 68e1a3c..609b344 100644

meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb +2 -1
@@ -87,7 +87,7 @@ do_install() {
     oe_runmake install
     install -d ${D}${datadir}
     install -d ${D}${kmoddir}
-    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
+    find ${D}${LTPROOT}/testcases/bin/ddt/*.ko && mv
+ ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}

Should probably do "mv || true" instead...

Quoted 4 lines

Sam,

Do you have any issues doing mv||true construct or do you want to stick with the find command for any reason?

I am fine with this. Thanks.

Quoted 3 lines

--
Denys