From 4ec82250945bc8e2f3e8d246bcba2cfede933773 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Thu, 29 Jan 2015 17:33:35 -0800 Subject: mtools: fix and enable parallel build 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 --- 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(-) (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/mtools/mtools_3.9.9.bb b/meta/recipes-devtools/mtools/mtools_3.9.9.bb index f6dd3361c9..9cd1c5726c 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 6c71f0ab1f..b2cfe9ad9a 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} +} -- cgit 1.2.3-korg