linux/tools/gpio
Sasha Levin 52336337f1 tools: gpio: fix building from the top level with O=
"make O=<dir> tools/gpio" fails:

  Makefile:27: /tools/build/Makefile.include: No such file or directory

tools/Makefile clears srctree, and the gpio Makefile only works it out
again when building_out_of_srctree is not set, which the top-level
Makefile sets for O= builds.

Also work out srctree when it is empty, as tools/bpf/Makefile does
since commit a89b2cbf71 ("tools, bpf: Fix build for 'make -s
tools/bpf O=<dir>'").

Fixes: 4a6a6f5c4a ("tools: gpio: Use !building_out_of_srctree to determine srctree")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Signed-off-by: Sasha Levin <sashal@kernel.org>
Link: https://patch.msgid.link/20261011223358.2327625-5-sashal@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
2026-10-12 16:08:35 +02:00
..
.gitignore This is the bulk of GPIO development for the v5.7 kernel cycle. 2020-04-04 10:27:00 -07:00
Build tools: gpio: implement gpio-watch 2020-02-12 12:05:47 +01:00
gpio-event-mon.c tools: gpio: Fix several incorrect format specifiers 2024-11-13 16:30:05 +01:00
gpio-hammer.c tools: gpio: Fix the wrong format specifier 2024-07-31 09:56:52 +02:00
gpio-sloppy-logic-analyzer.sh gpio: sloppy-logic-analyzer remove reference to rcu_momentary_dyntick_idle() 2024-10-21 09:12:53 +02:00
gpio-utils.c tools: gpio-utils: fix various kernel-doc warnings 2021-03-26 14:56:19 +01:00
gpio-utils.h tools: gpio: remove uAPI v1 code no longer used by selftests 2021-02-15 11:43:28 +01:00
gpio-watch.c tools: gpio: fix %llu warning in gpio-watch.c 2021-01-18 10:05:35 +01:00
lsgpio.c tools: gpio: fix debounce_period_us output of lsgpio 2023-05-11 10:56:24 +02:00
Makefile tools: gpio: fix building from the top level with O= 2026-10-12 16:08:35 +02:00