summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-08-18 17:31:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 18:05:43 +0100
commit22a653d02880c35d3c9d04811c31aabdf1e69951 (patch)
treebe8358aaf46b845e13535c688ac2a1455fdc91a1 /meta
parentc0dd559088e5e208758196892371c20101cecbd4 (diff)
downloadpoky-22a653d02880c35d3c9d04811c31aabdf1e69951.tar.gz
binconfig-disabled: write an message to stderr to help confused developers
Often configure scripts or Makefiles that use the stub scripts written by binconfig-disabled fail mysteriously with no obvious problem. Attempt to solve this by writing an error to stderr which hopefully makes it to the logs. [ YOCTO #8169 ] (From OE-Core rev: c38acd720b3f6ffbeb544063692eb471dada8593) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/binconfig-disabled.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/binconfig-disabled.bbclass b/meta/classes/binconfig-disabled.bbclass
index 595cd096f5..602a669aa1 100644
--- a/meta/classes/binconfig-disabled.bbclass
+++ b/meta/classes/binconfig-disabled.bbclass
@@ -9,9 +9,10 @@ FILES_${PN}-dev += "${bindir}/*-config"
9 9
10do_install_append () { 10do_install_append () {
11 for x in ${BINCONFIG}; do 11 for x in ${BINCONFIG}; do
12 echo "#!/bin/sh" > ${D}$x
13 # Make the disabled script emit invalid parameters for those configure 12 # Make the disabled script emit invalid parameters for those configure
14 # scripts which call it without checking the return code. 13 # scripts which call it without checking the return code.
14 echo "#!/bin/sh" > ${D}$x
15 echo "echo 'ERROR: $x should not be used, use an alternative such as pkg-config' >&2" >> ${D}$x
15 echo "echo '--should-not-have-used-$x'" >> ${D}$x 16 echo "echo '--should-not-have-used-$x'" >> ${D}$x
16 echo "exit 1" >> ${D}$x 17 echo "exit 1" >> ${D}$x
17 done 18 done