History

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.

Anssi Hannula committed 6 years ago

Commit 82f04bf1 parent 35c6cfb1 file · +1 −1Browse files

Unified · Split

tools/gpio/Makefile+1−1
@@ -35,7 +35,7 @@ $(OUTPUT)include/linux/gpio.h: ../../include/uapi/linux/gpio.h · 34 unmodified lines
35 35
36prepare: $(OUTPUT)include/linux/gpio.h36prepare: $(OUTPUT)include/linux/gpio.h
37 37
38GPIO_UTILS_IN := $(output)gpio-utils-in.o38GPIO_UTILS_IN := $(OUTPUT)gpio-utils-in.o
39$(GPIO_UTILS_IN): prepare FORCE39$(GPIO_UTILS_IN): prepare FORCE
40 $(Q)$(MAKE) $(build)=gpio-utils40 $(Q)$(MAKE) $(build)=gpio-utils
41 41