ecj recipe is built as initial and as native,
as such, unpackpost is run multiple times over
the same code source. Added check if a move
operation hasn't been already executed.

Signed-off-by: Cristian Iorga <cristian.io...@intel.com>
---
 recipes-core/ecj/libecj-bootstrap.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-core/ecj/libecj-bootstrap.inc 
b/recipes-core/ecj/libecj-bootstrap.inc
index 9e1cc1d..cd9d90f 100644
--- a/recipes-core/ecj/libecj-bootstrap.inc
+++ b/recipes-core/ecj/libecj-bootstrap.inc
@@ -29,7 +29,7 @@ do_unpackpost() {
   rm -rf META-INF
 
   # Move source into separate subdir.
-  if [ -d org ]; then
+  if [ -d org  -a ! -d source/org ]; then
     mv org source/
   fi
   # Remove stuff unneeded for the bootstrap compiler.
-- 
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to