From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id DF2CB718D5 for ; Sat, 11 Oct 2014 09:20:33 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id s9B9KYCW024065 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Sat, 11 Oct 2014 02:20:34 -0700 (PDT) Received: from [128.224.162.141] (128.224.162.141) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.174.1; Sat, 11 Oct 2014 02:20:33 -0700 Message-ID: <5438F663.8090303@windriver.com> Date: Sat, 11 Oct 2014 17:20:35 +0800 From: Rongqing Li User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Hongxu Jia References: In-Reply-To: Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH 1/1] file: add wrapper to nativesdk-file X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2014 09:20:34 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 10/11/2014 05:07 PM, Hongxu Jia wrote: > "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. TA; but please add commit title after commit id. and make sure the commit id can be found in oe-core. -Roy > > Signed-off-by: Hongxu Jia > --- > 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" > -- Best Reagrds, Roy | RongQing Li