forked from openkylin/platform_build
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:
parent
2c892f8700
commit
c8771bef56
|
@ -1371,7 +1371,7 @@ function refreshmod() {
|
||||||
mkdir -p $ANDROID_PRODUCT_OUT || return 1
|
mkdir -p $ANDROID_PRODUCT_OUT || return 1
|
||||||
|
|
||||||
# Note, can't use absolute path because of the way make works.
|
# 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
|
> $ANDROID_PRODUCT_OUT/module-info.json.build.log 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue