tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ESP32 toolchains



Frédéric Fauberteau <triaxx%netbsd.org@localhost> writes:

> I have the impression that the cross/xtensa-esp-elf-{binutils,gcc}
> toolchain doesn't allow building a valid image for an ESP32 chip. I

Someone pointed out that compilers with multiple targets need -mcpu or
some such.   Have you determined that this doesn't work with our
existing package?

> would like to try building a package in wip inspired by
> https://cgit.freebsd.org/ports/tree/devel/xtensa-esp-elf to provide
> toochains for {esp32,esp32s2,esp32s3}-based chips.
> The FreeBSD port includes both binutils and GCC and it based on the official Espressif toolchain built on top of Crosstool-NG.
>
> 1. Is there any point in trying to split such a package to separate binutils and GCC?

I don't see a point, unless there are people that want binutils and not
gcc.

> 2. For a toolchain for foo-arch-elf, is there a reason to install it in ${PREFIX}/foo-arch-elf?

Are there name collisions?   If the things in bin are *all* prefixed
with the target tuple, probably not necessary, but there probably does
need to be a subdir for other names.  Sort of like how the netbsd tools
build works.


Home | Main Index | Thread Index | Old Index