From e55416bf647b0333b37731f11c5b86ad9129f742 Mon Sep 17 00:00:00 2001 From: Andrii Beregovenko Date: Wed, 6 Mar 2013 16:35:48 +0200 Subject: wpan: rework rules for wpan firmware binaries Organize prebuilt firmware binaries for WiLink's modules as regular Android prebuilts. Move corresponding rules to separate makefile. Change-Id: Ibc8b3531084530cda1388db15a5ab7b3fdec54bc Signed-off-by: Andrii Beregovenko --- Android.mk | 31 ---- wl12xx/License_for_WPAN_Binary_Images.txt | 46 ----- wl12xx/wpan.tgz | Bin 268152 -> 0 bytes wl12xx/wpan/Android.mk | 20 ++ wl12xx/wpan/License_for_WPAN_Binary_Images.txt | 46 +++++ wl12xx/wpan/bluetooth/Android.mk | 96 ++++++++++ .../wpan/bluetooth/wl12xx-wpan-bt-fw-products.mk | 24 +++ wl12xx/wpan/fm/Android.mk | 204 +++++++++++++++++++++ wl12xx/wpan/fm/wl12xx-wpan-fm-fw-products.mk | 35 ++++ wl12xx/wpan/nfc/Android.mk | 69 +++++++ wl12xx/wpan/nfc/wl12xx-wpan-nfc-fw-products.mk | 18 ++ wl12xx/wpan/wl12xx-wpan-fw-products.mk | 20 ++ wl12xx/wpan/wpan.tgz | Bin 0 -> 268152 bytes 13 files changed, 532 insertions(+), 77 deletions(-) delete mode 100644 wl12xx/License_for_WPAN_Binary_Images.txt delete mode 100644 wl12xx/wpan.tgz create mode 100644 wl12xx/wpan/Android.mk create mode 100644 wl12xx/wpan/License_for_WPAN_Binary_Images.txt create mode 100644 wl12xx/wpan/bluetooth/Android.mk create mode 100644 wl12xx/wpan/bluetooth/wl12xx-wpan-bt-fw-products.mk create mode 100644 wl12xx/wpan/fm/Android.mk create mode 100644 wl12xx/wpan/fm/wl12xx-wpan-fm-fw-products.mk create mode 100644 wl12xx/wpan/nfc/Android.mk create mode 100644 wl12xx/wpan/nfc/wl12xx-wpan-nfc-fw-products.mk create mode 100644 wl12xx/wpan/wl12xx-wpan-fw-products.mk create mode 100644 wl12xx/wpan/wpan.tgz diff --git a/Android.mk b/Android.mk index 26a1a6b..ecdaafa 100644 --- a/Android.mk +++ b/Android.mk @@ -71,34 +71,3 @@ $(LOCAL_BUILT_MODULE) : $(ti-tesla.untarred_timestamp) | $(ACP) endif ############################################# - -################################################################################ -# Install WPAN firmware files -############################################################################### -WPAN_TGZ := device/ti/proprietary-open/wl12xx/wpan.tgz - -ifneq ($(WPAN_TGZ),) -include $(CLEAR_VARS) - -wpan.untarred_intermediates := $(call intermediates-dir-for, FAKE, wpan.untarred) -wpan.untarred_timestamp := $(wpan.untarred_intermediates)/stamp - -WPAN_FW_LOCAL_PATH:= device/ti/proprietary-open/wl12xx/ -LOCAL_MODULE := ti-wpan-fw -LOCAL_MODULE_CLASS := FAKE -LOCAL_MODULE_TAGS := optional - -include $(BUILD_SYSTEM)/base_rules.mk - -$(LOCAL_BUILT_MODULE) : $(WPAN_TGZ) - echo "Unzip $(wpan.untarred_intermediates) <- $<" - $(hide) rm -rvf $(wpan.untarred_intermediates)/wpan - $(hide) mkdir -p $(wpan.untarred_intermediates) - $(hide) tar -C $(wpan.untarred_intermediates) -zvxf $< - $(hide) touch $(wpan.untarred_intermediates) - -$(LOCAL_INSTALLED_MODULE) : $(LOCAL_BUILT_MODULE) | $(ACP) - @echo "Copying wpan firmware ..." - @mkdir -p $(PRODUCT_OUT)/system/etc/firmware - $(hide) $(ACP) -rfpv $(wpan.untarred_intermediates)/wpan/*/*.bts $(PRODUCT_OUT)/system/etc/firmware/ -endif diff --git a/wl12xx/License_for_WPAN_Binary_Images.txt b/wl12xx/License_for_WPAN_Binary_Images.txt deleted file mode 100644 index 606c12d..0000000 --- a/wl12xx/License_for_WPAN_Binary_Images.txt +++ /dev/null @@ -1,46 +0,0 @@ - 1 TECHNOLOGY AND SOFTWARE PUBLICLY AVAILABLE - 2 SOFTWARE LICENSE - 3 - 4 Copyright (c) 2011, Texas Instruments Incorporated. - 5 - 6 All rights reserved. - 7 - 8 Redistribution. - 9 - 10 Redistribution and use in binary form, without modification, are - 11 permitted provided that the following conditions are met: - 12 - 13 * Redistributions must preserve existing copyright notices and reproduce - 14 this license (including the above copyright notice and the disclaimer below) - 15 in the documentation and/or other materials provided with the distribution. - 16 - 17 * Neither the name of Texas Instruments Incorporated nor the names of - 18 its suppliers may be used to endorse or promote products derived - 19 from this software without specific prior written permission. - 20 - 21 * No reverse engineering, decompilation, or disassembly of this - 22 software is permitted. - 23 - 24 Limited patent license. - 25 - 26 Texas Instruments Incorporated grants a world-wide, royalty-free, - 27 non-exclusive license under patents it now or hereafter owns or controls - 28 to make, have made, use, import, offer to sell and sell ("Utilize") this - 29 software, but solely to the extent that any such patent is necessary - 30 to Utilize the software alone. The patent license shall not apply to - 31 any combinations which include this software. No hardware per se is - 32 licensed hereunder. - 33 - 34 DISCLAIMER. - 35 - 36 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - 37 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - 38 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - 39 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - 40 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - 41 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - 42 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - 43 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - 44 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - 45 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 46 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/wl12xx/wpan.tgz b/wl12xx/wpan.tgz deleted file mode 100644 index 639a2f6..0000000 Binary files a/wl12xx/wpan.tgz and /dev/null differ diff --git a/wl12xx/wpan/Android.mk b/wl12xx/wpan/Android.mk new file mode 100644 index 0000000..a47f6c0 --- /dev/null +++ b/wl12xx/wpan/Android.mk @@ -0,0 +1,20 @@ +# Copyright (C) 2013 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +LOCAL_PATH := $(call my-dir) + +WPAN_TGZ := device/ti/proprietary-open/wl12xx/wpan/wpan.tgz + +include $(call all-makefiles-under, $(LOCAL_PATH)) diff --git a/wl12xx/wpan/License_for_WPAN_Binary_Images.txt b/wl12xx/wpan/License_for_WPAN_Binary_Images.txt new file mode 100644 index 0000000..606c12d --- /dev/null +++ b/wl12xx/wpan/License_for_WPAN_Binary_Images.txt @@ -0,0 +1,46 @@ + 1 TECHNOLOGY AND SOFTWARE PUBLICLY AVAILABLE + 2 SOFTWARE LICENSE + 3 + 4 Copyright (c) 2011, Texas Instruments Incorporated. + 5 + 6 All rights reserved. + 7 + 8 Redistribution. + 9 + 10 Redistribution and use in binary form, without modification, are + 11 permitted provided that the following conditions are met: + 12 + 13 * Redistributions must preserve existing copyright notices and reproduce + 14 this license (including the above copyright notice and the disclaimer below) + 15 in the documentation and/or other materials provided with the distribution. + 16 + 17 * Neither the name of Texas Instruments Incorporated nor the names of + 18 its suppliers may be used to endorse or promote products derived + 19 from this software without specific prior written permission. + 20 + 21 * No reverse engineering, decompilation, or disassembly of this + 22 software is permitted. + 23 + 24 Limited patent license. + 25 + 26 Texas Instruments Incorporated grants a world-wide, royalty-free, + 27 non-exclusive license under patents it now or hereafter owns or controls + 28 to make, have made, use, import, offer to sell and sell ("Utilize") this + 29 software, but solely to the extent that any such patent is necessary + 30 to Utilize the software alone. The patent license shall not apply to + 31 any combinations which include this software. No hardware per se is + 32 licensed hereunder. + 33 + 34 DISCLAIMER. + 35 + 36 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + 37 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + 38 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + 39 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + 40 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + 41 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + 42 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + 43 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + 44 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + 45 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + 46 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/wl12xx/wpan/bluetooth/Android.mk b/wl12xx/wpan/bluetooth/Android.mk new file mode 100644 index 0000000..db63840 --- /dev/null +++ b/wl12xx/wpan/bluetooth/Android.mk @@ -0,0 +1,96 @@ +# Copyright (C) 2013 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +LOCAL_PATH := $(call my-dir) + +ifeq ($(strip $(BOARD_HAVE_BLUETOOTH_TI)),true) + +TI_WILINK_BT_FW_PATH := $(TARGET_OUT_ETC)/firmware + +WPAN_BT_FW_BINS := \ + TIInit_7.2.31.bts \ + TIInit_7.6.15.bts \ + TIInit_10.6.15.bts \ + TIInit_11.8.32.bts \ + TIInit_12.7.27.bts \ + TIInit_12.8.32.bts + +# path to BT fws (related to top dir) +FW_BT_PATH := $(TARGET_EXTRACTED_FW)/bt + +# path related to current location +FW_BT_FULL_PATH := ../../../../../../$(FW_BT_PATH) + +include $(CLEAR_VARS) +LOCAL_MODULE := TIInit_7.2.31.bts +LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_7.2.31.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) +include $(CLEAR_VARS) +LOCAL_MODULE := TIInit_7.6.15.bts +LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_7.6.15.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := TIInit_10.6.15.bts +LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_10.6.15.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := TIInit_11.8.32.bts +LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_11.8.32.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := TIInit_12.7.27.bts +LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_12.7.27.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) +include $(CLEAR_VARS) +LOCAL_MODULE := TIInit_12.8.32.bts +LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_12.8.32.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +WPAN_BT_FW_FILES := $(addprefix $(LOCAL_PATH)/$(FW_BT_FULL_PATH)/, $(WPAN_BT_FW_BINS)) +.PHONY: $(WPAN_BT_FW_FILES) +$(WPAN_BT_FW_FILES): $(FW_BT_FULL_PATH) + $(hide) tar -C $(FW_BT_PATH) --strip-components=2 \ + -f $(WPAN_TGZ) -xzp wpan/bluetooth/$(notdir $@) + +$(FW_BT_FULL_PATH): + $(hide) mkdir -p $(FW_BT_PATH) + +endif diff --git a/wl12xx/wpan/bluetooth/wl12xx-wpan-bt-fw-products.mk b/wl12xx/wpan/bluetooth/wl12xx-wpan-bt-fw-products.mk new file mode 100644 index 0000000..1a73115 --- /dev/null +++ b/wl12xx/wpan/bluetooth/wl12xx-wpan-bt-fw-products.mk @@ -0,0 +1,24 @@ +# Copyright (C) 2013 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Add Bluetooth firmware + +PRODUCT_PACKAGES += \ + TIInit_7.2.31.bts \ + TIInit_7.6.15.bts \ + TIInit_10.6.15.bts \ + TIInit_11.8.32.bts \ + TIInit_12.7.27.bts \ + TIInit_12.8.32.bts \ No newline at end of file diff --git a/wl12xx/wpan/fm/Android.mk b/wl12xx/wpan/fm/Android.mk new file mode 100644 index 0000000..caa7690 --- /dev/null +++ b/wl12xx/wpan/fm/Android.mk @@ -0,0 +1,204 @@ +# Copyright (C) 2013 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +LOCAL_PATH := $(call my-dir) + +TI_WILINK_FM_FW_PATH := $(TARGET_OUT_ETC)/firmware + +WPAN_FM_FW_BINS := \ + fmc_ch8_1283.2.bts \ + fmc_ch8_1853.3.bts \ + fmc_ch8_1893.2.bts \ + fmc_ch8_1893.3.bts \ + fmc_init_1273.2.bts \ + fm_rx_ch8_1283.2.bts \ + fm_rx_ch8_1853.3.bts \ + fm_rx_ch8_1893.2.bts \ + fm_rx_ch8_1893.3.bts \ + fm_rx_init_1273.2.bts \ + fm_tx_ch8_1273.1.bts \ + fm_tx_ch8_1273.2.bts \ + fm_tx_ch8_1283.2.bts \ + fm_tx_ch8_1853.3.bts \ + fm_tx_ch8_1893.2.bts \ + fm_tx_ch8_1893.3.bts \ + fm_tx_init_1273.2.bts + +# path to NFC fws (related to top dir) +FW_FM_PATH := $(TARGET_EXTRACTED_FW)/fm + +# path related to current location +FW_FM_FULL_PATH := ../../../../../../$(FW_FM_PATH) + +include $(CLEAR_VARS) +LOCAL_MODULE := fmc_ch8_1283.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fmc_ch8_1283.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fmc_ch8_1853.3.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fmc_ch8_1853.3.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fmc_ch8_1893.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fmc_ch8_1893.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fmc_ch8_1893.3.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fmc_ch8_1893.3.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fmc_init_1273.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fmc_init_1273.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_rx_ch8_1283.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_rx_ch8_1283.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_rx_ch8_1853.3.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_rx_ch8_1853.3.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_rx_ch8_1893.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_rx_ch8_1893.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_rx_ch8_1893.3.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_rx_ch8_1893.3.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_rx_init_1273.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_rx_init_1273.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_tx_ch8_1273.1.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_tx_ch8_1273.1.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_tx_ch8_1273.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_tx_ch8_1273.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_tx_ch8_1283.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_tx_ch8_1283.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_tx_ch8_1853.3.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_tx_ch8_1853.3.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_tx_ch8_1893.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_tx_ch8_1893.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_tx_ch8_1893.3.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_tx_ch8_1893.3.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fm_tx_init_1273.2.bts +LOCAL_SRC_FILES := $(FW_FM_FULL_PATH)/fm_tx_init_1273.2.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_FM_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +WPAN_FM_FW_FILES := $(addprefix $(LOCAL_PATH)/$(FW_FM_FULL_PATH)/, $(WPAN_FM_FW_BINS)) +.PHONY: $(WPAN_FM_FW_FILES) +$(WPAN_FM_FW_FILES): $(FW_FM_FULL_PATH) + $(hide) tar -C $(FW_FM_PATH) --strip-components=2 \ + -f $(WPAN_TGZ) -xzp wpan/fmradio/$(notdir $@) + +$(FW_FM_FULL_PATH): + $(hide) mkdir -p $(FW_FM_PATH) diff --git a/wl12xx/wpan/fm/wl12xx-wpan-fm-fw-products.mk b/wl12xx/wpan/fm/wl12xx-wpan-fm-fw-products.mk new file mode 100644 index 0000000..43d11e7 --- /dev/null +++ b/wl12xx/wpan/fm/wl12xx-wpan-fm-fw-products.mk @@ -0,0 +1,35 @@ +# Copyright (C) 2013 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Add FM radio firmware + +PRODUCT_PACKAGES += \ + fmc_ch8_1283.2.bts \ + fmc_ch8_1853.3.bts \ + fmc_ch8_1893.2.bts \ + fmc_ch8_1893.3.bts \ + fmc_init_1273.2.bts \ + fm_rx_ch8_1283.2.bts \ + fm_rx_ch8_1853.3.bts \ + fm_rx_ch8_1893.2.bts \ + fm_rx_ch8_1893.3.bts \ + fm_rx_init_1273.2.bts \ + fm_tx_ch8_1273.1.bts \ + fm_tx_ch8_1273.2.bts \ + fm_tx_ch8_1283.2.bts \ + fm_tx_ch8_1853.3.bts \ + fm_tx_ch8_1893.2.bts \ + fm_tx_ch8_1893.3.bts \ + fm_tx_init_1273.2.bts \ No newline at end of file diff --git a/wl12xx/wpan/nfc/Android.mk b/wl12xx/wpan/nfc/Android.mk new file mode 100644 index 0000000..6929d13 --- /dev/null +++ b/wl12xx/wpan/nfc/Android.mk @@ -0,0 +1,69 @@ +# Copyright (C) 2013 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +LOCAL_PATH := $(call my-dir) + +ifeq ($(strip $(NFC_TI_DEVICE)),true) + +TI_WILINK_NFC_FW_PATH := $(TARGET_OUT_ETC)/firmware + +WPAN_NFC_FW_BINS := \ + TIInit_11.7.27.bts \ + TINfcInit_12.8.32.72.bts \ + TINfcInit_12.8.32.80.bts + +# path to NFC fws (related to top dir) +FW_NFC_PATH := $(TARGET_EXTRACTED_FW)/nfc + +# path related to current location +FW_NFC_FULL_PATH := ../../../../../../$(FW_NFC_PATH) + +include $(CLEAR_VARS) +LOCAL_MODULE := TIInit_11.7.27.bts +LOCAL_SRC_FILES := $(FW_NFC_FULL_PATH)/TIInit_11.7.27.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_NFC_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := TINfcInit_12.8.32.72.bts +LOCAL_SRC_FILES := $(FW_NFC_FULL_PATH)/TINfcInit_12.8.32.72.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_NFC_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := TINfcInit_12.8.32.80.bts +LOCAL_SRC_FILES := $(FW_NFC_FULL_PATH)/TINfcInit_12.8.32.80.bts +LOCAL_MODULE_CLASS := FIRMWARE +LOCAL_MODULE_PATH := $(TI_WILINK_NFC_FW_PATH) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_OWNER := ti +include $(BUILD_PREBUILT) + +WPAN_NFC_FW_FILES := $(addprefix $(LOCAL_PATH)/$(FW_NFC_FULL_PATH)/, $(WPAN_NFC_FW_BINS)) +.PHONY: $(WPAN_NFC_FW_FILES) +$(WPAN_NFC_FW_FILES): $(FW_NFC_FULL_PATH) + $(hide) tar -C $(FW_NFC_PATH) --strip-components=2 \ + -f $(WPAN_TGZ) -xzp wpan/nfc/$(notdir $@) + +$(FW_NFC_FULL_PATH): + $(hide) mkdir -p $(FW_NFC_PATH) + +endif + diff --git a/wl12xx/wpan/nfc/wl12xx-wpan-nfc-fw-products.mk b/wl12xx/wpan/nfc/wl12xx-wpan-nfc-fw-products.mk new file mode 100644 index 0000000..9c54ea6 --- /dev/null +++ b/wl12xx/wpan/nfc/wl12xx-wpan-nfc-fw-products.mk @@ -0,0 +1,18 @@ +# Copyright (C) 2013 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +PRODUCT_PACKAGES += \ + TIInit_11.7.27.bts \ + TINfcInit_12.8.32.72.bts \ + TINfcInit_12.8.32.80.bts \ No newline at end of file diff --git a/wl12xx/wpan/wl12xx-wpan-fw-products.mk b/wl12xx/wpan/wl12xx-wpan-fw-products.mk new file mode 100644 index 0000000..9a919b8 --- /dev/null +++ b/wl12xx/wpan/wl12xx-wpan-fw-products.mk @@ -0,0 +1,20 @@ +# Copyright (C) 2012 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +WPAN_FW_TOP := device/ti/proprietary-open/wl12xx/wpan + +$(call inherit-product, $(WPAN_FW_TOP)/bluetooth/wl12xx-wpan-bt-fw-products.mk) +$(call inherit-product, $(WPAN_FW_TOP)/fm/wl12xx-wpan-fm-fw-products.mk) +$(call inherit-product, $(WPAN_FW_TOP)/nfc/wl12xx-wpan-nfc-fw-products.mk) diff --git a/wl12xx/wpan/wpan.tgz b/wl12xx/wpan/wpan.tgz new file mode 100644 index 0000000..639a2f6 Binary files /dev/null and b/wl12xx/wpan/wpan.tgz differ -- cgit v1.2.3-54-g00ecf