Re: [Buildroot] [PATCH] package: fix builds with $(PKG)_FLAT_STACKSIZE

Thomas Petazzoni via buildroot <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <aoizvh0-63Qk71KB@windsurf>
Hello,

On Sat, Aug 22, 2026 at 01:26:13AM +0800, Fengwei Tan wrote:

> Sure. I would be glad to add a test case for this, and I will send it as
> a separate patch.

Excellent, thanks!

> I am working on a fork of Buildroot for HPMicro MCUs:
> https://github.com/hpm-rs/buildroot
> 
> I have ported Linux to a new RISC-V MCU called HPM6750 from HPMicro
> Semiconductor Ltd., and I am adding board support for it to Buildroot.
> 
> I ran into this problem when trying to run FFmpeg on it. Initially, it
> failed with a "stack smashing detected" error. To resolve this, I
> attempted to use FFMPEG_FLAT_STACKSIZE to allocate a larger FLAT stack,
> which led me to discover the build failure caused by this bug.

Nice! To be honest I had never heard of HPMicro, so it's nice to
discover.

Do not hesitate to send patches to add support for your
platform(s). However, for this, we will require that the support for
your platform is also in the upstream Linux kernel: we don't want to
carry dozens/hundreds of platform-specific patches in Buildroot.

But aside from your platform-specific support, do not hesitate to
submit any noMMU fixes you might have, like the one you already
submitted.

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.