[oe-commits] Hongxu Jia : file: add wrapper to nativesdk-file

git at git.openembedded.org git at git.openembedded.org
Sat Oct 18 14:14:36 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 69a3ab38d1c725c2b575065739cae4a3b45015a2
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=69a3ab38d1c725c2b575065739cae4a3b45015a2

Author: Hongxu Jia <hongxu.jia at windriver.com>
Date:   Sat Oct 11 16:59:22 2014 +0800

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 <hongxu.jia at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.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"



More information about the Openembedded-commits mailing list