kbuild: replace KBUILD_SRCTREE with boolean building_out_of_srctree
[linux-block.git] / scripts / Makefile.host
index b6a54bdf0965e1859a2f8a42164f2008f9c65ef3..fcf0213e6ac8046bd8bc3a30d456d897d89d14ee 100644 (file)
@@ -69,7 +69,7 @@ _hostcxx_flags = $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
 
 # $(objtree)/$(obj) for including generated headers from checkin source files
 ifeq ($(KBUILD_EXTMOD),)
-ifneq ($(srctree),.)
+ifdef building_out_of_srctree
 _hostc_flags   += -I $(objtree)/$(obj)
 _hostcxx_flags += -I $(objtree)/$(obj)
 endif