diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-01-25 01:20:36 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-01-25 02:38:03 +0000 |
commit | 22b36d1ae34416bc48869619cbb0cccb2070f48f (patch) | |
tree | eead0ab98c8d824977530680c46bc7530b8dfec8 | |
parent | a78244c13724c19f2b8cc533af7284b882697c30 (diff) | |
download | klibc-22b36d1ae34416bc48869619cbb0cccb2070f48f.tar.gz |
[klibc] Makefile: Honour KBUILD_SRC variableklibc-2.0.6
Currently it's necessary to specify both KBUILD_SRC and srctree to
make everything work 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@decadent.org.uk>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 7567f6f7c2974..a60161ccca5b4 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/klibc export VERSION := $(shell cat $(srctree)/$(KLIBCSRC)/version) |