Skip to contentSkip to conversation

tools: gpio: Fix out-of-tree build regression

PATCH In review Anssi Hannula 3 participants 3 messages Mar 25, 2020 – Mar 27, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 0161a94e2d1c ("tools: gpio: Correctly add make dependencies for gpio_utils")
Cc Laura Abbott <[email protected]>

---

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
index 842287e42c83..440434027557 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

śr., 25 mar 2020 o 11:33 Anssi Hannula <[email protected]> napisał(a):

Quoted 36 lines

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.

Fixes 0161a94e2d1c ("tools: gpio: Correctly add make dependencies for gpio_utils")
Cc Laura Abbott <[email protected]>

---

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 -2
index 842287e42c83..440434027557 100644
@@ -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

#2 lore raw
In reply to Anssi Hannula
Quoted 5 lines · Anssi Hannula

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:

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 Laura Abbott <[email protected]>

Patch applied with Bartosz' review tag.

Yours,
Linus Walleij