coreutils: Fix out of tree builds
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Mar 2013 23:27:14 +0000 (23:27 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Mar 2013 10:40:56 +0000 (10:40 +0000)
(From OE-Core rev: 29a6810aad27e049577d2d66690ba74f92dd5211)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/coreutils/coreutils_8.21.bb

index e789f59..88561c7 100644 (file)
@@ -39,6 +39,11 @@ base_bindir_progs = "cat chgrp chmod chown cp date dd echo false kill ln ls mkdi
 
 sbindir_progs= "chroot"
 
+# Deal with a separate builddir failure if src doesn't exist when creating version.c/version.h
+do_compile_prepend () {
+       mkdir -p ${B}/src
+}
+
 do_install_append() {
        for i in df mktemp base64; do mv ${D}${bindir}/$i ${D}${bindir}/$i.${BPN}; done