From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1705686-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 3C05F15812D
	for <garchives@archives.gentoo.org>; Sat, 04 Jan 2025 15:20:05 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8134EE07A7;
	Sat, 04 Jan 2025 15:20:04 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6BD19E07A5
	for <gentoo-commits@lists.gentoo.org>; Sat, 04 Jan 2025 15:20:04 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id A7DC7340441
	for <gentoo-commits@lists.gentoo.org>; Sat, 04 Jan 2025 15:20:03 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1589819A0
	for <gentoo-commits@lists.gentoo.org>; Sat, 04 Jan 2025 15:20:00 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1735986429.aa924c1dd55492910d348eb870fd960450f29cdb.sam@gentoo>
Subject: [gentoo-commits] proj/crossdev:master commit in: /
X-VCS-Repository: proj/crossdev
X-VCS-Files: crossdev
X-VCS-Directories: /
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: aa924c1dd55492910d348eb870fd960450f29cdb
X-VCS-Branch: master
Date: Sat, 04 Jan 2025 15:20:00 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 30ac9d06-ed03-4689-abed-17d7c6dd9583
X-Archives-Hash: 041f869e228f272c018ccdeb2e1f5345

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