tools: gpio: Fix out-of-tree build regression
Subsystems (3)
PATCH 1/1 tools: gpio: Fix out-of-tree build regression
Commit 0161a94e2d1c7 ("tools: gpio: Correctly add make dependencies for gpio_utils") added a make rule for gpio-utils-in.o but used $(output) instead of the correct $(OUTPUT) for the output directory, breaking out-of-tree build (O=xx) with the following error:
No rule to make target 'out/tools/gpio/gpio-utils-in.o', needed by 'out/tools/gpio/lsgpio-in.o'. Stop.
Fix that.
---
The 0161a94e2d1c was also applied to stable releases, which is where I got hit by the issue.
tools/gpio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/gpio/Makefile +1 -1
@@ -35,7 +35,7 @@ $(OUTPUT)include/linux/gpio.h: ../../include/uapi/linux/gpio.h prepare: $(OUTPUT)include/linux/gpio.h -GPIO_UTILS_IN := $(output)gpio-utils-in.o +GPIO_UTILS_IN := $(OUTPUT)gpio-utils-in.o $(GPIO_UTILS_IN): prepare FORCE $(Q)$(MAKE) $(build)=gpio-utils
Signature · 1 line
2.21.1
śr., 25 mar 2020 o 11:33 Anssi Hannula <[email protected]> napisał(a):
Quoted 36 lines
Commit
0161a94e2d1c7("tools: gpio: Correctly add make dependencies forgpio_utils") added a make rule for gpio-utils-in.o but used $(output) instead of the correct $(OUTPUT) for the output directory, breaking out-of-tree build (O=xx) with the following error:No rule to make target '
out/tools/gpio/gpio-utils-in.o', needed by 'out/tools/gpio/lsgpio-in.o'. Stop.Fix that.
Fixes 0161a94e2d1c ("tools: gpio: Correctly add make dependencies for gpio_utils")Cc <[email protected]>Cc Laura Abbott <[email protected]>Signed-off-by Anssi Hannula <[email protected]>---
The
0161a94e2d1cwas also applied to stable releases, which is where I got hit by the issue.tools/gpio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/gpio/Makefile +1
-2@@ -35,7 +35,7 @@ $(OUTPUT)include/linux/gpio.h: ../../include/uapi/linux/gpio.h prepare: $(OUTPUT)include/linux/gpio.h -GPIO_UTILS_IN := $(output)gpio-utils-in.o +GPIO_UTILS_IN := $(OUTPUT)gpio-utils-in.o $(GPIO_UTILS_IN): prepare FORCE $(Q)$(MAKE) $(build)=gpio-utils --
Quoted 2 lines
2.21.1
Quoted 5 lines · Anssi Hannula
Commit
0161a94e2d1c7("tools: gpio: Correctly add make dependencies forgpio_utils") added a make rule for gpio-utils-in.o but used $(output) instead of the correct $(OUTPUT) for the output directory, breaking out-of-tree build (O=xx) with the following error:
Quoted 8 lines
No rule to make target '
out/tools/gpio/gpio-utils-in.o', needed by 'out/tools/gpio/lsgpio-in.o'. Stop.Fix that.
Fixes 0161a94e2d1c ("tools: gpio: Correctly add make dependencies for gpio_utils")Cc <[email protected]>Cc Laura Abbott <[email protected]>Signed-off-by Anssi Hannula <[email protected]>
Patch applied with Bartosz' review tag.
Yours,
Linus Walleij