mirror of
git://git.yoctoproject.org/poky.git
synced 2025-08-22 00:42:05 +02:00

This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
31 lines
873 B
Plaintext
31 lines
873 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
|
|
# Make the disabled script emit invalid parameters for those configure
|
|
# scripts which call it without checking the return code.
|
|
echo "#!/bin/sh" > ${D}$x
|
|
echo "echo 'ERROR: $x should not be used, use an alternative such as pkg-config' >&2" >> ${D}$x
|
|
echo "echo '--should-not-have-used-$x'" >> ${D}$x
|
|
echo "exit 1" >> ${D}$x
|
|
chmod +x ${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
|
|
}
|