openwrt / openwrt/packages

github-workflow: add clang for xdp-support?

Open
#14,754 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

As you maybe already noticed, some people are working on XDP Support in OpenWrt.

As loader we currently have:

Here are some hacky OpenWrt examples from me:

Soon, there will be some OpenWrt tutorial. Further, I highly recommend XDP-Tutorial.
As u can see in the WIP xdp-tools, everything just fails, since I use clang to cross-compile.

*** ERROR: Cannot find tool clang

Can we add clang to the workflow to have support for packages that want to make use of xdp?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the GitHub workflow used to build OpenWrt packages and compare its tool availability with the WIP xdp-tools package in PR 14739. Confirm how clang is expected to participate in cross-compilation; the work is done when the workflow can build packages that require clang without the “Cannot find tool clang” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.