]> code.ossystems Code Review - openembedded-core.git/commitdiff
mtools: fix and enable parallel build
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 30 Jan 2015 01:33:35 +0000 (17:33 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Feb 2015 22:26:10 +0000 (22:26 +0000)
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@windriver.com>
meta/recipes-devtools/mtools/mtools_3.9.9.bb
meta/recipes-devtools/mtools/mtools_4.0.18.bb

index f6dd3361c9159a1c237afc8e84e233fde3b679e9..9cd1c5726ce0d16483dadef2d0a374794ce0f368 100644 (file)
@@ -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}
+}
index 6c71f0ab1f7308c8402d481fd1ff78ccc5cfb546..b2cfe9ad9af21ca3cd87a4cfcfa939cbaa98ed9e 100644 (file)
@@ -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}
+}