]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/device-ti-proprietary-open.git/blob - wl12xx/wlan/Android.mk
jacinto6: update SGX kernel module for latest kernel
[android-sdk/device-ti-proprietary-open.git] / wl12xx / wlan / Android.mk
1 # Copyright (C) 2008 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.
15 LOCAL_PATH := $(call my-dir)
17 ifeq ($(strip $(BOARD_WLAN_DEVICE)),wl12xx_mac80211)
19 TI_WILINK_FW_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
21 WLAN_FW_BINS := \
22         wl18xx-fw-4.bin \
23         wl18xx-conf.bin
25 # path to FM fws (related to top dir)
26 FW_WLAN_PATH := $(TARGET_EXTRACTED_FW)/wlan
28 # path related to current location
29 FW_WLAN_FULL_PATH := ../../../../../$(FW_WLAN_PATH)
31 include $(CLEAR_VARS)
32 LOCAL_MODULE := wl18xx-fw-4.bin
33 LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl18xx-fw-4.bin
34 LOCAL_MODULE_CLASS := FIRMWARE
35 LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
36 LOCAL_MODULE_TAGS := optional
37 LOCAL_MODULE_OWNER := ti
38 include $(BUILD_PREBUILT)
39 include $(CLEAR_VARS)
40 LOCAL_MODULE := wl18xx-conf.bin
41 LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl18xx-conf.bin
42 LOCAL_MODULE_CLASS := FIRMWARE
43 LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
44 LOCAL_MODULE_TAGS := optional
45 LOCAL_MODULE_OWNER := ti
46 include $(BUILD_PREBUILT)
48 WLAN_FW_FILES := $(addprefix $(LOCAL_PATH)/$(FW_WLAN_FULL_PATH)/, $(WLAN_FW_BINS))
49 .PHONY: $(WLAN_FW_FILES)
50 $(WLAN_FW_FILES): $(FW_WLAN_FULL_PATH)
51         $(hide) tar -C $(FW_WLAN_PATH) --strip-components=1 \
52                 -f $(WLAN_TGZ) -xzp wlan/$(notdir $@)
54 $(FW_WLAN_FULL_PATH):
55         $(hide) mkdir -p $(FW_WLAN_PATH)
57 endif