sudo: Fix case where ${B} != ${S}

Fix out of tree builds by using full path to files in ${S} and remove
cwd assumptions.

(From OE-Core rev: 97dc39e42e95dcadc7bed1aee32db3560e21efe5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2013-03-18 02:05:03 +00:00
parent 95bf5b3f9e
commit 6544a91329
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ inherit autotools
EXTRA_OECONF = "--with-editor=/bin/vi --with-env-editor"
do_configure_prepend () {
if [ ! -e acinclude.m4 ]; then
cat aclocal.m4 > acinclude.m4
if [ ! -e ${S}/acinclude.m4 ]; then
cat ${S}/aclocal.m4 > ${S}/acinclude.m4
fi
}