From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by arago-project.org (Postfix) with ESMTPS id B6D1F52A19 for ; Thu, 15 Oct 2015 12:31:28 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id t9FCVRBp024246 for ; Thu, 15 Oct 2015 07:31:27 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t9FCVREx019942 for ; Thu, 15 Oct 2015 07:31:27 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Thu, 15 Oct 2015 07:31:27 -0500 Received: from [10.218.109.201] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t9FCVRGb028584; Thu, 15 Oct 2015 07:31:27 -0500 Message-ID: <561F9C9F.6060002@ti.com> Date: Thu, 15 Oct 2015 08:31:27 -0400 From: Jacob Stiffler User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Denys Dmytriyenko References: <1444398420-20954-1-git-send-email-j-stiffler@ti.com> <20151013172150.GI28164@edge> <561D4C13.80700@ti.com> <20151014173035.GN28164@edge> In-Reply-To: <20151014173035.GN28164@edge> Cc: meta-arago@arago-project.org Subject: Re: [PATCH] unshallow-repositories: Fix for 64-bit nativesdk X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2015 12:31:30 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit On 10/14/2015 1:30 PM, Denys Dmytriyenko wrote: > On Tue, Oct 13, 2015 at 02:23:15PM -0400, Jacob Stiffler wrote: >> >> On 10/13/2015 1:21 PM, Denys Dmytriyenko wrote: >>> On Fri, Oct 09, 2015 at 09:47:00AM -0400, Jacob Stiffler wrote: >>>> * Use SDKMACHINE to obtain the location of the nativesdk git >>>> executable. >>>> >>>> Signed-off-by: Jacob Stiffler >>>> --- >>>> .../unshallow-repositories/unshallow-repositories.sh | 2 +- >>>> .../unshallow-repositories/unshallow-repositories_1.0.bb | 5 ++++- >>>> 2 files changed, 5 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh >>>> index f20a9b5..61bdb88 100755 >>>> --- a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh >>>> +++ b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh >>>> @@ -35,7 +35,7 @@ >>>> install_dir="__SDK_INSTALL_DIR__" >>>> # Find git binary within the host native bin directory >>>> -sdk_git_bin="$install_dir/linux-devkit/sysroots/i*/usr/bin/git" >>> .../linux-devkit/sysroots/*86*-linux/usr/bin/git ? >> That should work too. If that method is preferred, I'll send out a v2. > It's not that it's preferred, but that is what tisdk-image.bbclass uses now. > Either way is fine - your way is more robust, but is limited to a specific > devkit sysroot. If that's fine with you, I can push it as is. I'll take your suggestion so that the script does not need to be updated within the recipe. > >>>> +sdk_git_bin="$install_dir/linux-devkit/sysroots/__SDKMACHINE__*/usr/bin/git" >>>> sdk_git_bin=`which $sdk_git_bin` >>>> if [ "$sdk_git_bin" = "" ] >>>> diff --git a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb >>>> index f1ea414..12fd4f2 100644 >>>> --- a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb >>>> +++ b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb >>>> @@ -4,12 +4,15 @@ LIC_FILES_CHKSUM = "file://../unshallow-repositories.sh;beginline=3;endline=19;m >>>> SRC_URI = "file://unshallow-repositories.sh" >>>> -PR = "r0" >>>> +PR = "r1" >>>> do_install () { >>>> install -d ${D}/ >>>> install -d ${D}/bin >>>> install -m 0755 ${WORKDIR}/unshallow-repositories.sh ${D}/bin >>>> + >>>> + sed -i -e "s|__SDKMACHINE__|${SDKMACHINE}|g" \ >>>> + ${D}/bin/unshallow-repositories.sh >>>> } >>>> FILES_${PN} = "/*" >>>> -- >>>> 1.9.1 >>>> >>>> _______________________________________________ >>>> meta-arago mailing list >>>> meta-arago@arago-project.org >>>> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago