1// 2// Copyright (C) 2019 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 { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20filegroup { 21 name: "device_google_cuttlefish_shared_config_pci_ids", 22 srcs: ["pci.ids"], 23 licenses: ["device_google_cuttlefish_shared_config_pci_ids_license"], 24} 25 26license { 27 name: "device_google_cuttlefish_shared_config_pci_ids_license", 28 package_name: "PCI IDS", 29 license_kinds: ["SPDX-license-identifier-BSD-3-Clause"], 30 license_text: ["LICENSE_BSD"], 31} 32 33prebuilt_etc_host { 34 name: "cvd_config_auto.json", 35 src: "config_auto.json", 36 sub_dir: "cvd_config", 37} 38 39prebuilt_etc_host { 40 name: "cvd_config_auto_md.json", 41 src: "config_auto_md.json", 42 sub_dir: "cvd_config", 43} 44 45prebuilt_etc_host { 46 name: "cvd_config_auto_dd.json", 47 src: "config_auto_dd.json", 48 sub_dir: "cvd_config", 49} 50 51prebuilt_etc_host { 52 name: "cvd_config_auto_portrait.json", 53 src: "config_auto_portrait.json", 54 sub_dir: "cvd_config", 55} 56 57prebuilt_etc_host { 58 name: "cvd_config_foldable.json", 59 src: "config_foldable.json", 60 sub_dir: "cvd_config", 61} 62 63prebuilt_etc_host { 64 name: "cvd_config_go.json", 65 src: "config_go.json", 66 sub_dir: "cvd_config", 67} 68 69prebuilt_etc_host { 70 name: "cvd_config_minidroid.json", 71 src: "config_minidroid.json", 72 sub_dir: "cvd_config", 73} 74 75prebuilt_etc_host { 76 name: "cvd_config_phone.json", 77 src: "config_phone.json", 78 sub_dir: "cvd_config", 79} 80 81prebuilt_etc_host { 82 name: "cvd_config_slim.json", 83 src: "config_slim.json", 84 sub_dir: "cvd_config", 85} 86 87prebuilt_etc_host { 88 name: "cvd_config_tablet.json", 89 src: "config_tablet.json", 90 sub_dir: "cvd_config", 91} 92 93prebuilt_etc_host { 94 name: "cvd_config_tv.json", 95 src: "config_tv.json", 96 sub_dir: "cvd_config", 97} 98 99prebuilt_etc_host { 100 name: "cvd_config_wear.json", 101 src: "config_wear.json", 102 sub_dir: "cvd_config", 103} 104 105prebuilt_etc { 106 name: "wpa_supplicant_overlay.conf.cf", 107 src: "wpa_supplicant_overlay.conf", 108 filename_from_src: true, 109 relative_install_path: "wifi", 110 installable: false, 111} 112 113prebuilt_etc { 114 name: "p2p_supplicant.conf.cf", 115 src: "p2p_supplicant.conf", 116 filename_from_src: true, 117 relative_install_path: "wifi", 118 installable: false, 119} 120 121genrule { 122 name: "gen_fstab_cf_f2fs_hctr2", 123 srcs: ["fstab.in"], 124 out: ["fstab.cf.f2fs.hctr2"], 125 tool_files: [ "sed.f2fs", "sed.hctr2" ], 126 cmd: "sed -f $(location sed.f2fs) -f $(location sed.hctr2) $(in) > $(out)", 127} 128 129genrule { 130 name: "gen_fstab_cf_f2fs_cts", 131 srcs: ["fstab.in"], 132 out: ["fstab.cf.f2fs.cts"], 133 tool_files: [ "sed.f2fs", "sed.cts" ], 134 cmd: "sed -f $(location sed.f2fs) -f $(location sed.cts) $(in) > $(out)", 135} 136 137genrule { 138 name: "gen_fstab_cf_ext4_hctr2", 139 srcs: ["fstab.in"], 140 out: ["fstab.cf.ext4.hctr2"], 141 tool_files: [ "sed.ext4", "sed.hctr2" ], 142 cmd: "sed -f $(location sed.ext4) -f $(location sed.hctr2) $(in) > $(out)", 143} 144 145genrule { 146 name: "gen_fstab_cf_ext4_cts", 147 srcs: ["fstab.in"], 148 out: ["fstab.cf.ext4.cts"], 149 tool_files: [ "sed.ext4", "sed.cts" ], 150 cmd: "sed -f $(location sed.ext4) -f $(location sed.cts) $(in) > $(out)", 151} 152 153prebuilt_etc { 154 name: "fstab.cf.f2fs.hctr2", 155 src: ":gen_fstab_cf_f2fs_hctr2", 156 vendor: true, 157 vendor_ramdisk_available: true, 158} 159 160prebuilt_etc { 161 name: "fstab.cf.f2fs.cts", 162 src: ":gen_fstab_cf_f2fs_cts", 163 vendor: true, 164 vendor_ramdisk_available: true, 165} 166 167prebuilt_etc { 168 name: "fstab.cf.ext4.hctr2", 169 src: ":gen_fstab_cf_ext4_hctr2", 170 vendor: true, 171 vendor_ramdisk_available: true, 172} 173 174prebuilt_etc { 175 name: "fstab.cf.ext4.cts", 176 src: ":gen_fstab_cf_ext4_cts", 177 vendor: true, 178 vendor_ramdisk_available: true, 179} 180