mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
create_dummies: fix detection of out-of-tree build
Fix genodelabs/genode#4410
This commit is contained in:
parent
59936c22c0
commit
144cc8ac54
@ -119,7 +119,7 @@ ifneq ($(realpath $(LINUX_KERNEL_DIR)),)
|
|||||||
|
|
||||||
# determine kernel source dir if an out-of-tree build directory is specified
|
# determine kernel source dir if an out-of-tree build directory is specified
|
||||||
LINUX_SRC_DIR := $(LINUX_KERNEL_DIR)
|
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)
|
LINUX_SRC_DIR := $(shell sed -n "/^include/s/.* \(.*\)\/Makefile/\\1/p" $(LINUX_KERNEL_DIR)/Makefile)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user