1# Copyright (C) 2015 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 15ifeq ($(WIFI_DRIVER_HAL_PERIPHERAL),bcm43340) 16 17LOCAL_PATH := $(call my-dir) 18 19include $(CLEAR_VARS) 20 21LOCAL_CPPFLAGS += \ 22 -DWIFI_DRIVER_NVRAM_PATH_PARAM=\"$(WIFI_DRIVER_NVRAM_PATH_PARAM)\" \ 23 -DWIFI_DRIVER_FW_PATH_PARAM=\"$(WIFI_DRIVER_FW_PATH_PARAM)\" \ 24 -DWIFI_DRIVER_NVRAM_PATH=\"$(WIFI_DRIVER_NVRAM_PATH)\" \ 25 -DWIFI_DRIVER_FW_PATH_STA=\"$(WIFI_DRIVER_FW_PATH_STA)\" \ 26 -DWIFI_DRIVER_FW_PATH_AP=\"$(WIFI_DRIVER_FW_PATH_AP)\" \ 27 -DWIFI_DRIVER_FW_PATH_P2P=\"$(WIFI_DRIVER_FW_PATH_P2P)\" 28LOCAL_CFLAGS += -Wno-unused-parameter 29LOCAL_C_INCLUDES += device/generic/brillo/wifi_driver_hal/include 30LOCAL_SHARED_LIBRARIES := libcutils 31LOCAL_SRC_FILES := bcm43340_hal.cpp 32LOCAL_MODULE := $(WIFI_DRIVER_HAL_MODULE) 33LOCAL_MODULE_RELATIVE_PATH := hw 34LOCAL_MODULE_TAGS := optional 35 36include $(BUILD_SHARED_LIBRARY) 37 38endif 39