diff --git a/tool/dde_linux/create_dummies b/tool/dde_linux/create_dummies index eb6fe75798..e126eede61 100755 --- a/tool/dde_linux/create_dummies +++ b/tool/dde_linux/create_dummies @@ -119,7 +119,7 @@ ifneq ($(realpath $(LINUX_KERNEL_DIR)),) # determine kernel source dir if an out-of-tree build directory is specified LINUX_SRC_DIR := $(LINUX_KERNEL_DIR) -ifneq ($(shell grep "Automatically generated by" $(LINUX_KERNEL_DIR)/Makefile),) +ifneq ($(shell grep "^\# Automatically generated by" $(LINUX_KERNEL_DIR)/Makefile),) LINUX_SRC_DIR := $(shell sed -n "/^include/s/.* \(.*\)\/Makefile/\\1/p" $(LINUX_KERNEL_DIR)/Makefile) endif