From: "Denys Dmytriyenko" <denis@denix.org>
To: meta-arm@lists.yoctoproject.org
Cc: Jon Mason <jdmason@kudzu.us>
Subject: Re: [meta-arm] [PATCH 1/4] tcmode-external-arm: drop unnecessary CPPFLAGS and LDFLAGS adjustments
Date: Fri, 1 May 2020 13:47:05 -0400 [thread overview]
Message-ID: <20200501174705.GY11927@denix.org> (raw)
In-Reply-To: <20200501140314.GC13726@kudzu.us>
On Fri, May 01, 2020 at 10:03:15AM -0400, Jon Mason wrote:
> On Fri, May 01, 2020 at 06:46:08AM +0000, Diego Sueiro wrote:
> > > -----Original Message-----
> > > From: meta-arm@lists.yoctoproject.org <meta-arm@lists.yoctoproject.org>
> > > On Behalf Of Denys Dmytriyenko via lists.yoctoproject.org
> > > Sent: 30 April 2020 05:10
> > > To: meta-arm@lists.yoctoproject.org
> > > Cc: Denys Dmytriyenko <denys@ti.com>
> > > Subject: [meta-arm] [PATCH 1/4] tcmode-external-arm: drop unnecessary
> > > CPPFLAGS and LDFLAGS adjustments
> > >
> > > From: Denys Dmytriyenko <denys@ti.com>
> > >
> > > These were there from the very beginning and they were used as crutches to
> > > prop up the build by pointing directly to the external toolchain location, in
> > > case early versions of external-arm-toolchain missed staging/packaging
> > > something from there.
> > >
> > > First of all, it is unnecessary to adjust CPPFLAGS and LDFLAGS in this way, as
> > > external-arm-toolchain is supposed to stage everything needed from the
> > > toolchain in internal sysroot.
> > >
> > > And second, these settings can be harmful and conflict with component's
> > > own CPPFLAGS/LDFLAGS. For example, OpenCV 4.1 fails to link internal
> > > libraries because of incorrect -Wl,-rpath-link passed down the build.
> > >
> > > After dropping these, I was able to verify that everything still builds, including
> > > BSP, Wayland/Weston, Qt5, gstreamer, OpenCV, etc for Aarch64 and Armv7a
> > > platforms.
> > >
> > > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> >
> > Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
>
> Series (except the patch you said to ignore) pulled into the master branch.
Thanks, Jon!
I don't see them in master, though:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/
Denys
> > > ---
> > > meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc | 2 --
> > > 1 file changed, 2 deletions(-)
> > >
> > > diff --git a/meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc
> > > b/meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc
> > > index 8ddaf53..9171380 100644
> > > --- a/meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc
> > > +++ b/meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc
> > > @@ -44,8 +44,6 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-
> > > arm-toolchain"
> > > PREFERRED_PROVIDER_glibc-mtrace = "external-arm-toolchain"
> > > PREFERRED_PROVIDER_libc-mtrace = "external-arm-toolchain"
> > > PREFERRED_PROVIDER_virtual/linux-libc-headers = "external-arm-toolchain"
> > > -TARGET_CPPFLAGS_prepend = " -
> > > isystem${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include "
> > > -TARGET_LDFLAGS_prepend = " -
> > > L${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/lib -Wl,-rpath-
> > > link,${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/lib "
> > >
> > > TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_HOST}"
> > >
> > > --
> > > 2.7.4
> >
>
> >
>
>
prev parent reply other threads:[~2020-05-01 17:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 4:10 [PATCH 1/4] tcmode-external-arm: drop unnecessary CPPFLAGS and LDFLAGS adjustments Denys Dmytriyenko
2020-04-30 4:10 ` [PATCH 2/4] external-arm-toolchain: drop unnecessary binutils-cross-${TARGET_ARCH} in PROVIDES Denys Dmytriyenko
2020-04-30 10:02 ` [meta-arm] " Sumit Garg
2020-05-01 6:47 ` Diego Sueiro
2020-04-30 4:10 ` [PATCH 3/4] external-arm-toolchain: add INHIBIT_AUTOTOOLS_DEPS Denys Dmytriyenko
2020-04-30 10:24 ` [meta-arm] " Sumit Garg
2020-04-30 20:37 ` Denys Dmytriyenko
2020-04-30 4:10 ` [PATCH 4/4] external-arm-toolchain: drop unnecessary RDEPENDS on bash Denys Dmytriyenko
2020-04-30 10:41 ` [meta-arm] " Sumit Garg
2020-05-01 6:50 ` Diego Sueiro
2020-04-30 9:51 ` [meta-arm] [PATCH 1/4] tcmode-external-arm: drop unnecessary CPPFLAGS and LDFLAGS adjustments Sumit Garg
2020-05-01 6:46 ` Diego Sueiro
2020-05-01 14:03 ` Jon Mason
2020-05-01 17:47 ` Denys Dmytriyenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200501174705.GY11927@denix.org \
--to=denis@denix.org \
--cc=jdmason@kudzu.us \
--cc=meta-arm@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.