mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
Update srctree path to correctly populate Makefile
Update srctree path to correctly populate the Makefile for sandbox environments. The patch is to adjusted for 5.x kernels Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
This commit is contained in:
parent
91cfcce5c2
commit
022a63a9d1
@ -15,15 +15,17 @@ diff --git a/Makefile b/Makefile
|
|||||||
index 36eab48d1d4a..0514c0fa114d 100644
|
index 36eab48d1d4a..0514c0fa114d 100644
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -240,7 +240,7 @@ else
|
@@ -230,9 +230,7 @@ else
|
||||||
|
building_out_of_srctree := 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(KBUILD_ABS_SRCTREE),)
|
-ifneq ($(KBUILD_ABS_SRCTREE),)
|
||||||
-srctree := $(abs_srctree)
|
-srctree := $(abs_srctree)
|
||||||
|
-endif
|
||||||
+srctree := $(shell realpath --relative-to=$(KBUILD_OUTPUT) $(abs_srctree))
|
+srctree := $(shell realpath --relative-to=$(KBUILD_OUTPUT) $(abs_srctree))
|
||||||
endif
|
|
||||||
|
|
||||||
objtree := .
|
objtree := .
|
||||||
--
|
VPATH := $(srctree)
|
||||||
|
--
|
||||||
2.26.2
|
2.26.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user