From c8771bef56a46a6b0989af22ef8e759a9abff474 Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Sun, 10 May 2020 11:27:57 +0200 Subject: [PATCH] build: allow refreshmod with external out directory Get a relative path to out by using $(get_build_var PRODUCT_OUT) instead of hardcoding it to out/target/product/$TARGET_DEVICE. That will correctly return the path to the out directory when setting an external OUT_DIR_COMMON_BASE. Change-Id: I8a990b710222bc72755c6b6b88fd0c9e80711e14 --- envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index aa90b4d95..e4afdb9bc 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1371,7 +1371,7 @@ function refreshmod() { mkdir -p $ANDROID_PRODUCT_OUT || return 1 # Note, can't use absolute path because of the way make works. - m out/target/product/$(get_build_var TARGET_DEVICE)/module-info.json \ + m $(get_build_var PRODUCT_OUT)/module-info.json \ > $ANDROID_PRODUCT_OUT/module-info.json.build.log 2>&1 }