No longer call `make` directly in build/apex/runtests.sh
This is no longer supported since
https://android-review.googlesource.com/c/platform/build/+/1092954/.
Use `build/soong/soong_ui.bash --make-mode` instead.
Test: art/build/apex/runtests.sh
Bug: 138711335
Change-Id: I803610dca0c07f832b3f8330964fa05089024668
diff --git a/build/apex/runtests.sh b/build/apex/runtests.sh
index c5a3e46..abf007b 100755
--- a/build/apex/runtests.sh
+++ b/build/apex/runtests.sh
@@ -46,7 +46,7 @@
if [ ! -e "$ANDROID_HOST_OUT/bin/debugfs" ] ; then
say "Could not find debugfs, building now."
- make debugfs-host || die "Cannot build debugfs"
+ build/soong/soong_ui.bash --make-mode debugfs-host || die "Cannot build debugfs"
fi
# Fail early.
@@ -90,7 +90,7 @@
# Build APEX packages APEX_MODULES.
function build_apex {
if $build_apex_p; then
- say "Building $@" && make "$@" || die "Cannot build $@"
+ say "Building $@" && build/soong/soong_ui.bash --make-mode "$@" || die "Cannot build $@"
fi
}