From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AB280E00CE6; Fri, 22 Feb 2019 12:23:06 -0800 (PST) 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, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [198.47.23.249 listed in list.dnswl.org] * -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 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DD5A9E00BAB for ; Fri, 22 Feb 2019 12:23:05 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1MKN5KM007149 for ; Fri, 22 Feb 2019 14:23:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1550866985; bh=UQTCQrfrcgtjFh6qrgFfARcSAHQL989vL0ZlqsricAg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=GGNCysC1n2AYEbVr2hmPwEHQidc8Kr5Ld/UHHCKWJov98031ha3JxSZc18hCjA1o+ cmhMoBqvJWDmTb7VDNirlfMpaH4oWze4H5WFEsFhycj8LFv4k8zd4VTyw8Bk93zTUx CvPfNE5dUwUl1WMnxlw/MgqNsUTPHt6Z33bgZ2gU= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1MKN5cf104308 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 22 Feb 2019 14:23:05 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 22 Feb 2019 14:23:04 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 22 Feb 2019 14:23:04 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1MKN4cA022578; Fri, 22 Feb 2019 14:23:04 -0600 Date: Fri, 22 Feb 2019 15:23:04 -0500 From: Denys Dmytriyenko To: Jacob Stiffler Message-ID: <20190222202303.GD19654@beryl> References: <1550671926-8313-1-git-send-email-j-stiffler@ti.com> <20190222022950.GD16391@beryl> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: meta-ti@yoctoproject.org Subject: Re: [rocko/master][PATCH] gcc-arm-none-eabi: extend to nativesdk class 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: Fri, 22 Feb 2019 20:23:06 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Fri, Feb 22, 2019 at 12:12:44PM -0500, Jacob Stiffler wrote: > > On 2/21/2019 9:29 PM, Denys Dmytriyenko wrote: > >On Wed, Feb 20, 2019 at 09:12:06AM -0500, Jacob Stiffler wrote: > >>Signed-off-by: Jacob Stiffler > >>--- > >> ...1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} | 16 ++++++++++++++-- > >> 1 file changed, 14 insertions(+), 2 deletions(-) > >> rename recipes-ti/devtools/{gcc-arm-none-eabi-native_6-2017-q1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} (67%) > >> > >>diff --git a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb > >>similarity index 67% > >>rename from recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb > >>rename to recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb > >>index 1140f27..c10ee16 100644 > >>--- a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb > >>+++ b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb > >>@@ -3,7 +3,6 @@ LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" > >> LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=c224e429f53a1a6ce70bf8986ea2990b" > >>-inherit native > >> require recipes-ti/includes/ti-paths.inc > >> SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2;name=gcc-arm-none" > >>@@ -13,6 +12,17 @@ SRC_URI[gcc-arm-none.sha256sum] = "e7aad2579f02e3b095c6d7899ca5e6a70cfa9b8a8cbd6 > >> S = "${WORKDIR}/gcc-arm-none-eabi-6-2017-q1-update" > >>+# only x86_64 is supported > >>+python __anonymous() { > >>+ host_arch = d.getVar("HOST_ARCH") > >>+ > >>+ if host_arch != "x86_64": > >>+ pkgn = d.getVar("PN") > >>+ pkgv = d.getVar("PV") > >>+ > >>+ raise bb.parse.SkipPackage("%s-%s ONLY supported for x86_64 target" % (pkgn, pkgv)) > >>+} > >>+ > >I've been thinking about this one. > >Would it be better to have a common .inc file and 2 one-line native and > >nativesdk recipes that include that .inc file, and avoid __anonymous() > >function altogether? > > > > Would COMPATIBLE_HOST be more appropriate here? It appears that it will have > the same effect as this anonymous function. Fine with me, thanks. > >> do_install() { > >> install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE} > >> cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE} > >>@@ -20,4 +30,6 @@ do_install() { > >> FILES_${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*" > >>-INSANE_SKIP_${PN} = "already-stripped" > >>+INSANE_SKIP_${PN} = "already-stripped libdir staticdev" > >>+ > >>+BBCLASSEXTEND = "native nativesdk" > >>-- > >>2.7.4 > >> > >>-- > >>_______________________________________________ > >>meta-ti mailing list > >>meta-ti@yoctoproject.org > >>https://lists.yoctoproject.org/listinfo/meta-ti