From e80a44109f3f1d0cf822f01b0c87a41f2816f32d Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Wed, 10 Nov 2021 15:44:37 -0800 Subject: [PATCH] ANDROID: Kleaf: Fix build by exporting mixed-build-prefix Works around build breakage. Once we find the proper fix, we should revert this. Bug: 205893923 Test: builds Change-Id: I8b4ab0eb5895232b4e0f3f7639984e4093b77e75 Signed-off-by: Yifan Hong --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 523eead51a48..094f89883044 100644 --- a/Makefile +++ b/Makefile @@ -149,6 +149,10 @@ endif mixed-build-prefix = $(if $(KBUILD_MIXED_TREE),$(KBUILD_MIXED_TREE)/) export KBUILD_MIXED_TREE +# This is a hack for kleaf to set mixed-build-prefix within the execution of a make rule, e.g. +# within __modinst_pre. +# TODO(b/205893923): Revert this hack once it is properly handled. +export mixed-build-prefix # Kbuild will save output files in the current working directory. # This does not need to match to the root of the kernel source tree.