commit: aa924c1dd55492910d348eb870fd960450f29cdb
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 4 08:40:09 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 4 10:27:09 2025 +0000
URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=aa924c1d
crossdev: special-case bpf
Avoid needing to pass -s1/-s2 manually: C-only and no linux-headers.
Signed-off-by: Sam James <sam <AT> gentoo.org>
crossdev | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/crossdev b/crossdev
index cfdb93f..59eb836 100755
--- a/crossdev
+++ b/crossdev
@@ -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