1# Copyright (C) 2023 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 15LOCAL_PATH := $(call my-dir) 16 17# ============================================================ 18 19include $(CLEAR_VARS) 20 21LOCAL_LDLIBS := -llog 22 23LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast 24LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses 25LOCAL_CPPFLAGS += -Wno-conversion-null -Wunused-variable 26 27LOCAL_C_INCLUDES += \ 28 frameworks/opt/net/wifi/libwifi_hal/include/wifi_hal \ 29 frameworks/opt/net/wifi/libwifi_system_iface/include/wifi_system \ 30 hardware/broadcom/wlan/bcmdhd/wifi_hal \ 31 hardware/interfaces/wifi/legacy_headers/include/hardware_legacy \ 32 external/libnl/include \ 33 external/wpa_supplicant_8/src/drivers \ 34 libcore/include 35 36LOCAL_SHARED_LIBRARIES += \ 37 libcutils \ 38 libc \ 39 libutils 40 41LOCAL_STATIC_LIBRARIES += libwifi-hal-bcm libnl 42LOCAL_PROPRIETARY_MODULE := true 43LOCAL_SHARED_LIBRARIES += libcrypto libwifi-hal 44LOCAL_SHARED_LIBRARIES += libwifi-system-iface 45 46ifneq ($(wildcard vendor/google/libraries/GoogleWifiConfigLib),) 47 LOCAL_SHARED_LIBRARIES += \ 48 google_wifi_firmware_config_version_c_wrapper 49 LOCAL_CFLAGS += -DGOOGLE_WIFI_FW_CONFIG_VERSION_C_WRAPPER 50endif 51 52LOCAL_SRC_FILES := \ 53 halutil.cpp 54 55LOCAL_MODULE := halutil_brcm 56LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 57LOCAL_LICENSE_CONDITIONS := notice 58include $(BUILD_EXECUTABLE) 59 60