Displaying 1 result from an estimated 1 matches for "a60161c".
Did you mean:
a60161cc
2019 Jan 25
0
[klibc:master] Makefile: Honour KBUILD_SRC variable
...k properly in an out-of-tree build. It should
only be necessary to specify KBUILD_SRC. Initialise srctree
accordingly.
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 7567f6f..a60161c 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ SRCROOT = .
# To see a list of typical targets execute "make help"
# kbuild compatibility
-export srctree := $(shell pwd)
+export srctree := $(or $(KBUILD_SRC),$(shell pwd))
export objtree := $(shell pwd)
export KLIBCSRC := usr...