diff options
Diffstat (limited to 'meta/classes/binconfig-disabled.bbclass')
-rw-r--r-- | meta/classes/binconfig-disabled.bbclass | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/classes/binconfig-disabled.bbclass b/meta/classes/binconfig-disabled.bbclass deleted file mode 100644 index 096b670e12..0000000000 --- a/meta/classes/binconfig-disabled.bbclass +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | # | ||
2 | # Class to disable binconfig files instead of installing them | ||
3 | # | ||
4 | |||
5 | # The list of scripts which should be disabled. | ||
6 | BINCONFIG ?= "" | ||
7 | |||
8 | FILES_${PN}-dev += "${bindir}/*-config" | ||
9 | |||
10 | do_install_append () { | ||
11 | for x in ${BINCONFIG}; do | ||
12 | # Make the disabled script emit invalid parameters for those configure | ||
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 | ||
16 | echo "echo '--should-not-have-used-$x'" >> ${D}$x | ||
17 | echo "exit 1" >> ${D}$x | ||
18 | chmod +x ${D}$x | ||
19 | done | ||
20 | } | ||
21 | |||
22 | SYSROOT_PREPROCESS_FUNCS += "binconfig_disabled_sysroot_preprocess" | ||
23 | |||
24 | binconfig_disabled_sysroot_preprocess () { | ||
25 | for x in ${BINCONFIG}; do | ||
26 | configname=`basename $x` | ||
27 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} | ||
28 | install ${D}$x ${SYSROOT_DESTDIR}${bindir_crossscripts} | ||
29 | done | ||
30 | } | ||