Set MODULE_BUILD_FROM_SOURCE to true for GSI images

Build modules from source for AOSP GSI images

Bug: 278607630

Test: TARGET_PRODUCT=gsi_arm64 TARGET_BUILD_VARIANT=userdebug build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
 returns true
(cherry picked from https://android-review.googlesource.com/q/commit:cfc2cdb644aed9687a2c44a42a6f990b2a7c5bd0)
Merged-In: I38a73b94734be5f3cbb29bf047089c4d66b2b0ae
Change-Id: I38a73b94734be5f3cbb29bf047089c4d66b2b0ae
diff --git a/gsi_arm.mk b/gsi_arm.mk
index 1a28cc8..6272fb5 100644
--- a/gsi_arm.mk
+++ b/gsi_arm.mk
@@ -29,6 +29,9 @@
 # Enable mainline checking
 PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
 
+# Always build modules from source
+MODULE_BUILD_FROM_SOURCE := true
+
 #
 # All components inherited here go to system_ext image
 #
diff --git a/gsi_arm64.mk b/gsi_arm64.mk
index 81b0a3e..ceb2e94 100644
--- a/gsi_arm64.mk
+++ b/gsi_arm64.mk
@@ -30,6 +30,9 @@
 # Enable mainline checking
 PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
 
+# Always build modules from source
+MODULE_BUILD_FROM_SOURCE := true
+
 #
 # All components inherited here go to system_ext image
 #
diff --git a/gsi_x86.mk b/gsi_x86.mk
index 0dfde63..030d9b4 100644
--- a/gsi_x86.mk
+++ b/gsi_x86.mk
@@ -22,6 +22,9 @@
 # Enable mainline checking
 PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
 
+# Always build modules from source
+MODULE_BUILD_FROM_SOURCE := true
+
 #
 # All components inherited here go to system_ext image
 #
diff --git a/gsi_x86_64.mk b/gsi_x86_64.mk
index b45184c..d21d0b9 100644
--- a/gsi_x86_64.mk
+++ b/gsi_x86_64.mk
@@ -23,6 +23,9 @@
 # Enable mainline checking
 PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
 
+# Always build modules from source
+MODULE_BUILD_FROM_SOURCE := true
+
 #
 # All components inherited here go to system_ext image
 #