Set MODULE_BUILD_FROM_SOURCE to disable module prebuilts when building
linux_bionic targets.
They can otherwise cause duplicate install rules in Soong in
--skip-make mode.
Test: env DIST_DIR=out/linux_bionic ./art/tools/dist_linux_bionic.sh \
-j40 com.android.art.host com.android.support.apexer
Bug: 194171329
Ignore-AOSP-First: Fixes problem in sc-dev - will cherry-pick to AOSP.
Change-Id: I91d31e258ddad255344fbde111ed8b1ac1423921
diff --git a/tools/build_linux_bionic.sh b/tools/build_linux_bionic.sh
index ad7e7bd..3c5a68f 100755
--- a/tools/build_linux_bionic.sh
+++ b/tools/build_linux_bionic.sh
@@ -31,7 +31,10 @@
exit 1
fi
-soong_args=""
+# TODO(b/194433871): Set MODULE_BUILD_FROM_SOURCE to disable prebuilt modules,
+# which Soong otherwise can create duplicate install rules for in --skip-make
+# mode.
+soong_args="MODULE_BUILD_FROM_SOURCE=true"
# Switch the build system to unbundled mode in the reduced manifest branch.
if [ ! -d frameworks/base ]; then