linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Makefile fixes for samples/{bpf,hid}
@ 2025-02-03  8:55 Jinghao Jia
  2025-02-03  8:55 ` [PATCH v3 1/3] samples/hid: remove unnecessary -I flags from libbpf EXTRA_CFLAGS Jinghao Jia
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Jinghao Jia @ 2025-02-03  8:55 UTC (permalink / raw)
  To: 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,
	Jiri Kosina, Benjamin Tissoires, Masahiro Yamada, Nicolas Schier,
	Ruowen Qin, Jinghao Jia
  Cc: bpf, linux-kernel, linux-input

Hi everyone,

Following commit 13b25489b6f8 ("kbuild: change working directory to
external module directory with M="), the Makefiles for both bpf and hid
samples are broken due to the use of the relative vmlinux path (i.e.,
./vmlinux) when generating vmlinux.h. Additionally, samples/hid experience
the same problem that was fixed for samples/bpf in commit 5a6ea7022ff4
("samples/bpf: Remove unnecessary -I flags from libbpf EXTRA_CFLAGS").

This patchset makes the following changes to fix these two problems:
 - The first patch applies the same fix from commit 5a6ea7022ff4
   ("samples/bpf: Remove unnecessary -I flags from libbpf EXTRA_CFLAGS") to
   samples/hid.
 - The second and third patch replace the relative vmlinux paths in
   samples/{bpf,hid}/Makefile with $(objtree)/vmlinux to correctly refer to
   the vmlinux in kernel output directory, following the recent working
   directory change in kbuild.

Changelog:
v2 -> v3:
 - v2: https://lore.kernel.org/all/20250123081950.173588-1-jinghao7@illinois.edu/
 - Address feedback from Andrii
  - Split the vmlinux path fixes for bpf and hid
v1 -> v2:
 - v1: https://lore.kernel.org/all/20250120023027.160448-1-jinghao7@illinois.edu/
 - Address feedback from Daniel
  - Apply vmlinux path fix to samples/hid
  - Add a second patch that fixes the include path issue in samples/hid,
    i.e., the same issue fixed fpr samples/bpf in commit 5a6ea7022ff4
    ("samples/bpf: Remove unnecessary -I flags from libbpf EXTRA_CFLAGS")
 - Address feedback from Masahiro and Nicolas
   - Use $(objtree) instead of $(srctree) in the path when referring to
     vmlinux, as it is an artifact of kbuild

Jinghao Jia (3):
  samples/hid: remove unnecessary -I flags from libbpf EXTRA_CFLAGS
  samples/bpf: fix broken vmlinux path for VMLINUX_BTF
  samples/hid: fix broken vmlinux path for VMLINUX_BTF

 samples/bpf/Makefile |  2 +-
 samples/hid/Makefile | 13 +++++++------
 2 files changed, 8 insertions(+), 7 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-02-06  1:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03  8:55 [PATCH v3 0/3] Makefile fixes for samples/{bpf,hid} Jinghao Jia
2025-02-03  8:55 ` [PATCH v3 1/3] samples/hid: remove unnecessary -I flags from libbpf EXTRA_CFLAGS Jinghao Jia
2025-02-03  8:55 ` [PATCH v3 2/3] samples/bpf: fix broken vmlinux path for VMLINUX_BTF Jinghao Jia
2025-02-06  0:54   ` Andrii Nakryiko
2025-02-03  8:55 ` [PATCH v3 3/3] samples/hid: " Jinghao Jia
2025-02-04 10:09 ` (subset) [PATCH v3 0/3] Makefile fixes for samples/{bpf,hid} Benjamin Tissoires
2025-02-06  1:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).