summaryrefslogtreecommitdiff
path: root/scripts/Makefile.modbuiltin
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Makefile.modbuiltin')
-rw-r--r--scripts/Makefile.modbuiltin2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.modbuiltin b/scripts/Makefile.modbuiltin
index ea90a90b41a0..50a9990760f3 100644
--- a/scripts/Makefile.modbuiltin
+++ b/scripts/Makefile.modbuiltin
@@ -15,7 +15,7 @@ include include/config/tristate.conf
include scripts/Kbuild.include
-ifneq ($(srctree),.)
+ifdef building_out_of_srctree
# Create output directory if not already present
_dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj))
endif