[Buildroot] [PATCH v2 3/6] package/riscv64-elf-toolchain: new package
Peter Korsgaard
peter at korsgaard.com
Mon May 3 07:09:01 UTC 2021
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at bootlin.com> writes:
> Hello,
> On Mon, 03 May 2021 08:17:33 +0200
> Peter Korsgaard <peter at korsgaard.com> wrote:
>> Out of interest, why is that? For the ARM32 case it was a question of
>> 32bit / 64bit, but that does not seem to be the issue here?
>>
>> Just crappy firmware or are there any deeper differences between a bare
>> metal and Linux toolchain on riscv64?
> It is not yet 100% sure what's going on. The firmware clearly doesn't
> build with a Linux toolchain. I've done a bit of work to try to get it
> to build, by adding -ffrestanding -nostdinc, but it does include a few
> standard headers (stdint.h for example). Once this was fixed, the build
> system of the firmware uses a specific gcc spec file, called nano.spec,
> which isn't available except in their bare-metal toolchain.
> So for now, I opened a bug report at
> https://github.com/starfive-tech/beagle_ddrlnit/issues/4, and decided
> to go on with building this with the recommended bare-metal toolchain.
Ok, thanks for the description.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list