RFC: toolchain for building eBPF modules within the OpenWrt build system

Felix Fietkau nbd at nbd.name
Mon Oct 18 06:47:45 PDT 2021


On 2021-10-18 15:37, Florian Eckert wrote:
> 
>>> I'd suggest to require a preinstalled host toolchain for the time 
>>> being.
>> How about requiring a preinstalled host toolchain by default, but
>> building it from source on buildbot?
> 
> I wouldn't make it dependent on whether openwrt compiles on the buildbot
> or not.
> I am not using this build option CONFIG_BUILDBOT on my own builds.
I'm definitely planning on having a separate option for it. What I meant 
in what I wrote above was to enable that option by default if 
CONFIG_BUILDBOT is set.

> Either use llvm from the buildhost (distribution), or let the openwrt
> buildsystem build its own llvm in the tool directory as you suggest.
> 
> @nbd thank you for looking at this, would have needed the ebpf before
> :-)
You're welcome. I plan on pushing my first package using eBPF soon.

- Felix




More information about the openwrt-devel mailing list