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
This commit is contained in:
Alessandro Astone 2020-05-10 11:27:57 +02:00
parent 2c892f8700
commit c8771bef56
1 changed files with 1 additions and 1 deletions

View File

@ -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
}