[OE-core] [PATCH 05/12] mtools: fix and enable parallel build

Robert Yang liezhi.yang at windriver.com
Fri Feb 13 08:15:29 UTC 2015


Fixed do_install error:
mkdir: cannot create directory `/path/to/image/usr': File exists
mkdir: cannot create directory `/path/to/image/usr/share': File exists

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
 meta/recipes-devtools/mtools/mtools_3.9.9.bb  |    8 ++++++--
 meta/recipes-devtools/mtools/mtools_4.0.18.bb |    8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-devtools/mtools/mtools_3.9.9.bb b/meta/recipes-devtools/mtools/mtools_3.9.9.bb
index f6dd336..9cd1c57 100644
--- a/meta/recipes-devtools/mtools/mtools_3.9.9.bb
+++ b/meta/recipes-devtools/mtools/mtools_3.9.9.bb
@@ -44,6 +44,10 @@ inherit autotools texinfo
 
 EXTRA_OECONF = "--without-x"
 
-PARALLEL_MAKEINST = ""
-
 BBCLASSEXTEND = "native nativesdk"
+
+do_install_prepend () {
+    # Create bindir to fix parallel installation issues
+    mkdir -p ${D}/${bindir}
+    mkdir -p ${D}/${datadir}
+}
diff --git a/meta/recipes-devtools/mtools/mtools_4.0.18.bb b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
index 6c71f0a..b2cfe9a 100644
--- a/meta/recipes-devtools/mtools/mtools_4.0.18.bb
+++ b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
@@ -35,6 +35,10 @@ inherit autotools texinfo
 
 EXTRA_OECONF = "--without-x"
 
-PARALLEL_MAKEINST = ""
-
 BBCLASSEXTEND = "native nativesdk"
+
+do_install_prepend () {
+    # Create bindir to fix parallel installation issues
+    mkdir -p ${D}/${bindir}
+    mkdir -p ${D}/${datadir}
+}
-- 
1.7.9.5




More information about the Openembedded-core mailing list