file: add wrapper to nativesdk-file

Backport commit 69a3ab3 to 'daisy' which uses a different version of
file package.

Author of the original patch: Hongxu Jia <hongxu.jia@windriver.com>

(From OE-Core rev: 4bd4da1e1433ae64720f59d48188ecd1960dac28)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Javier Viguera
2014-10-20 12:13:08 +02:00
committed by Richard Purdie
parent e3dd621197
commit 1e668ccf1a

View File

@@ -32,5 +32,9 @@ do_install_append_class-native() {
--magic-file ${datadir}/misc/magic.mgc
}
do_install_append_class-nativesdk() {
create_cmdline_wrapper ${D}/${bindir}/file \
--magic-file ${datadir}/misc/magic.mgc
}
BBCLASSEXTEND = "native nativesdk"