diff options
author | Ivan Lozano <ivanlozano@google.com> | 2021-06-07 11:22:16 -0400 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2021-06-07 20:02:25 +0000 |
commit | ab5f042d9f458f12e00fef0f81b578941d72adcc (patch) | |
tree | 041da09f8cf6006021faaf648b4b463c304804f1 /rust | |
parent | b6d94b699900c57ab7f9056abd2e9ed95d18d801 (diff) |
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
Diffstat (limited to 'rust')
-rw-r--r-- | rust/image.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/image.go b/rust/image.go index 900842ec8..1b2df1d3e 100644 --- a/rust/image.go +++ b/rust/image.go @@ -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) |