Skip to content

Commit

Permalink
crossdev: special-case bpf
Browse files Browse the repository at this point in the history
Avoid needing to pass -s1/-s2 manually: C-only and no linux-headers.

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jan 4, 2025
1 parent 3345d02 commit aa924c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crossdev
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,13 @@ parse_target() {
WITH_DEF_HEADERS="no"
;;

bpf*)
# Doesn't support C++ and friends
STAGE_DEFAULT=${STAGE_C_ONLY}
# No linux-headers needed/required
WITH_DEF_HEADERS="no"
;;

# Has no glibc support yet (or even ABI defined). Can
# only compile linux kernel:
# https://parisc.wiki.kernel.org/index.php/Userspace64
Expand Down

0 comments on commit aa924c1

Please sign in to comment.