1//
2// Copyright (C) 2008 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//
16
17package {
18    // See: http://go/android-license-faq
19    default_applicable_licenses: [
20        "hardware_synaptics_wlan_synadhd_wpa_supplicant_8_lib_license",
21    ],
22}
23
24license {
25    name: "hardware_synaptics_wlan_synadhd_wpa_supplicant_8_lib_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-BSD",
29    ],
30    license_text: [
31        "NOTICE",
32    ],
33}
34
35cc_library_static {
36    name: "lib_driver_cmd_synadhd",
37    shared_libs: [
38        "libc",
39        "libcutils",
40    ],
41    cflags: [
42        "-DBCMDHD_64_BIT_IPC", // It is always set for r11
43        "-DCONFIG_ANDROID_LOG",
44        "-DCONFIG_P2P",
45        "-Wall",
46        "-Werror",
47    ],
48    srcs: [
49        "driver_cmd_nl80211.c",
50    ],
51    include_dirs: [
52        "external/libnl/include",
53        "external/wpa_supplicant_8/src",
54        "external/wpa_supplicant_8/src/common",
55        "external/wpa_supplicant_8/src/drivers",
56        "external/wpa_supplicant_8/src/l2_packet",
57        "external/wpa_supplicant_8/src/utils",
58        "external/wpa_supplicant_8/src/wps",
59        "external/wpa_supplicant_8/wpa_supplicant",
60    ],
61    vendor: true,
62    arch: {
63        arm: {
64            cflags: [
65                "-mabi=aapcs-linux",
66            ],
67        },
68    },
69    defaults: [
70        "wpa_supplicant_cflags_default",
71    ],
72}
73