xref: /btstack/chipset/cc256x/Makefile.inc (revision 74e22f303e71eb37b8da3b491cf8f9d16ba00c14)
1d5814ca7SMatthias Ringwald#
2a827c5a6SMatthias Ringwald# Makefile to download and convert TI's CC256x Service Pack .bts files from BlueKitchen mirror
337da03daSMatthias Ringwald# https://e2e.ti.com/support/wireless_connectivity/bluetooth_cc256x/f/660/p/560523/2056007#2056007
4a827c5a6SMatthias Ringwald#
5a827c5a6SMatthias Ringwald# Original sources:
6a827c5a6SMatthias Ringwald# TI Processor Wiki https://web.archive.org/web/20210114141711/https://processors.wiki.ti.com/index.php/CC256x_Downloads
7a827c5a6SMatthias Ringwald# TI Git Repo:      https://git.ti.com/cgit/ti-bt/service-packs/blobs/raw/a027ae390d8790e56e1c78136c78fe6537470e91
837da03daSMatthias Ringwald
9a827c5a6SMatthias RingwaldBLUEKITCHEN_URL = https://bluekitchen-gmbh.com/files/ti/service-packs
10edc52946SMatthias RingwaldCONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset/cc256x/convert_bts_init_scripts.py
11d5814ca7SMatthias Ringwald
1237da03daSMatthias Ringwald# First generation CC2560 - AKA TIInit_6.2.31.bts
1337da03daSMatthias Ringwald
1437da03daSMatthias Ringwald# v2.44 - file part of .zip archive
15a3fe55ccSMatthias Ringwald
16a3fe55ccSMatthias RingwaldCC2560_BT_SP_BTS.zip:
1737da03daSMatthias Ringwald	@echo "Downloading $@"
18a827c5a6SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/CC2560_BT_SP_BTS.zip
19a3fe55ccSMatthias Ringwald
20a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.bts: CC2560_BT_SP_BTS.zip
2137da03daSMatthias Ringwald	@echo "Extracting $@"
2237da03daSMatthias Ringwald	@unzip -q -j -o CC2560_BT_SP_BTS.zip CC2560_BT_SP_BTS/bluetooth_init_cc2560_2.44.bts
23a3fe55ccSMatthias Ringwald
2437da03daSMatthias Ringwald# Second generation CC2560A and CC2564 - AKA TIInit_6.6.15.bts
25a3fe55ccSMatthias Ringwald
2637da03daSMatthias Ringwald# v2.14 - files part of .zip archive
27a3fe55ccSMatthias Ringwald
28a3fe55ccSMatthias RingwaldCC2560A_BT_SP_BTS.zip:
2937da03daSMatthias Ringwald	@echo "Downloading $@"
30a827c5a6SMatthias Ringwald	@curl -sS -O  $(BLUEKITCHEN_URL)/CC2560A_BT_SP_BTS.zip
31a3fe55ccSMatthias Ringwald
32a3fe55ccSMatthias RingwaldCC2564_BT_BLE_SP_BTS.zip:
3337da03daSMatthias Ringwald	@echo "Downloading $@"
34a827c5a6SMatthias Ringwald	@curl -sS -O  $(BLUEKITCHEN_URL)/CC2564_BT_BLE_SP_BTS.zip
35a3fe55ccSMatthias Ringwald
36a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.bts: CC2560A_BT_SP_BTS.zip
3737da03daSMatthias Ringwald	@echo "Extracting $@"
3837da03daSMatthias Ringwald	@unzip -q -j -o CC2560A_BT_SP_BTS.zip CC2560A_BT_SP_BTS/bluetooth_init_cc2560A_2.14.bts
39a3fe55ccSMatthias Ringwald
40a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.bts: CC2564_BT_BLE_SP_BTS.zip
4137da03daSMatthias Ringwald	@echo "Extracting $@"
4237da03daSMatthias Ringwald	@unzip -q -j -o CC2564_BT_BLE_SP_BTS.zip CC2564_BT_BLE_SP_BTS/bluetooth_init_cc2564_2.14.bts
43a3fe55ccSMatthias Ringwald
442d0fc1beSMatthias Ringwald# Third generation CC256xB - AKA TIInit_6.7.16.bts
45a3fe55ccSMatthias Ringwald
4637da03daSMatthias Ringwald# v1.2 - versioned files TI Git Repo
47d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts:
4837da03daSMatthias Ringwald	@echo "Downloading $@"
49a827c5a6SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts
50d5814ca7SMatthias Ringwald
51d5814ca7SMatthias Ringwaldbluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts:
5237da03daSMatthias Ringwald	@echo "Downloading $@"
53a827c5a6SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts
54d5814ca7SMatthias Ringwald
55d5814ca7SMatthias RingwaldBLE_init_cc2564B_1.2.bts:
5637da03daSMatthias Ringwald	@echo "Downloading $@"
57a827c5a6SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/BLE_init_cc2564B_1.2.bts
58d5814ca7SMatthias Ringwald
5937da03daSMatthias Ringwald# v1.4 - versioned files TI Git Repo
60edc52946SMatthias RingwaldTIInit_6.7.16_bt_spec_4.1.bts:
6137da03daSMatthias Ringwald	@echo "Downloading $@"
622f2a785fSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_6.7.16_bt_spec_4.1.bts
63edc52946SMatthias Ringwald
64edc52946SMatthias RingwaldTIInit_6.7.16_ble_add-on.bts:
6537da03daSMatthias Ringwald	@echo "Downloading $@"
662f2a785fSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_6.7.16_ble_add-on.bts
67edc52946SMatthias Ringwald
6837da03daSMatthias Ringwald# v1.5 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xb-bt-sp
6937da03daSMatthias Ringwaldcc256x_bt_sp_v1.5.zip:
7037da03daSMatthias Ringwald	echo "Downloading $@"
7106ee659aSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256x_bt_sp_v1.5.zip
72638e16f3SMatthias Ringwald
732d0fc1beSMatthias Ringwaldcc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts: cc256x_bt_sp_v1.5.zip
7437da03daSMatthias Ringwald	@echo "Extracting $@"
752d0fc1beSMatthias Ringwald	@mkdir -p cc256x_bt_sp_v1.5
762d0fc1beSMatthias Ringwald	@unzip -q -j -o cc256x_bt_sp_v1.5.zip -d cc256x_bt_sp_v1.5 CC256X_BT_SP/v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts
77638e16f3SMatthias Ringwald
782d0fc1beSMatthias Ringwaldcc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256x_bt_sp_v1.5.zip
7937da03daSMatthias Ringwald	@echo "Extracting $@"
802d0fc1beSMatthias Ringwald	@mkdir -p cc256x_bt_sp_v1.5
812d0fc1beSMatthias Ringwald	@unzip -q -j -o cc256x_bt_sp_v1.5.zip -d cc256x_bt_sp_v1.5 CC256X_BT_SP/v1.5/initscripts-TIInit_6.7.16_ble_add-on.bts
822d0fc1beSMatthias Ringwald
832d0fc1beSMatthias Ringwald# v1.6 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xb-bt-sp
842d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6.zip:
852d0fc1beSMatthias Ringwald	echo "Downloading $@"
862d0fc1beSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xb_bt_sp_v1.6.zip
872d0fc1beSMatthias Ringwald
882d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts: cc256xb_bt_sp_v1.6.zip
892d0fc1beSMatthias Ringwald	@echo "Extracting $@"
902d0fc1beSMatthias Ringwald	@mkdir -p cc256xb_bt_sp_v1.6
912d0fc1beSMatthias Ringwald	@unzip -q -j -o cc256xb_bt_sp_v1.6.zip -d cc256xb_bt_sp_v1.6 CC256XB_BT_SP/v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts
922d0fc1beSMatthias Ringwald
932d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256xb_bt_sp_v1.6.zip
942d0fc1beSMatthias Ringwald	@echo "Extracting $@"
952d0fc1beSMatthias Ringwald	@mkdir -p cc256xb_bt_sp_v1.6
962d0fc1beSMatthias Ringwald	@unzip -q -j -o cc256xb_bt_sp_v1.6.zip -d cc256xb_bt_sp_v1.6 CC256XB_BT_SP/v1.6/initscripts-TIInit_6.7.16_ble_add-on.bts
97638e16f3SMatthias Ringwald
983d919a60SMatthias Ringwald# v1.7 - not available, please use v1.8 or newer
993d919a60SMatthias Ringwald
1003d919a60SMatthias Ringwald# v1.8 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xb-bt-sp
1013d919a60SMatthias Ringwaldcc256xb_bt_sp_v1.8.zip:
1023d919a60SMatthias Ringwald	echo "Downloading $@"
1033d919a60SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xb_bt_sp_v1.8.zip
1043d919a60SMatthias Ringwald
1053d919a60SMatthias Ringwaldcc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts: cc256xb_bt_sp_v1.8.zip
1063d919a60SMatthias Ringwald	@echo "Extracting $@"
1073d919a60SMatthias Ringwald	@mkdir -p cc256xb_bt_sp_v1.8
1083d919a60SMatthias Ringwald	@unzip -q -j -o cc256xb_bt_sp_v1.8.zip -d cc256xb_bt_sp_v1.8 CC256XB_BT_SP/v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts
1093d919a60SMatthias Ringwald
1103d919a60SMatthias Ringwaldcc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256xb_bt_sp_v1.8.zip
1113d919a60SMatthias Ringwald	@echo "Extracting $@"
1123d919a60SMatthias Ringwald	@mkdir -p cc256xb_bt_sp_v1.8
1133d919a60SMatthias Ringwald	@unzip -q -j -o cc256xb_bt_sp_v1.8.zip -d cc256xb_bt_sp_v1.8 CC256XB_BT_SP/v1.8/initscripts-TIInit_6.7.16_ble_add-on.bts
1143d919a60SMatthias Ringwald
1156846b044SMatthias Ringwaldcc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_avpr_add-on.bts: cc256xb_bt_sp_v1.8.zip
1166846b044SMatthias Ringwald	@echo "Extracting $@"
1176846b044SMatthias Ringwald	@mkdir -p cc256xb_bt_sp_v1.8
1186846b044SMatthias Ringwald	@unzip -q -j -o cc256xb_bt_sp_v1.8.zip -d cc256xb_bt_sp_v1.8 CC256XB_BT_SP/v1.8/initscripts-TIInit_6.7.16_avpr_add-on.bts
119638e16f3SMatthias Ringwald
12037da03daSMatthias Ringwald# Fourth generation CC256xC - TIInit_6.12.26.bts
12137da03daSMatthias Ringwald
12237da03daSMatthias Ringwald# v1.0 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
12337da03daSMatthias Ringwaldcc256xc_bt_sp_v1.0.zip:
12437da03daSMatthias Ringwald	@echo "Downloading $@"
12506ee659aSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.0.zip
12637da03daSMatthias Ringwald
1277830d3e6SMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.0.bts: cc256xc_bt_sp_v1.0.zip
12837da03daSMatthias Ringwald	@echo "Extracting $@"
1297830d3e6SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.0.zip CC256XC_BT_SP/v1.0/initscripts-TIInit_6.12.26.bts > $@
13037da03daSMatthias Ringwald
1317830d3e6SMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.0.bts: cc256xc_bt_sp_v1.0.zip
13237da03daSMatthias Ringwald	@echo "Extracting $@"
1337830d3e6SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.0.zip CC256XC_BT_SP/v1.0/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
13437da03daSMatthias Ringwald
13514cca92bSMatthias Ringwald# v1.1 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
13614cca92bSMatthias Ringwaldcc256xc_bt_sp_v1.1.zip:
13714cca92bSMatthias Ringwald	@echo "Downloading $@"
13814cca92bSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.1.zip
13914cca92bSMatthias Ringwald
14014cca92bSMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.1.bts: cc256xc_bt_sp_v1.1.zip
14114cca92bSMatthias Ringwald	@echo "Extracting $@"
14214cca92bSMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.1.zip CC256XC_BT_SP/v1.1/initscripts-TIInit_6.12.26.bts > $@
14314cca92bSMatthias Ringwald
14414cca92bSMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.1.bts: cc256xc_bt_sp_v1.1.zip
14514cca92bSMatthias Ringwald	@echo "Extracting $@"
14614cca92bSMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.1.zip CC256XC_BT_SP/v1.1/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
14714cca92bSMatthias Ringwald
1480e0e98b2SMatthias Ringwald# v1.2 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
1493d919a60SMatthias Ringwaldcc256xc_bt_sp_v1.2.zip:
1503d919a60SMatthias Ringwald	@echo "Downloading $@"
1513d919a60SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.2.zip
1523d919a60SMatthias Ringwald
1533d919a60SMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.2.bts: cc256xc_bt_sp_v1.2.zip
1543d919a60SMatthias Ringwald	@echo "Extracting $@"
1553d919a60SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.2.zip CC256XC_BT_SP/v1.2/initscripts-TIInit_6.12.26.bts > $@
1563d919a60SMatthias Ringwald
1573d919a60SMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.2.bts: cc256xc_bt_sp_v1.2.zip
1583d919a60SMatthias Ringwald	@echo "Extracting $@"
1593d919a60SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.2.zip CC256XC_BT_SP/v1.2/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
16037da03daSMatthias Ringwald
1610e0e98b2SMatthias Ringwald# v1.3 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
1620e0e98b2SMatthias Ringwaldcc256xc_bt_sp_v1.3.zip:
1630e0e98b2SMatthias Ringwald	@echo "Downloading $@"
1640e0e98b2SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.3.zip
1650e0e98b2SMatthias Ringwald
1660e0e98b2SMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.3.bts: cc256xc_bt_sp_v1.3.zip
1670e0e98b2SMatthias Ringwald	@echo "Extracting $@"
1680e0e98b2SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.3.zip CC256XC_BT_SP/v1.3/initscripts-TIInit_6.12.26.bts > $@
1690e0e98b2SMatthias Ringwald
1700e0e98b2SMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.3.bts: cc256xc_bt_sp_v1.3.zip
1710e0e98b2SMatthias Ringwald	@echo "Extracting $@"
1720e0e98b2SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.3.zip CC256XC_BT_SP/v1.3/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
1730e0e98b2SMatthias Ringwald
174f2eb0907SMatthias Ringwald# v1.4 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
175f2eb0907SMatthias Ringwaldcc256xc_bt_sp_v1.4.zip:
176f2eb0907SMatthias Ringwald	@echo "Downloading $@"
177f2eb0907SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.4.zip
178f2eb0907SMatthias Ringwald
179f2eb0907SMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.4.bts: cc256xc_bt_sp_v1.4.zip
180f2eb0907SMatthias Ringwald	@echo "Extracting $@"
181f2eb0907SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.4.zip CC256XC_BT_SP/v1.4/initscripts-TIInit_6.12.26.bts > $@
182f2eb0907SMatthias Ringwald
183f2eb0907SMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.4.bts: cc256xc_bt_sp_v1.4.zip
184f2eb0907SMatthias Ringwald	@echo "Extracting $@"
185f2eb0907SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.4.zip CC256XC_BT_SP/v1.4/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
186f2eb0907SMatthias Ringwald
18715218b79SMatthias Ringwaldinitscripts-TIInit_6.12.26_avpr_add-on_v1.4.bts: cc256xc_bt_sp_v1.4.zip
18815218b79SMatthias Ringwald	@echo "Extracting $@"
18915218b79SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.4.zip CC256XC_BT_SP/v1.4/initscripts-TIInit_6.12.26_avpr_add-on.bts > $@
190f2eb0907SMatthias Ringwald
19101f72e3dSMatthias Ringwald# v1.5 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
19201f72e3dSMatthias Ringwaldcc256xc_bt_sp_v1.5.zip:
19301f72e3dSMatthias Ringwald	@echo "Downloading $@"
19401f72e3dSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.5.zip
19501f72e3dSMatthias Ringwald
19601f72e3dSMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.5.bts: cc256xc_bt_sp_v1.5.zip
19701f72e3dSMatthias Ringwald	@echo "Extracting $@"
19801f72e3dSMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.5.zip CC256XC_v1.5/v1.5/initscripts-TIInit_6.12.26.bts > $@
19901f72e3dSMatthias Ringwald
20001f72e3dSMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.5.bts: cc256xc_bt_sp_v1.5.zip
20101f72e3dSMatthias Ringwald	@echo "Extracting $@"
20201f72e3dSMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.5.zip CC256XC_v1.5/v1.5/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
20301f72e3dSMatthias Ringwald
20401f72e3dSMatthias Ringwaldinitscripts-TIInit_6.12.26_avpr_add-on_v1.5.bts: cc256xc_bt_sp_v1.5.zip
20501f72e3dSMatthias Ringwald	@echo "Extracting $@"
20601f72e3dSMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.5.zip CC256XC_v1.5/v1.5/initscripts-TIInit_6.12.26_avpr_add-on.bts > $@
20701f72e3dSMatthias Ringwald
208fb873124SMatthias Ringwald# Various scripts for WL chipsets from http://www.ti.com/tool/wl18xx-bt-sp
20937da03daSMatthias Ringwald
2107e3c67e6SMatthias RingwaldTIInit_11.8.32_4.2.bts:
21137da03daSMatthias Ringwald	@echo "Downloading $@"
2127e3c67e6SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_11.8.32_4.2.bts
2137e3c67e6SMatthias Ringwald
2147e3c67e6SMatthias RingwaldTIInit_11.8.32_4.6.bts:
2157e3c67e6SMatthias Ringwald	@echo "Downloading $@"
2167e3c67e6SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_11.8.32_4.6.bts
217d5814ca7SMatthias Ringwald
218fb873124SMatthias RingwaldTIInit_11.8.32_4.7.bts:
219fb873124SMatthias Ringwald	@echo "Downloading $@"
220fb873124SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_11.8.32_4.7.bts
221fb873124SMatthias Ringwald
222*74e22f30SMatthias RingwaldTIInit_11.8.32_4.8.bts:
223*74e22f30SMatthias Ringwald	@echo "Downloading $@"
224*74e22f30SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_11.8.32_4.8.bts
225fb873124SMatthias Ringwald
226d5814ca7SMatthias RingwaldTIInit_12.10.28.bts:
22737da03daSMatthias Ringwald	@echo "Downloading $@"
228a827c5a6SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_12.10.28.bts
229d5814ca7SMatthias Ringwald
230d5814ca7SMatthias RingwaldTIInit_12.8.32.bts:
23137da03daSMatthias Ringwald	@echo "Downloading $@"
232a827c5a6SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_12.8.32.bts
23337da03daSMatthias Ringwald
234d5814ca7SMatthias Ringwald
235638e16f3SMatthias Ringwald
23606ee659aSMatthias Ringwald# convert to .c files based on main file and option add-on
23706ee659aSMatthias Ringwald
238a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.c: bluetooth_init_cc2560_2.44.bts
23906ee659aSMatthias Ringwald	@echo "Creating $@"
24006ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
241a3fe55ccSMatthias Ringwald
242a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.c: bluetooth_init_cc2560A_2.14.bts
24306ee659aSMatthias Ringwald	@echo "Creating $@"
24406ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
245a3fe55ccSMatthias Ringwald
2460e1ffed0SMatthias Ringwaldbluetooth_init_cc2567_2.4.c: CC2567_BT_ANT_Service_Pack_2.4.bts
2470e1ffed0SMatthias Ringwald	@echo "Creating $@"
2480e1ffed0SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
2490e1ffed0SMatthias Ringwald
2500e1ffed0SMatthias Ringwaldbluetooth_init_cc2567_2.8.c: CC256x_BT_Service_Pack_2.8_ANT_1.16.bts
2510e1ffed0SMatthias Ringwald	@echo "Creating $@"
2520e1ffed0SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
2530e1ffed0SMatthias Ringwald
254a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.c: bluetooth_init_cc2564_2.14.bts
25506ee659aSMatthias Ringwald	@echo "Creating $@"
25606ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
257a3fe55ccSMatthias Ringwald
258d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts
25906ee659aSMatthias Ringwald	@echo "Creating $@"
26006ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
261d5814ca7SMatthias Ringwald
262d5814ca7SMatthias Ringwaldbluetooth_init_cc2564B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts BLE_init_cc2564B_1.2.bts
26306ee659aSMatthias Ringwald	@echo "Creating $@"
26406ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
265d5814ca7SMatthias Ringwald
266edc52946SMatthias Ringwaldbluetooth_init_cc2560B_1.4_BT_Spec_4.1.c: TIInit_6.7.16_bt_spec_4.1.bts
26706ee659aSMatthias Ringwald	@echo "Creating $@"
26806ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
269edc52946SMatthias Ringwald
270edc52946SMatthias Ringwaldbluetooth_init_cc2564B_1.4_BT_Spec_4.1.c: TIInit_6.7.16_bt_spec_4.1.bts TIInit_6.7.16_ble_add-on.bts
27106ee659aSMatthias Ringwald	@echo "Creating $@"
27206ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
273a3fe55ccSMatthias Ringwald
2742d0fc1beSMatthias Ringwaldbluetooth_init_cc2560B_1.5_BT_Spec_4.1.c: cc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts
27506ee659aSMatthias Ringwald	@echo "Creating $@"
27606ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
277638e16f3SMatthias Ringwald
2782d0fc1beSMatthias Ringwaldbluetooth_init_cc2564B_1.5_BT_Spec_4.1.c: cc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts cc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_ble_add-on.bts
2792d0fc1beSMatthias Ringwald	@echo "Creating $@"
2802d0fc1beSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
2812d0fc1beSMatthias Ringwald
2822d0fc1beSMatthias Ringwaldbluetooth_init_cc2560B_1.6_BT_Spec_4.1.c: cc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts
2832d0fc1beSMatthias Ringwald	@echo "Creating $@"
2842d0fc1beSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
2852d0fc1beSMatthias Ringwald
2862d0fc1beSMatthias Ringwaldbluetooth_init_cc2564B_1.6_BT_Spec_4.1.c: cc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts cc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_ble_add-on.bts
28706ee659aSMatthias Ringwald	@echo "Creating $@"
28806ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
289638e16f3SMatthias Ringwald
2903d919a60SMatthias Ringwaldbluetooth_init_cc2560B_1.8_BT_Spec_4.1.c: cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts
2913d919a60SMatthias Ringwald	@echo "Creating $@"
2923d919a60SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
2933d919a60SMatthias Ringwald
2946846b044SMatthias Ringwaldbluetooth_init_cc2560B_avpr_1.8_BT_Spec_4.1.c: cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_avpr_add-on.bts
2956846b044SMatthias Ringwald
2966846b044SMatthias Ringwald	@echo "Creating $@"
2976846b044SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
2986846b044SMatthias Ringwald
2993d919a60SMatthias Ringwaldbluetooth_init_cc2564B_1.8_BT_Spec_4.1.c: cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_ble_add-on.bts
3003d919a60SMatthias Ringwald	@echo "Creating $@"
3013d919a60SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
3023d919a60SMatthias Ringwald
3037830d3e6SMatthias Ringwaldbluetooth_init_cc2560C_1.0.c: initscripts-TIInit_6.12.26_v1.0.bts
30406ee659aSMatthias Ringwald	@echo "Creating $@"
30506ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
306638e16f3SMatthias Ringwald
3077830d3e6SMatthias Ringwaldbluetooth_init_cc2564C_1.0.c: initscripts-TIInit_6.12.26_v1.0.bts initscripts-TIInit_6.12.26_ble_add-on_v1.0.bts
30806ee659aSMatthias Ringwald	@echo "Creating $@"
30906ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
310638e16f3SMatthias Ringwald
31114cca92bSMatthias Ringwaldbluetooth_init_cc2560C_1.1.c: initscripts-TIInit_6.12.26_v1.1.bts
31214cca92bSMatthias Ringwald	@echo "Creating $@"
31314cca92bSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
31414cca92bSMatthias Ringwald
31514cca92bSMatthias Ringwaldbluetooth_init_cc2564C_1.1.c: initscripts-TIInit_6.12.26_v1.1.bts initscripts-TIInit_6.12.26_ble_add-on_v1.1.bts
31614cca92bSMatthias Ringwald	@echo "Creating $@"
31714cca92bSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
31814cca92bSMatthias Ringwald
3193d919a60SMatthias Ringwaldbluetooth_init_cc2560C_1.2.c: initscripts-TIInit_6.12.26_v1.2.bts
3203d919a60SMatthias Ringwald	@echo "Creating $@"
3213d919a60SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
3223d919a60SMatthias Ringwald
3233d919a60SMatthias Ringwaldbluetooth_init_cc2564C_1.2.c: initscripts-TIInit_6.12.26_v1.2.bts initscripts-TIInit_6.12.26_ble_add-on_v1.2.bts
3243d919a60SMatthias Ringwald	@echo "Creating $@"
3253d919a60SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
3263d919a60SMatthias Ringwald
3270e0e98b2SMatthias Ringwaldbluetooth_init_cc2560C_1.3.c: initscripts-TIInit_6.12.26_v1.3.bts
3280e0e98b2SMatthias Ringwald	@echo "Creating $@"
3290e0e98b2SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
3300e0e98b2SMatthias Ringwald
3310e0e98b2SMatthias Ringwaldbluetooth_init_cc2564C_1.3.c: initscripts-TIInit_6.12.26_v1.3.bts initscripts-TIInit_6.12.26_ble_add-on_v1.3.bts
3320e0e98b2SMatthias Ringwald	@echo "Creating $@"
3330e0e98b2SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
3340e0e98b2SMatthias Ringwald
335f2eb0907SMatthias Ringwaldbluetooth_init_cc2560C_1.4.c: initscripts-TIInit_6.12.26_v1.4.bts
336f2eb0907SMatthias Ringwald	@echo "Creating $@"
337f2eb0907SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
338f2eb0907SMatthias Ringwald
33915218b79SMatthias Ringwaldbluetooth_init_cc2560C_avpr_1.4.c: initscripts-TIInit_6.12.26_v1.4.bts initscripts-TIInit_6.12.26_avpr_add-on_v1.4.bts
34015218b79SMatthias Ringwald	@echo "Creating $@"
34115218b79SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
34215218b79SMatthias Ringwald
343f2eb0907SMatthias Ringwaldbluetooth_init_cc2564C_1.4.c: initscripts-TIInit_6.12.26_v1.4.bts initscripts-TIInit_6.12.26_ble_add-on_v1.4.bts
344f2eb0907SMatthias Ringwald	@echo "Creating $@"
345f2eb0907SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
346f2eb0907SMatthias Ringwald
34701f72e3dSMatthias Ringwaldbluetooth_init_cc2560C_1.5.c: initscripts-TIInit_6.12.26_v1.5.bts
34801f72e3dSMatthias Ringwald	@echo "Creating $@"
34901f72e3dSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
35001f72e3dSMatthias Ringwald
35101f72e3dSMatthias Ringwaldbluetooth_init_cc2560C_avpr_1.5.c: initscripts-TIInit_6.12.26_v1.5.bts initscripts-TIInit_6.12.26_avpr_add-on_v1.5.bts
35201f72e3dSMatthias Ringwald	@echo "Creating $@"
35301f72e3dSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
35401f72e3dSMatthias Ringwald
35501f72e3dSMatthias Ringwaldbluetooth_init_cc2564C_1.5.c: initscripts-TIInit_6.12.26_v1.5.bts initscripts-TIInit_6.12.26_ble_add-on_v1.5.bts
35601f72e3dSMatthias Ringwald	@echo "Creating $@"
35701f72e3dSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
35801f72e3dSMatthias Ringwald
3590e0e98b2SMatthias Ringwald
3607e3c67e6SMatthias RingwaldTIInit_11.8.32_4.2.c: TIInit_11.8.32_4.2.bts
36106ee659aSMatthias Ringwald	@echo "Creating $@"
36206ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
363d5814ca7SMatthias Ringwald
3647e3c67e6SMatthias RingwaldTIInit_11.8.32_4.6.c: TIInit_11.8.32_4.6.bts
3657e3c67e6SMatthias Ringwald	@echo "Creating $@"
3667e3c67e6SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
3677e3c67e6SMatthias Ringwald
368fb873124SMatthias RingwaldTIInit_11.8.32_4.7.c: TIInit_11.8.32_4.7.bts
369fb873124SMatthias Ringwald	@echo "Creating $@"
370fb873124SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
3717e3c67e6SMatthias Ringwald
372*74e22f30SMatthias RingwaldTIInit_11.8.32_4.8.c: TIInit_11.8.32_4.8.bts
373*74e22f30SMatthias Ringwald	@echo "Creating $@"
374*74e22f30SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
375*74e22f30SMatthias Ringwald
376d5814ca7SMatthias RingwaldTIInit_12.10.28.c: TIInit_12.10.28.bts
37706ee659aSMatthias Ringwald	@echo "Creating $@"
37806ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
379d5814ca7SMatthias Ringwald
380a3fe55ccSMatthias RingwaldTIInit_12.8.32.c: TIInit_12.8.32.bts
38106ee659aSMatthias Ringwald	@echo "Creating $@"
38206ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
383a3fe55ccSMatthias Ringwald
384638e16f3SMatthias Ringwaldall-scripts: \
385638e16f3SMatthias Ringwald	bluetooth_init_cc2560_2.44.c \
386638e16f3SMatthias Ringwald	bluetooth_init_cc2560A_2.14.c \
387638e16f3SMatthias Ringwald	bluetooth_init_cc2564_2.14.bts \
38815218b79SMatthias Ringwald	bluetooth_init_cc2560B_1.8_BT_Spec_4.1.c \
3893d919a60SMatthias Ringwald	bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c \
39015218b79SMatthias Ringwald	bluetooth_init_cc2560C_1.4.c \
39115218b79SMatthias Ringwald	bluetooth_init_cc2560C_avpr_1.4.c \
39215218b79SMatthias Ringwald	bluetooth_init_cc2564C_1.4.c \
39301f72e3dSMatthias Ringwald    bluetooth_init_cc2560C_1.5.c \
39401f72e3dSMatthias Ringwald	bluetooth_init_cc2560C_avpr_1.5.c \
39501f72e3dSMatthias Ringwald    bluetooth_init_cc2564C_1.5.c \
3967e3c67e6SMatthias Ringwald    TIInit_11.8.32_4.2.c \
3977e3c67e6SMatthias Ringwald	TIInit_11.8.32_4.6.c \
398fb873124SMatthias Ringwald	TIInit_11.8.32_4.7.c \
399*74e22f30SMatthias Ringwald	TIInit_11.8.32_4.8.c \
400638e16f3SMatthias Ringwald	TIInit_12.10.28.c \
401638e16f3SMatthias Ringwald	TIInit_12.8.32.c \
402a3fe55ccSMatthias Ringwald
403a3fe55ccSMatthias Ringwaldclean-scripts:
404a827c5a6SMatthias Ringwald	rm -fr cc256x*.zip CC256*.zip bluetooth_init_cc256*.c TIInit*.c *.bts BLE_init_cc256*.c cc256xb_bt_sp_v1.8
405a3fe55ccSMatthias Ringwald
406a3fe55ccSMatthias Ringwald
407