Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6C9EAE00A4F; Tue, 2 Oct 2018 05:29:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [198.47.23.248 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9A580E00950 for ; Tue, 2 Oct 2018 05:29:27 -0700 (PDT) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w92CTRUH120900 for ; Tue, 2 Oct 2018 07:29:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1538483367; bh=5UABZi7cL/2Gb5tiBRoLYo/1JIg0IOiE88eEHRdmcNY=; h=Subject:To:References:From:Date:In-Reply-To; b=hjVTY5Om+8LK/Lg1mwaFxLtpS+ipEjIZavL1mjVDNaGxTT0c183aLMmRRhRVRVeQq 9Y5EThAUCai9cn7e7PShKvdVn1dIrbMbs3NezKx2qRHUofoczMJcpFqgBX4u8PNCCF 5Kp8ar38hvZ7qZRhZQ3OB+X4gMhg5jrA7U5ddCAY= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w92CTRLR028260 for ; Tue, 2 Oct 2018 07:29:27 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 2 Oct 2018 07:29:27 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 2 Oct 2018 07:29:26 -0500 Received: from [158.218.113.191] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w92CTQOv021349 for ; Tue, 2 Oct 2018 07:29:26 -0500 To: References: <1538480167-12075-1-git-send-email-j-stiffler@ti.com> From: Jacob Stiffler Message-ID: Date: Tue, 2 Oct 2018 08:29:26 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <1538480167-12075-1-git-send-email-j-stiffler@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Subject: Re: [ti2018.03/rocko/master][PATCH] ti-cgt-arm: prevent build of existing library X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2018 12:29:28 -0000 Content-Type: multipart/alternative; boundary="------------7BBA97014DF7B76BF79E121A" Content-Language: en-US --------------7BBA97014DF7B76BF79E121A Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit I recently ran into this error, so I sent this out in a hurry to get it fixed. But now I am thinking that it may be better to remove this library in do_configure, similar to base class calls make clean Any suggestions? Thanks, Jake On 10/2/2018 7:36 AM, Jacob Stiffler wrote: > * Prevent a potential error as mklib will return an error if the > library already exists. > * The error encountered is the following: > > | >> ERROR: mklib: destination library .../work/x86_64-linux/ti-cgt-arm-native/16.9.2-r1/ti-cgt-arm-16.9.2/ti-cgt-arm_16.9.2.LTS/lib/rtsv7R4_A_le_v3D16_eabi.lib already exists > | WARNING: .../work/x86_64-linux/ti-cgt-arm-native/16.9.2-r1/temp/run.do_compile.13758:1 exit 1 from 'lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib' > > Signed-off-by: Jacob Stiffler > --- > recipes-ti/devtools/ti-cgt-arm.inc | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/recipes-ti/devtools/ti-cgt-arm.inc b/recipes-ti/devtools/ti-cgt-arm.inc > index b9f7566..e83973b 100644 > --- a/recipes-ti/devtools/ti-cgt-arm.inc > +++ b/recipes-ti/devtools/ti-cgt-arm.inc > @@ -9,7 +9,7 @@ require recipes-ti/includes/ti-paths.inc > > S = "${WORKDIR}/ti-cgt-arm-${PV}" > > -PR = "r1" > +PR = "r2" > > SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}" > > @@ -19,8 +19,12 @@ TI_BIN_UNPK_CMDS = "" > > do_compile_append() { > cd ${S}/ti-cgt-arm_${PV}.LTS > - export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin > - lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib > + > + if [ ! -f "./lib/rtsv7R4_A_le_v3D16_eabi.lib" ] > + then > + export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin > + lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib > + fi > } > > do_install() { --------------7BBA97014DF7B76BF79E121A Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit

I recently ran into this error, so I sent this out in a hurry to get it fixed. But now I am thinking that it may be better to remove this library in do_configure, similar to base class calls make clean

Any suggestions?


Thanks,

Jake

On 10/2/2018 7:36 AM, Jacob Stiffler wrote:
* Prevent a potential error as mklib will return an error if the
  library already exists.
* The error encountered is the following:

| >> ERROR: mklib: destination library .../work/x86_64-linux/ti-cgt-arm-native/16.9.2-r1/ti-cgt-arm-16.9.2/ti-cgt-arm_16.9.2.LTS/lib/rtsv7R4_A_le_v3D16_eabi.lib already exists
| WARNING: .../work/x86_64-linux/ti-cgt-arm-native/16.9.2-r1/temp/run.do_compile.13758:1 exit 1 from 'lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib'

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 recipes-ti/devtools/ti-cgt-arm.inc | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/recipes-ti/devtools/ti-cgt-arm.inc b/recipes-ti/devtools/ti-cgt-arm.inc
index b9f7566..e83973b 100644
--- a/recipes-ti/devtools/ti-cgt-arm.inc
+++ b/recipes-ti/devtools/ti-cgt-arm.inc
@@ -9,7 +9,7 @@ require recipes-ti/includes/ti-paths.inc
 
 S = "${WORKDIR}/ti-cgt-arm-${PV}"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
 
@@ -19,8 +19,12 @@ TI_BIN_UNPK_CMDS = ""
 
 do_compile_append() {
     cd ${S}/ti-cgt-arm_${PV}.LTS
-    export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin
-    lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib
+
+    if [ ! -f "./lib/rtsv7R4_A_le_v3D16_eabi.lib" ]
+    then
+        export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin
+        lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib
+    fi
 }
 
 do_install() {
--------------7BBA97014DF7B76BF79E121A--