From 69a3ab38d1c725c2b575065739cae4a3b45015a2 Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Sat, 11 Oct 2014 16:59:22 +0800 Subject: file: add wrapper to nativesdk-file "file" command in exported SDK doesn't work: ... $ file sysroots/ file: could not find any valid magic files! ... In oe-core commit 68d548cbae729eaea8ce1403dc95ff63c4a7375c, it added wrapper to file-native. Do the same thing for nativesdk-file. Signed-off-by: Hongxu Jia Signed-off-by: Ross Burton --- meta/recipes-devtools/file/file_5.18.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta') diff --git a/meta/recipes-devtools/file/file_5.18.bb b/meta/recipes-devtools/file/file_5.18.bb index f2f8d032e2..9068b9314a 100644 --- a/meta/recipes-devtools/file/file_5.18.bb +++ b/meta/recipes-devtools/file/file_5.18.bb @@ -27,4 +27,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" -- cgit 1.2.3-korg