[OE-core] [PATCH 1/1] file: add wrapper to nativesdk-file

Hongxu Jia hongxu.jia at windriver.com
Sat Oct 11 09:07:35 UTC 2014


"file" command in exported SDK doesn't work:
...
$ file sysroots/
file: could not find any valid magic files!
...

In commit 7943338d1fea2b9e49b02f1c9f68b4a47188b883, it added wrapper
to file-native. Do the same thing for nativesdk-file.

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
 meta/recipes-devtools/file/file_5.18.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/file/file_5.18.bb b/meta/recipes-devtools/file/file_5.18.bb
index f2f8d03..9068b93 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"
-- 
1.9.1




More information about the Openembedded-core mailing list