Support in-tree compilation

This commit is contained in:
kimocoder 2020-02-01 07:26:27 +01:00
parent 4b7b6ad3de
commit 1a9bc08949

View File

@ -158,9 +158,11 @@ CONFIG_CUSTOMER_HUAWEI_GENERAL = n
CONFIG_DRVEXT_MODULE = n
ifeq ($(CONFIG_RTL8812AU), )
export TopDIR ?= $(shell pwd)
ifneq (,$(findstring /usr/lib/dkms,$(PATH)))
export TopDIR ?= $(shell pwd)
else
export TopDIR ?= $(shell pwd)/drivers/net/wireless/rtl8812au
export TopDIR ?= $(srctree)/$(src)
endif
endif
########### COMMON #################################