diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-22 10:59:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-16 15:31:40 +0100 |
commit | 3476a49b10093c58b2f89e3d9a8527224f1bd7f6 (patch) | |
tree | 369d23a1d434e43284ea2bdffa318f5408b13014 /meta/classes/binconfig-disabled.bbclass | |
parent | 3a88df915831f2fd5e46ed71b21190398d1de0f1 (diff) | |
download | poky-3476a49b10093c58b2f89e3d9a8527224f1bd7f6.tar.gz |
binconfig-disabled: Add class and use
This adds a binconfig-disabled class which can be used by recipes where
a -config file is installed but we wish to disable it and just rely on
the .pc files instead.
Rather than simply deleting it, we make the script "exit 1" so that it
can be found in PATH and raise a build error rather than something
silently falling back to the build system for example.
Rather than randomly finding -config files, this adds in the
specification of a list of binconfig scripts which is more deterministic
and maintainable moving forward.
This patch converts various users in OE-Core to use this, a world build
of OE-Core tests out ok with this change. There will likely be issues in
other layers however, hence this being a RFT.
(From OE-Core rev: 5870bd272b0b077d0826fb900b251884c1c05061)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | } | ||