diff mbox series

[5/5] Makefile: Fix out of tree build for tools

Message ID 20200206111148.1025-1-ceggers@arri.de
State Accepted
Headers show
Series Another bunch of build fixes | expand

Commit Message

Christian Eggers Feb. 6, 2020, 11:11 a.m. UTC
Tested with make targets "all", and "clean" for in-tree and
out-of-tree build.

Fixes: 5f06f4d02c ("Add examples to build systems")
Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 9f41235..ed370ca 100644
--- a/Makefile
+++ b/Makefile
@@ -365,7 +365,7 @@  swupdate-all	:= $(swupdate-objs) $(swupdate-libs)
 
 tools-dirs	:= $(tools-y)
 tools-objs	:= $(patsubst %,%/built-in.o, $(tools-y))
-tools-bins	:= $(patsubst $(tools-y)/%.c,$(tools-y)/%,$(wildcard $(tools-y)/*.c))
+tools-bins	:= $(patsubst $(srctree)/$(tools-y)/%.c,$(tools-y)/%,$(wildcard $(srctree)/$(tools-y)/*.c))
 tools-bins-unstr:= $(patsubst %,%_unstripped,$(tools-bins))
 tools-all	:= $(tools-objs)