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