blob: 550a6bef160ccc142974a836007ef995ab8b4ff5 [file] [log] [blame]
Bob Badour77c910d2021-06-07 22:20:50 -07001//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
Alan Stokes94475b82023-10-25 15:54:21 +010017 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour77c910d2021-06-07 22:20:50 -070018}
Nikita Ioffe3973d382023-08-31 17:53:25 +010019
20soong_config_module_type {
21 name: "avf_flag_aware_rust_defaults",
22 module_type: "rust_defaults",
23 config_namespace: "ANDROID",
24 bool_variables: [
Alan Stokes7f27c0d2023-09-07 16:22:58 +010025 "release_avf_enable_dice_changes",
Shikha Panwar95084df2023-07-22 11:47:45 +000026 "release_avf_enable_llpvm_changes",
Nikita Ioffe3973d382023-08-31 17:53:25 +010027 "release_avf_enable_multi_tenant_microdroid_vm",
Alice Wange9ac2db2023-09-08 15:13:13 +000028 "release_avf_enable_remote_attestation",
Nikita Ioffe631717e2023-09-05 13:38:07 +010029 "release_avf_enable_vendor_modules",
Nikita Ioffe3973d382023-08-31 17:53:25 +010030 ],
31 properties: [
32 "cfgs",
33 ],
34}
35
36avf_flag_aware_rust_defaults {
37 name: "avf_build_flags_rust",
38 soong_config_variables: {
Alan Stokes7f27c0d2023-09-07 16:22:58 +010039 release_avf_enable_dice_changes: {
40 cfgs: ["dice_changes"],
41 },
Shikha Panwar95084df2023-07-22 11:47:45 +000042 release_avf_enable_llpvm_changes: {
43 cfgs: ["llpvm_changes"],
44 },
Nikita Ioffe3973d382023-08-31 17:53:25 +010045 release_avf_enable_multi_tenant_microdroid_vm: {
Alan Stokes27f3ef02023-09-29 15:09:35 +010046 cfgs: ["multi_tenant"],
Nikita Ioffe3973d382023-08-31 17:53:25 +010047 },
Alice Wange9ac2db2023-09-08 15:13:13 +000048 release_avf_enable_remote_attestation: {
49 cfgs: ["remote_attestation"],
50 },
Nikita Ioffe631717e2023-09-05 13:38:07 +010051 release_avf_enable_vendor_modules: {
52 cfgs: ["vendor_modules"],
53 },
Nikita Ioffe3973d382023-08-31 17:53:25 +010054 },
55}
Jaewan Kim0df5fb12023-09-24 23:33:54 +090056
57genrule_defaults {
58 name: "dts_to_dtb",
59 tools: ["dtc"],
60 cmd: "$(location dtc) -I dts -O dtb $(in) -o $(out)",
61}