Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab5f042d authored by Ivan Lozano's avatar Ivan Lozano
Browse files

Disable Rust vendor-specific modules

We need to avoid building Rust vendor-specific modules as there is no
vendor snapshot support for Rust yet.

Bug: 184042776
Test: m <vendor_rust_module> # build error generated
Change-Id: I5afce74bc939b3ceda5cbb9dbe75833d4c3b413e
Merged-In: I51a7fa49096ee5809fd37ce76113ff14841d1b52
parent b6d94b69
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -217,6 +217,12 @@ func (mod *Module) ImageMutatorBegin(mctx android.BaseModuleContext) {
			mctx.PropertyErrorf("vendor_ramdisk_available", "cannot be set for rust_ffi or rust_ffi_shared modules.")
		}
	}
	vendorSpecific := mctx.SocSpecific() || mctx.DeviceSpecific()
	if vendorSpecific {
		mctx.PropertyErrorf("vendor or soc_specific",
			"Rust modules do not yet support soc-specific modules")

	}

	cc.MutateImage(mctx, mod)