]> code.ossystems Code Review - openembedded-core.git/commitdiff
bash ptest: Sed away the Makefile dependency to remove error messages.
authorBjörn Stenberg <bjst@enea.com>
Mon, 24 Jun 2013 07:45:52 +0000 (09:45 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jun 2013 16:43:42 +0000 (17:43 +0100)
The bash Makefile defines a dependency on itself and tries to run configure,
causing error messages when running ptest on target:

make: *** No rule to make target `configure.in', needed by `configure'.
make: *** No rule to make target `aclocal.m4', needed by `configure'.
make: *** No rule to make target `config.h.in', needed by `configure'.
make: *** No rule to make target `Makefile.in', needed by `Makefile'.
make: Failed to remake makefile `Makefile'.

This patch edits out this dependency in the Makefile installed for ptest,
to get rid of these messages.

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-extended/bash/bash-4.2/run-ptest
meta/recipes-extended/bash/bash.inc

index 66f1eee543bcc71a1e1ad2816b14892f12ba3378..8dd3b9981dbddaad057789ed3c93a81934a3e430 100644 (file)
@@ -1,2 +1,2 @@
 #!/bin/sh
-echo Makefile: | make -f Makefile -f - -k THIS_SH=/bin/bash BUILD_DIR=. runtest
+make -k THIS_SH=/bin/bash BUILD_DIR=. runtest
index c619f824e9c178bfc77dc891b5b3bf0f7952afb4..2f4519cdda15a5a91a4e636d682ec49f111d14e2 100644 (file)
@@ -40,6 +40,7 @@ do_install_append () {
 do_install_ptest () {
        make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test
        cp ${B}/Makefile ${D}${PTEST_PATH}
+        sed -i 's/^Makefile/_Makefile/' ${D}${PTEST_PATH}/Makefile
 }
 
 pkg_postinst_${PN} () {