From 144cc8ac544118fb270af4667a6e0b1f767ff873 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Thu, 6 Jan 2022 16:33:20 +0100 Subject: [PATCH] create_dummies: fix detection of out-of-tree build Fix genodelabs/genode#4410 --- tool/dde_linux/create_dummies | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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