From nobody Mon Feb 9 17:07:21 2026 Received: from fhigh-a4-smtp.messagingengine.com (fhigh-a4-smtp.messagingengine.com [103.168.172.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C0BB1E1A31; Wed, 9 Apr 2025 03:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.155 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744169710; cv=none; b=QTCg9vm6H85ltvKOQFXBvP4eE8RYnqXbPsuLOuPw2IgvL8Wz2x8WpkkawPAdn24yedRpNHm4He29cjSoSlKsxu0274hQJ54h1Xq6X5jZ9RCzwo33Uds9Q+6kBKjLxUJgplZmS7TGazvXPm3rrfh5VAEWATCpP1uuKVB2+xC/Vvc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744169710; c=relaxed/simple; bh=LI7NYAjX+L6pI6lrYv+zsW4Fv3P3XhRIzbOFvBz3RfY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PGTRKf8eDu/xIUgtpvsnMOksfvIbenQbXBQgHb+KKVcOggILJw5N0TX8CKqCCBJQV0ji+awkWBW8OfQf9nvvpKcKXBN6xfcgv0tLpNXF8IslWZJG4Nw0YFSCzlitUOYHya9+bLe4xggKvD6csnWi/DzYCBHlcBRpcYBBrjWDPeU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dxuuu.xyz; spf=pass smtp.mailfrom=dxuuu.xyz; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b=gCtNNbOc; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Oy6zLfoL; arc=none smtp.client-ip=103.168.172.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dxuuu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dxuuu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="gCtNNbOc"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Oy6zLfoL" Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 878D91140257; Tue, 8 Apr 2025 23:35:06 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Tue, 08 Apr 2025 23:35:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1744169706; x= 1744256106; bh=kC0vrcJINgsqsxDD2H7/EW5cKA10S1wnC+ZsymZ0u5M=; b=g CtNNbOcFECi2zHw6l7ItGoFG3J5th6+zX93oydIf37LI3TwY6fIsaeNra7Jp9Peg MWQR1Pkl1C4BoSP0WsVtiwo0xQqJ/VTKJXBR7QqiIzU9SwmEtmHJa+LQf+8nfAlq 01i1OprWCrmHXLPis/g1YHDBDP8EF3H7sYyHLjvkdf8oaFEwLeD/9Fgo5b6Fekgo TpU8yqwXXaGruzpfkt4ZngkxhAh99XUerAAkVQ0WIUtychbygPa4W4CeF9p8oMsX 8s2CZVd902sXCid5YbVJ+vBsvIoRSlg6EHZUqFiEQEArSDKG2p+d22CGOZjzSjCs inWpMk69jyV3isGCex5bQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1744169706; x=1744256106; bh=k C0vrcJINgsqsxDD2H7/EW5cKA10S1wnC+ZsymZ0u5M=; b=Oy6zLfoLBHSxYvSZq MDdhUDwXScvJaxgmCWuUwqAo8bj8Key87v878LCckrKvfGLi15/wpIr3oc5FwyJn uM8Hvf213h+EmCIU0KJyvTsbm+sOAOx/GGpjsml1YhmdM852kg2xjZVkGcd1AEe9 K4yv4KHM80BWnSelJxkZRhWBtl+Ld4QVWEfhwVLMBwiTbnlWWXPSB2GDY8oLucVO 19qSo6Djx7TYoRSt1pDPivaHiBHUzKOg+c7n0xUQT+bMwSvfjTu6B+MECKHJDEiZ sHuG0daGAbRYawOV0IJ8OxnI26q0mWGAoseaE57Sj+PRfyh+ZZX85uohUllWWhCV VDj7Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvtdegledvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffuc dljedtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhm peffrghnihgvlhcuighuuceougiguhesugiguhhuuhdrgiihiieqnecuggftrfgrthhtvg hrnhepgfefgfegjefhudeikedvueetffelieefuedvhfehjeeljeejkefgffeghfdttdet necuvehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehmrghilhhfrhhomhepugiguh esugiguhhuuhdrgiihiidpnhgspghrtghpthhtohepudegpdhmohguvgepshhmthhpohhu thdprhgtphhtthhopegrnhgurhhiiheskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprg hstheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepuggrnhhivghlsehiohhgvggrrhgs ohigrdhnvghtpdhrtghpthhtohepmhgrrhhtihhnrdhlrghusehlihhnuhigrdguvghvpd hrtghpthhtohepvgguugihiiekjeesghhmrghilhdrtghomhdprhgtphhtthhopehsohhn gheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohephihonhhghhhonhhgrdhsohhngheslh hinhhugidruggvvhdprhgtphhtthhopehjohhhnhdrfhgrshhtrggsvghnugesghhmrghi lhdrtghomhdprhgtphhtthhopehkphhsihhnghhhsehkvghrnhgvlhdrohhrgh X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Apr 2025 23:35:04 -0400 (EDT) From: Daniel Xu To: andrii@kernel.org, ast@kernel.org, daniel@iogearbox.net Cc: martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: [RFC bpf-next 13/13] bpf: Supporting building verifier.ko out-of-tree Date: Tue, 8 Apr 2025 21:34:08 -0600 Message-ID: <2e31904051277ecff988530b50373d11efdcfaee.1744169424.git.dxu@dxuuu.xyz> X-Mailer: git-send-email 2.47.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This supports out-of-tree builds against the in-tree verifier.ko. This is intended to be used to build newer upstream verifiers against older kernel sources. You can also do an "in-tree out-of-tree" build as proof of concept: $ make clean $ make modules_prepare $ cd kernel/bpf $ make -C ../.. M=3D$PWD Signed-off-by: Daniel Xu --- kernel/bpf/Kbuild | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 kernel/bpf/Kbuild diff --git a/kernel/bpf/Kbuild b/kernel/bpf/Kbuild new file mode 100644 index 000000000000..0b4a9ce14c6f --- /dev/null +++ b/kernel/bpf/Kbuild @@ -0,0 +1,8 @@ +# Because Kbuild is preferred over Makefile for in-tree builds +# but Kbuild is necessary for an out-of-tree module, we need an +# explicit dispatch to Makefile if doing an in-tree build. +ifneq ($(M),) + obj-m =3D verifier.o +else + include $(src)/Makefile +endif --=20 2.47.1