diff options
Diffstat (limited to 'meta/classes/binconfig-disabled.bbclass')
-rw-r--r-- | meta/classes/binconfig-disabled.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/binconfig-disabled.bbclass b/meta/classes/binconfig-disabled.bbclass new file mode 100644 index 0000000000..1308358fec --- /dev/null +++ b/meta/classes/binconfig-disabled.bbclass | |||
@@ -0,0 +1,12 @@ | |||
1 | # | ||
2 | # Class to disable binconfig files instead of installing them | ||
3 | # | ||
4 | |||
5 | FILES_${PN}-dev += "${bindir}/*-config" | ||
6 | |||
7 | do_install_append () { | ||
8 | for x in ${BINCONFIG}; do | ||
9 | echo "#!/bin/sh" > ${D}$x | ||
10 | echo "exit 1" >> ${D}$x | ||
11 | done | ||
12 | } | ||