From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "Frager, Neal" <neal.frager@amd.com>
Cc: "Simek, Michal" <michal.simek@amd.com>,
"Erkiaga Elorza, Ibai" <ibai.erkiaga-elorza@amd.com>,
"luca.ceresoli@bootlin.com" <luca.ceresoli@bootlin.com>,
Neal Frager via buildroot <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH v8 01/10] package/binutils-bare-metal: new package
Date: Thu, 14 Dec 2023 10:15:05 +0100 [thread overview]
Message-ID: <20231214101505.3dcac5e7@windsurf> (raw)
In-Reply-To: <D15E2E86-61C5-4344-8669-FDE201516BF5@amd.com>
Hello Neal,
(It would be good if you could configure your e-mail client to wrap lines).
On Thu, 14 Dec 2023 08:12:35 +0000
"Frager, Neal" <neal.frager@amd.com> wrote:
> > Thing is you will have to explain very clearly what we need a
> > different value, and I'm not sure we have such a clear explanation
> > (at least I don't have it).
>
> The clear explanation is that gcc does not find newlib in the sysroot
> directory without this change. I don’t know how it works with a
> sysroot as currently written.
Well, but it's like that in newlib, and it's been like that for years,
so it must work for others. For example, Crosstool-NG does not seem to
be patching newlib on this aspect, yet it is able to generate
functional bare-metal toolchains, somehow.
> >> If there is a reason, perhaps they can help us with implementing a
> >> configurable solution, as you suggest. In any case, I think
> >> working to upstream a proper solution is still better than my
> >> fixup solution. I only implemented the fixup solution as it was
> >> quicker than spending many hours learning the newlib configure
> >> script. Now that you have found the root of the problem, I think
> >> patching it upstream is the best option.
> >
> > Many hours to add a --with-option? It should take 10 minutes or so.
>
> 10 minutes now that we know exactly where the issue is coming from.
> My comment about many hours was based on not knowing any patch
> already existed. Creating a patch to the configure script from
> scratch would have taken me a few hours. This is why I did the fix
> up.
I'm not sure we're talking about the same thing. I'm not talking about
the time needed to find the root cause of the issue, but rather the
time to write a patch that actually has a chance to be accepted
upstream. The patch that you have for now has absolutely 0 chances of
being accepted upstream, as it breaks existing behavior that presumably
works for users today.
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-12-14 9:15 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-04 7:34 [Buildroot] [PATCH v8 01/10] package/binutils-bare-metal: new package Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 02/10] package/gcc-bare-metal: " Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 03/10] package/newlib-bare-metal: " Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 04/10] toolchain/toolchain-bare-metal-buildroot: new toolchain Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 05/10] boot/zynqmp-firmware: new boot firmware Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 06/10] boot/uboot.mk: new zynqmp pmufw build option Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 07/10] configs/zynqmp*: build pmufw source Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 08/10] boot/versal-firmware: new boot firmware Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 09/10] configs/versal_vck190_defconfig: build plm and psmfw source Neal Frager via buildroot
2023-12-04 7:34 ` [Buildroot] [PATCH v8 10/10] package/versal-firmware: remove package Neal Frager via buildroot
2023-12-13 22:28 ` [Buildroot] [PATCH v8 01/10] package/binutils-bare-metal: new package Thomas Petazzoni via buildroot
2023-12-14 5:29 ` Frager, Neal via buildroot
2023-12-14 7:41 ` Thomas Petazzoni via buildroot
2023-12-14 7:51 ` Frager, Neal via buildroot
2023-12-14 7:58 ` Thomas Petazzoni via buildroot
2023-12-14 8:12 ` Frager, Neal via buildroot
2023-12-14 9:15 ` Thomas Petazzoni via buildroot [this message]
2023-12-14 14:43 ` Frager, Neal via buildroot
2023-12-15 9:40 ` Frager, Neal via buildroot
2023-12-14 7:10 ` Frager, Neal via buildroot
2023-12-14 7:48 ` Thomas Petazzoni via buildroot
2023-12-14 7:57 ` Frager, Neal via buildroot
2024-01-12 7:20 ` Frager, Neal via buildroot
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=20231214101505.3dcac5e7@windsurf \
--to=buildroot@buildroot.org \
--cc=ibai.erkiaga-elorza@amd.com \
--cc=luca.ceresoli@bootlin.com \
--cc=michal.simek@amd.com \
--cc=neal.frager@amd.com \
--cc=thomas.petazzoni@bootlin.com \
/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.