From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by arago-project.org (Postfix) with ESMTPS id 26D0152999 for ; Tue, 8 Dec 2020 20:49:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id 622D540BE2; Tue, 8 Dec 2020 20:49:27 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G6_GNzZmCRKa; Tue, 8 Dec 2020 20:49:27 +0000 (UTC) Received: from mail.denix.org (pool-100-15-86-127.washdc.fios.verizon.net [100.15.86.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id 282AD40AE9; Tue, 8 Dec 2020 20:49:26 +0000 (UTC) Received: by mail.denix.org (Postfix, from userid 1000) id CE0021744FC; Tue, 8 Dec 2020 15:49:25 -0500 (EST) Date: Tue, 8 Dec 2020 15:49:25 -0500 From: Denys Dmytriyenko To: Dan Murphy Message-ID: <20201208204925.GA19155@denix.org> References: <20201208193742.27071-1-dmurphy@ti.com> <20201208202442.GY19155@denix.org> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: meta-arago@arago-project.org Subject: Re: [dunfell/master] [PATCH] external-arm-toolchain: Remove recipe in favor of upstream 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: Tue, 08 Dec 2020 20:49:33 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Dan, You are welcome. The recipe itself is in meta-arm/dunfell now: https://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?h=dunfell&id=316d9318ee56dc1769144507e8ae529b8041ef33 But it may need some other changes in meta-arago recipes or configs... Cross-compiling for the target with ARM toolchain is just the tip of the iceberg and usually is straightforward. Target native compilation and reusing the toolchain for the devkit is where it gets tricky... On the bright side, the upstreaming should help clean up a lot of messy hacks in meta-arago accumulated over the years :) -- Denys On Tue, Dec 08, 2020 at 02:33:40PM -0600, Dan Murphy wrote: > Denys > > Thanks for the guidance. > > I gave the sdk recipe a quick look and that is still needed for the > cross-canadian as that was not pulled into upstream. > > But I need to dig a bit deeper into that recipe. > > So far removing this recipe has allowed the builds to pass for the > toolchain. > > Dan > > On 12/8/20 2:24 PM, Denys Dmytriyenko wrote: > >Dan, > > > >You might want to look into eventually removing external-arm-sdk-toolchain as > >well. > > > >But I would also suggest doing lots of testing of these changes, especially > >when packaging the toolchain for the target and SDK/devkit. As there were some > >adjustments made when upstreaming these recipes to meta-arm earlier, so the > >code there is not 100% identical and some assumptions in meta-arago may no > >longer be true. > > > >Please let me know if you have any questions - I'd be happy to help where I > >can. > > > >Thanks. > > > >Denys > > > > > >On Tue, Dec 08, 2020 at 01:37:42PM -0600, Dan Murphy wrote: > >>The upstream branch has been updated with the contents of this recipe > >>and this bbappend is no longer needed. > >> > >>Commit 0078d68b46bce3197ef54d47b19bb83caf0acdb7 up to and including > >>commit 316d9318ee56dc1769144507e8ae529b8041ef3 in the meta-arm layer. > >> > >>See repo > >>https://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/log/?h=dunfell > >> > >>From: Dan Murphy > >>Signed-off-by: Dan Murphy > >>--- > >> .../meta/external-arm-toolchain.bbappend | 73 ------------------- > >> 1 file changed, 73 deletions(-) > >> delete mode 100644 meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend > >> > >>diff --git a/meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend b/meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend > >>deleted file mode 100644 > >>index 5a51aaa07428..000000000000 > >>--- a/meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend > >>+++ /dev/null > >>@@ -1,73 +0,0 @@ > >>-ORIG_TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + d.getVar('TARGET_OS'), ''][d.getVar('TARGET_OS') == ('' or 'custom')]}" > >>- > >>-do_install_append() { > >>- install -d ${D}${base_sbindir} > >>- cp -a ${TOOLCHAIN_PATH}/${EAT_TARGET_SYS}/libc/${base_sbindir}/ldconfig ${D}${base_sbindir}/ > >>- install -d ${D}${sysconfdir} > >>- echo -e "/lib\n/usr/lib" >> ${D}${sysconfdir}/ld.so.conf > >>- > >>- if [ ${EAT_TARGET_SYS} != ${ORIG_TARGET_SYS} ]; then > >>- ln -sf ${EAT_TARGET_SYS} ${D}${libdir}/${ORIG_TARGET_SYS} > >>- ln -sf ${EAT_TARGET_SYS} ${D}${includedir}/c++/${EAT_VER_GCC}/${ORIG_TARGET_SYS} > >>- mv ${D}${libdir}/gcc/${EAT_TARGET_SYS} ${D}${libdir}/gcc/${ORIG_TARGET_SYS} > >>- ln -sf ${ORIG_TARGET_SYS} ${D}${libdir}/gcc/${EAT_TARGET_SYS} > >>- fi > >>- > >>- ln -sf libatomic.so.1 ${D}${libdir}/libatomic.so > >>- ln -sf libgomp.so.1 ${D}${libdir}/libgomp.so > >>- ln -sf libitm.so.1 ${D}${libdir}/libitm.so > >>- ln -sf libssp.so.0 ${D}${libdir}/libssp.so > >>- ln -sf libstdc++.so.6 ${D}${libdir}/libstdc++.so > >>- ln -sf libubsan.so.1 ${D}${libdir}/libubsan.so > >>- ln -sf libasan.so.5 ${D}${libdir}/libasan.so > >>- ln -sf libgfortran.so.5 ${D}${libdir}/libgfortran.so > >>- > >>- cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ > >>-} > >>- > >>-# Below FILES_* overrides are due to TARGET_SYS -> ORIG_TARGET_SYS move in ${libdir}/gcc > >>-# to enable native compile on the target > >>-FILES_libgcov-staticdev = "${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/libgcov.a" > >>- > >>-FILES_libgfortran-dev = "\ > >>- ${libdir}/libgfortran*.so \ > >>- ${libdir}/libgfortran.spec \ > >>- ${libdir}/libgfortran.la \ > >>- ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/libgfortranbegin.* \ > >>- ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/libcaf_single* \ > >>- ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/finclude/ \ > >>-" > >>- > >>-FILES_gcc-sanitizers = "${libdir}/*.spec ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include/sanitizer/*.h" > >>- > >>-# This is provided by gcc: > >>-# ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include > >>-FILES_libgcc-dev = "\ > >>- ${base_libdir}/libgcc*.so \ > >>- ${@oe.utils.conditional('BASETARGET_SYS', '${ORIG_TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ > >>- ${libdir}/${TARGET_SYS}/${BINV}* \ > >>- ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \ > >>- ${libdir}/gcc/${TARGET_SYS} \ > >>-" > >>- > >>-FILES_libssp-dev = "\ > >>- ${libdir}/libssp*.so \ > >>- ${libdir}/libssp*_nonshared.a \ > >>- ${libdir}/libssp*.la \ > >>- ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include/ssp \ > >>-" > >>- > >>-FILES_libquadmath-dev = "\ > >>- ${libdir}/libquadmath*.so \ > >>- ${libdir}/libquadmath.la \ > >>- ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include/quadmath* \ > >>-" > >>- > >>-FILES_libgomp-dev = "\ > >>- ${libdir}/libgomp*${SOLIBSDEV} \ > >>- ${libdir}/libgomp*.la \ > >>- ${libdir}/libgomp.spec \ > >>- ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include/omp.h \ > >>-" > >>- > >>-INSANE_SKIP_libgcc-dev += "staticdev" > >>-- > >>2.29.2 > >> > >>_______________________________________________ > >>meta-arago mailing list > >>meta-arago@arago-project.org > >>http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > >> > -- Regards, Denys Dmytriyenko PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964 Fingerprint: 25FC E4A5 8A72 2F69 1186 6D76 4209 0272 9A92 C964