xref: /btstack/chipset/cc256x/Makefile.inc (revision fc8c9c93cb1d75cfefb24317c21f5a15c4e276d1)
1d5814ca7SMatthias Ringwald#
237da03daSMatthias Ringwald# Makefile to download and convert TI's CC256x Service Pack .bts files from
3d5814ca7SMatthias Ringwald# http://processors.wiki.ti.com/index.php/CC256x_Downloads
4d5814ca7SMatthias Ringwald#
537da03daSMatthias Ringwald# Service Packs for CC256xB v1.5 and CC256xC v1.0 downloaded from BlueKitchen company website
637da03daSMatthias Ringwald# https://e2e.ti.com/support/wireless_connectivity/bluetooth_cc256x/f/660/p/560523/2056007#2056007
737da03daSMatthias Ringwald
837da03daSMatthias RingwaldTI_GIT_REPO_URL = https://git.ti.com/ti-bt/service-packs/blobs/raw/a027ae390d8790e56e1c78136c78fe6537470e91
937da03daSMatthias RingwaldBLUEKITCHEN_URL = https://bluekitchen-gmbh.com/files/
10edc52946SMatthias RingwaldCONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset/cc256x/convert_bts_init_scripts.py
11d5814ca7SMatthias Ringwald
1237da03daSMatthias Ringwald
1337da03daSMatthias Ringwald# First generation CC2560 - AKA TIInit_6.2.31.bts
1437da03daSMatthias Ringwald
1537da03daSMatthias Ringwald# v2.44 - file part of .zip archive
16a3fe55ccSMatthias Ringwald
17a3fe55ccSMatthias RingwaldCC2560_BT_SP_BTS.zip:
1837da03daSMatthias Ringwald	@echo "Downloading $@"
1937da03daSMatthias Ringwald	@curl -sS -O http://processors.wiki.ti.com/images/d/da/CC2560_BT_SP_BTS.zip
20a3fe55ccSMatthias Ringwald
21a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.bts: CC2560_BT_SP_BTS.zip
2237da03daSMatthias Ringwald	@echo "Extracting $@"
2337da03daSMatthias Ringwald	@unzip -q -j -o CC2560_BT_SP_BTS.zip CC2560_BT_SP_BTS/bluetooth_init_cc2560_2.44.bts
24a3fe55ccSMatthias Ringwald
2537da03daSMatthias Ringwald# Second generation CC2560A and CC2564 - AKA TIInit_6.6.15.bts
26a3fe55ccSMatthias Ringwald
2737da03daSMatthias Ringwald# v2.14 - files part of .zip archive
28a3fe55ccSMatthias Ringwald
29a3fe55ccSMatthias RingwaldCC2560A_BT_SP_BTS.zip:
3037da03daSMatthias Ringwald	@echo "Downloading $@"
3106ee659aSMatthias Ringwald	@curl -sS -O http://processors.wiki.ti.com/images/e/e7/CC2560A_BT_SP_BTS.zip
32a3fe55ccSMatthias Ringwald
33a3fe55ccSMatthias RingwaldCC2564_BT_BLE_SP_BTS.zip:
3437da03daSMatthias Ringwald	@echo "Downloading $@"
3506ee659aSMatthias Ringwald	@curl -sS -O http://processors.wiki.ti.com/images/1/1e/CC2564_BT_BLE_SP_BTS.zip
36a3fe55ccSMatthias Ringwald
37a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.bts: CC2560A_BT_SP_BTS.zip
3837da03daSMatthias Ringwald	@echo "Extracting $@"
3937da03daSMatthias Ringwald	@unzip -q -j -o CC2560A_BT_SP_BTS.zip CC2560A_BT_SP_BTS/bluetooth_init_cc2560A_2.14.bts
40a3fe55ccSMatthias Ringwald
41a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.bts: CC2564_BT_BLE_SP_BTS.zip
4237da03daSMatthias Ringwald	@echo "Extracting $@"
4337da03daSMatthias Ringwald	@unzip -q -j -o CC2564_BT_BLE_SP_BTS.zip CC2564_BT_BLE_SP_BTS/bluetooth_init_cc2564_2.14.bts
44a3fe55ccSMatthias Ringwald
452d0fc1beSMatthias Ringwald# Third generation CC256xB - AKA TIInit_6.7.16.bts
46a3fe55ccSMatthias Ringwald
4737da03daSMatthias Ringwald# v1.2 - versioned files TI Git Repo
48d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts:
4937da03daSMatthias Ringwald	@echo "Downloading $@"
5006ee659aSMatthias Ringwald	@curl -sS -O $(TI_GIT_REPO_URL)/bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts
51d5814ca7SMatthias Ringwald
52d5814ca7SMatthias Ringwaldbluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts:
5337da03daSMatthias Ringwald	@echo "Downloading $@"
5406ee659aSMatthias Ringwald	@curl -sS -O $(TI_GIT_REPO_URL)/bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts
55d5814ca7SMatthias Ringwald
56d5814ca7SMatthias RingwaldBLE_init_cc2564B_1.2.bts:
5737da03daSMatthias Ringwald	@echo "Downloading $@"
5806ee659aSMatthias Ringwald	@curl -sS -O $(TI_GIT_REPO_URL)/BLE_init_cc2564B_1.2.bts
59d5814ca7SMatthias Ringwald
6037da03daSMatthias Ringwald# v1.4 - versioned files TI Git Repo
61edc52946SMatthias RingwaldTIInit_6.7.16_bt_spec_4.1.bts:
6237da03daSMatthias Ringwald	@echo "Downloading $@"
6306ee659aSMatthias Ringwald	@curl -sS -O https://git.ti.com/ti-bt/service-packs/blobs/raw/54f5c151dacc608b19ab2ce4c30e27a3983048b2/initscripts/TIInit_6.7.16_bt_spec_4.1.bts
64edc52946SMatthias Ringwald
65edc52946SMatthias RingwaldTIInit_6.7.16_ble_add-on.bts:
6637da03daSMatthias Ringwald	@echo "Downloading $@"
6706ee659aSMatthias Ringwald	@curl -sS -O https://git.ti.com/ti-bt/service-packs/blobs/raw/89c8db14929f10d75627b132690432cd71f5f54f/initscripts/TIInit_6.7.16_ble_add-on.bts
68edc52946SMatthias Ringwald
6937da03daSMatthias Ringwald# v1.5 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xb-bt-sp
7037da03daSMatthias Ringwaldcc256x_bt_sp_v1.5.zip:
7137da03daSMatthias Ringwald	echo "Downloading $@"
7206ee659aSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256x_bt_sp_v1.5.zip
73638e16f3SMatthias Ringwald
742d0fc1beSMatthias Ringwaldcc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts: cc256x_bt_sp_v1.5.zip
7537da03daSMatthias Ringwald	@echo "Extracting $@"
762d0fc1beSMatthias Ringwald	@mkdir -p cc256x_bt_sp_v1.5
772d0fc1beSMatthias 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
78638e16f3SMatthias Ringwald
792d0fc1beSMatthias Ringwaldcc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256x_bt_sp_v1.5.zip
8037da03daSMatthias Ringwald	@echo "Extracting $@"
812d0fc1beSMatthias Ringwald	@mkdir -p cc256x_bt_sp_v1.5
822d0fc1beSMatthias 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
832d0fc1beSMatthias Ringwald
842d0fc1beSMatthias Ringwald# v1.6 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xb-bt-sp
852d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6.zip:
862d0fc1beSMatthias Ringwald	echo "Downloading $@"
872d0fc1beSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xb_bt_sp_v1.6.zip
882d0fc1beSMatthias Ringwald
892d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts: cc256xb_bt_sp_v1.6.zip
902d0fc1beSMatthias Ringwald	@echo "Extracting $@"
912d0fc1beSMatthias Ringwald	@mkdir -p cc256xb_bt_sp_v1.6
922d0fc1beSMatthias 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
932d0fc1beSMatthias Ringwald
942d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256xb_bt_sp_v1.6.zip
952d0fc1beSMatthias Ringwald	@echo "Extracting $@"
962d0fc1beSMatthias Ringwald	@mkdir -p cc256xb_bt_sp_v1.6
972d0fc1beSMatthias 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
98638e16f3SMatthias Ringwald
99638e16f3SMatthias Ringwald
10037da03daSMatthias Ringwald# Fourth generation CC256xC - TIInit_6.12.26.bts
10137da03daSMatthias Ringwald
10237da03daSMatthias Ringwald# v1.0 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
10337da03daSMatthias Ringwaldcc256xc_bt_sp_v1.0.zip:
10437da03daSMatthias Ringwald	@echo "Downloading $@"
10506ee659aSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.0.zip
10637da03daSMatthias Ringwald
1077830d3e6SMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.0.bts: cc256xc_bt_sp_v1.0.zip
10837da03daSMatthias Ringwald	@echo "Extracting $@"
1097830d3e6SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.0.zip CC256XC_BT_SP/v1.0/initscripts-TIInit_6.12.26.bts > $@
11037da03daSMatthias Ringwald
1117830d3e6SMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.0.bts: cc256xc_bt_sp_v1.0.zip
11237da03daSMatthias Ringwald	@echo "Extracting $@"
1137830d3e6SMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.0.zip CC256XC_BT_SP/v1.0/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
11437da03daSMatthias Ringwald
11514cca92bSMatthias Ringwald# v1.1 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
11614cca92bSMatthias Ringwaldcc256xc_bt_sp_v1.1.zip:
11714cca92bSMatthias Ringwald	@echo "Downloading $@"
11814cca92bSMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.1.zip
11914cca92bSMatthias Ringwald
12014cca92bSMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.1.bts: cc256xc_bt_sp_v1.1.zip
12114cca92bSMatthias Ringwald	@echo "Extracting $@"
12214cca92bSMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.1.zip CC256XC_BT_SP/v1.1/initscripts-TIInit_6.12.26.bts > $@
12314cca92bSMatthias Ringwald
12414cca92bSMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.1.bts: cc256xc_bt_sp_v1.1.zip
12514cca92bSMatthias Ringwald	@echo "Extracting $@"
12614cca92bSMatthias Ringwald	@unzip -q -p cc256xc_bt_sp_v1.1.zip CC256XC_BT_SP/v1.1/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
12714cca92bSMatthias Ringwald
12837da03daSMatthias Ringwald
12937da03daSMatthias Ringwald# Various scripts for WL chipsets
13037da03daSMatthias Ringwald
13145999011SMatthias Ringwald# V4.2 from BlueKitchen website, original: http://www.ti.com/tool/wl18xx-bt-sp
132d5814ca7SMatthias RingwaldTIInit_11.8.32.bts:
13337da03daSMatthias Ringwald	@echo "Downloading $@"
13445999011SMatthias Ringwald	@curl -sS -O $(BLUEKITCHEN_URL)/TIInit_11.8.32.bts
135d5814ca7SMatthias Ringwald
136d5814ca7SMatthias RingwaldTIInit_12.10.28.bts:
13737da03daSMatthias Ringwald	@echo "Downloading $@"
13806ee659aSMatthias Ringwald	@curl -sS -O $(TI_GIT_REPO_URL)/TIInit_12.10.28.bts
139d5814ca7SMatthias Ringwald
140d5814ca7SMatthias RingwaldTIInit_12.8.32.bts:
14137da03daSMatthias Ringwald	@echo "Downloading $@"
14206ee659aSMatthias Ringwald	@curl -sS -O $(TI_GIT_REPO_URL)/TIInit_12.8.32.bts
14337da03daSMatthias Ringwald
144d5814ca7SMatthias Ringwald
145638e16f3SMatthias Ringwald
14606ee659aSMatthias Ringwald# convert to .c files based on main file and option add-on
14706ee659aSMatthias Ringwald
148a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.c: bluetooth_init_cc2560_2.44.bts
14906ee659aSMatthias Ringwald	@echo "Creating $@"
15006ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
151a3fe55ccSMatthias Ringwald
152a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.c: bluetooth_init_cc2560A_2.14.bts
15306ee659aSMatthias Ringwald	@echo "Creating $@"
15406ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
155a3fe55ccSMatthias Ringwald
1560e1ffed0SMatthias Ringwaldbluetooth_init_cc2567_2.4.c: CC2567_BT_ANT_Service_Pack_2.4.bts
1570e1ffed0SMatthias Ringwald	@echo "Creating $@"
1580e1ffed0SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
1590e1ffed0SMatthias Ringwald
1600e1ffed0SMatthias Ringwaldbluetooth_init_cc2567_2.8.c: CC256x_BT_Service_Pack_2.8_ANT_1.16.bts
1610e1ffed0SMatthias Ringwald	@echo "Creating $@"
1620e1ffed0SMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
1630e1ffed0SMatthias Ringwald
164a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.c: bluetooth_init_cc2564_2.14.bts
16506ee659aSMatthias Ringwald	@echo "Creating $@"
16606ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
167a3fe55ccSMatthias Ringwald
168d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts
16906ee659aSMatthias Ringwald	@echo "Creating $@"
17006ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
171d5814ca7SMatthias Ringwald
172d5814ca7SMatthias 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
17306ee659aSMatthias Ringwald	@echo "Creating $@"
17406ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
175d5814ca7SMatthias Ringwald
176edc52946SMatthias Ringwaldbluetooth_init_cc2560B_1.4_BT_Spec_4.1.c: TIInit_6.7.16_bt_spec_4.1.bts
17706ee659aSMatthias Ringwald	@echo "Creating $@"
17806ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
179edc52946SMatthias Ringwald
180edc52946SMatthias 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
18106ee659aSMatthias Ringwald	@echo "Creating $@"
18206ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
183a3fe55ccSMatthias Ringwald
1842d0fc1beSMatthias 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
18506ee659aSMatthias Ringwald	@echo "Creating $@"
18606ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
187638e16f3SMatthias Ringwald
1882d0fc1beSMatthias 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
1892d0fc1beSMatthias Ringwald	@echo "Creating $@"
1902d0fc1beSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
1912d0fc1beSMatthias Ringwald
1922d0fc1beSMatthias 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
1932d0fc1beSMatthias Ringwald	@echo "Creating $@"
1942d0fc1beSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
1952d0fc1beSMatthias Ringwald
1962d0fc1beSMatthias 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
19706ee659aSMatthias Ringwald	@echo "Creating $@"
19806ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
199638e16f3SMatthias Ringwald
2007830d3e6SMatthias Ringwaldbluetooth_init_cc2560C_1.0.c: initscripts-TIInit_6.12.26_v1.0.bts
20106ee659aSMatthias Ringwald	@echo "Creating $@"
20206ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
203638e16f3SMatthias Ringwald
2047830d3e6SMatthias 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
20506ee659aSMatthias Ringwald	@echo "Creating $@"
20606ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
207638e16f3SMatthias Ringwald
20814cca92bSMatthias Ringwaldbluetooth_init_cc2560C_1.1.c: initscripts-TIInit_6.12.26_v1.1.bts
20914cca92bSMatthias Ringwald	@echo "Creating $@"
21014cca92bSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
21114cca92bSMatthias Ringwald
21214cca92bSMatthias 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
21314cca92bSMatthias Ringwald	@echo "Creating $@"
21414cca92bSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
21514cca92bSMatthias Ringwald
216d5814ca7SMatthias RingwaldTIInit_11.8.32.c: TIInit_11.8.32.bts
21706ee659aSMatthias Ringwald	@echo "Creating $@"
21806ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
219d5814ca7SMatthias Ringwald
220d5814ca7SMatthias RingwaldTIInit_12.10.28.c: TIInit_12.10.28.bts
22106ee659aSMatthias Ringwald	@echo "Creating $@"
22206ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
223d5814ca7SMatthias Ringwald
224a3fe55ccSMatthias RingwaldTIInit_12.8.32.c: TIInit_12.8.32.bts
22506ee659aSMatthias Ringwald	@echo "Creating $@"
22606ee659aSMatthias Ringwald	@$(CONVERSION_SCRIPT) $^ $@
227a3fe55ccSMatthias Ringwald
228638e16f3SMatthias Ringwaldall-scripts: \
229638e16f3SMatthias Ringwald	bluetooth_init_cc2560_2.44.c \
230638e16f3SMatthias Ringwald	bluetooth_init_cc2560A_2.14.c \
231638e16f3SMatthias Ringwald	bluetooth_init_cc2564_2.14.bts \
232638e16f3SMatthias Ringwald	bluetooth_init_cc2560B_1.4_BT_Spec_4.1.c \
233638e16f3SMatthias Ringwald	bluetooth_init_cc2564B_1.4_BT_Spec_4.1.c \
234638e16f3SMatthias Ringwald	bluetooth_init_cc2560B_1.5_BT_Spec_4.1.c \
235638e16f3SMatthias Ringwald	bluetooth_init_cc2564B_1.5_BT_Spec_4.1.c \
236638e16f3SMatthias Ringwald	bluetooth_init_cc2560C_1.0.c \
237*fc8c9c93SMatthias Ringwald	bluetooth_init_cc2560C_1.1.c \
238638e16f3SMatthias Ringwald	bluetooth_init_cc2564C_1.0.c \
239*fc8c9c93SMatthias Ringwald	bluetooth_init_cc2564C_1.1.c \
240638e16f3SMatthias Ringwald	TIInit_11.8.32.c \
241638e16f3SMatthias Ringwald	TIInit_12.10.28.c \
242638e16f3SMatthias Ringwald	TIInit_12.8.32.c \
243a3fe55ccSMatthias Ringwald
244a3fe55ccSMatthias Ringwaldclean-scripts:
24537da03daSMatthias Ringwald	rm -fr cc256x*.zip CC256*.zip bluetooth_init_cc256*.c TIInit*.c *.bts BLE_init_cc256*.c
246a3fe55ccSMatthias Ringwald
247a3fe55ccSMatthias Ringwald
248