mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 00:38:45 +01:00
The ">" should be ">>". We had got something like the following in pcap-config: echo '--should-not-have-used-/usr/bin/pcap-config' exit 1 (Lacks of #!/bin/sh) (From OE-Core rev: d4adf9ac1b8318d4eb3f1c8dd82bbf04c6908eb5) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
757 B
Plaintext
29 lines
757 B
Plaintext
#
|
|
# Class to disable binconfig files instead of installing them
|
|
#
|
|
|
|
# The list of scripts which should be disabled.
|
|
BINCONFIG ?= ""
|
|
|
|
FILES_${PN}-dev += "${bindir}/*-config"
|
|
|
|
do_install_append () {
|
|
for x in ${BINCONFIG}; do
|
|
echo "#!/bin/sh" > ${D}$x
|
|
# Make the disabled script emit invalid parameters for those configure
|
|
# scripts which call it without checking the return code.
|
|
echo "echo '--should-not-have-used-$x'" >> ${D}$x
|
|
echo "exit 1" >> ${D}$x
|
|
done
|
|
}
|
|
|
|
SYSROOT_PREPROCESS_FUNCS += "binconfig_disabled_sysroot_preprocess"
|
|
|
|
binconfig_disabled_sysroot_preprocess () {
|
|
for x in ${BINCONFIG}; do
|
|
configname=`basename $x`
|
|
install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
|
|
install ${D}$x ${SYSROOT_DESTDIR}${bindir_crossscripts}
|
|
done
|
|
}
|