• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15soong_namespace {
16    imports: [
17        "device/generic/goldfish",
18    ],
19}
20
21package {
22    default_applicable_licenses: ["Android-Apache-2.0"],
23}
24
25prebuilt_etc {
26    name: "com.google.cf.wifi_hwsim.rc",
27    src: "com.google.cf.wifi_hwsim.rc",
28    installable: false,
29}
30
31cc_binary {
32    name: "android.hardware.wifi@1.0-service_cf",
33    defaults: ["android.hardware.wifi@1.0-service_default"],
34    shared_libs: ["libwifi-hal_cf"],
35    static_libs: ["android.hardware.wifi@1.0-service-lib_cf"],
36}
37
38cc_library_static {
39    name: "android.hardware.wifi@1.0-service-lib_cf",
40    defaults: ["android.hardware.wifi@1.0-service-lib_defaults"],
41    shared_libs: ["libwifi-hal_cf"],
42}
43
44cc_library_shared {
45    name: "libwifi-hal_cf",
46    defaults: ["libwifi-hal_defaults"],
47    whole_static_libs: ["libwifi-hal-emu"],
48}
49
50apex {
51    name: "com.google.cf.wifi_hwsim",
52    // Name expected by wpa_supplicant when it looks for config files.
53    apex_name: "com.android.wifi.hal",
54    manifest: "apex_manifest.json",
55    key: "com.google.cf.apex.key",
56    certificate: ":com.google.cf.apex.certificate",
57    file_contexts: "file_contexts",
58    use_vndk_as_stable: true,
59    updatable: false,
60    // Install the apex in /vendor/apex
61    soc_specific: true,
62    binaries: [
63        "mac80211_create_radios",
64        "rename_netiface",
65        "wpa_supplicant_cf",
66        "hostapd_cf",
67        "android.hardware.wifi@1.0-service_cf",
68    ],
69    sh_binaries: ["init.wifi.sh_apex"],
70    prebuilts: [
71        "android.hardware.wifi.direct.prebuilt.xml",
72        "android.hardware.wifi.passpoint.prebuilt.xml",
73        "android.hardware.wifi.prebuilt.xml",
74        "com.google.cf.wifi_hwsim.rc",
75        "p2p_supplicant.conf.cf",
76        "wpa_supplicant.conf.cf",
77        "wpa_supplicant_overlay.conf.cf",
78    ],
79    // TODO(b/202992812): Use the vintf_fragment from the wpa_supplicant project.
80    vintf_fragments: ["com.google.cf.wifi_hwsim.xml"],
81}
82