From nobody Mon Apr 6 20:12:44 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04F1139448F; Wed, 18 Mar 2026 09:18:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825497; cv=none; b=IeAz8/MLe8Evkw4e/1HR26PUcd7pqHXJdLHeLipcEqXDSBayVZlcFXnZ0HKz60FBu7j8umNZ9NZQ+MLPSLBNfVEclbVTL3Etdmzd7aCdOSGjm0xN5/Aqq53xOQvhLwmss+XDU8gE1dG+ryAi7hI44uaK9atcwqvG9R1d/EkdoXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825497; c=relaxed/simple; bh=7+wT4XqOtfZrTnarTeuayBt59FLu6mtAfaIIVesnRow=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BmaW523NFojoZvy7wrYjJBwX7eN7dRfzrRCG/RayrRr2KJ4+jOMkbbCyLsqgdcOA5g25di9pSbrso/KiLHWhbBbOavbEEhp94hcggWu1etj0/t6REiwj4mPvpUmJEtAt99ljHWNM8w2HCxYLUKGp0ByS4iqeDqyYSW/0ebs5T/c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8B4741E7D; Wed, 18 Mar 2026 02:18:09 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B07053F73B; Wed, 18 Mar 2026 02:18:06 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:51 +0000 Subject: [PATCH v5 07/26] bpftool: Append extra host flags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-7-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=824; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=7+wT4XqOtfZrTnarTeuayBt59FLu6mtAfaIIVesnRow=; b=rk6BhIYWjjOgPBPnvj9D4HPyAMRhgSWlmv8na2+IMRVT7evnSwINCef944rbjYoP9zcmnoR6W sYGVYj1psHHBAOydwzbSN6/Awx0KengBwjX6qU84iHaSKfTPUjYOr/D X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append HOST_EXTRACFLAGS to HOST_CFLAGS so that additional flags can be applied to the host compiler. Acked-by: Quentin Monnet Signed-off-by: Leo Yan --- tools/bpf/bpftool/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index 3e7d8359e1b2a81a29a47544be8539e3b191a0e8..762fcf0e62a189625053798ddde= af17d409fe248 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -86,6 +86,7 @@ endif # including flags that are not applicable to the host compiler. HOST_CFLAGS :=3D $(subst -I$(LIBBPF_INCLUDE),-I$(LIBBPF_BOOTSTRAP_INCLUDE)= ,\ $(subst $(CLANG_CROSS_FLAGS),,$(CFLAGS))) +HOST_CFLAGS +=3D $(HOST_EXTRACFLAGS) =20 ifneq ($(EXTRA_CFLAGS),) CFLAGS +=3D $(EXTRA_CFLAGS) --=20 2.34.1