xref: /btstack/chipset/cc256x/Makefile.inc (revision 638e16f3dfbdcc6cf2f3407e07fe747dc66313a7)
1d5814ca7SMatthias Ringwald#
2d5814ca7SMatthias Ringwald# Makefile to download and convert .bts files from
3d5814ca7SMatthias Ringwald# http://processors.wiki.ti.com/index.php/CC256x_Downloads
4d5814ca7SMatthias Ringwald#
5d5814ca7SMatthias RingwaldBASE_URL = https://git.ti.com/ti-bt/service-packs/blobs/raw/a027ae390d8790e56e1c78136c78fe6537470e91
6edc52946SMatthias RingwaldCONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset/cc256x/convert_bts_init_scripts.py
7d5814ca7SMatthias Ringwald
8a3fe55ccSMatthias Ringwald# first generation CC2560 - TIInit_6.2.31.bts part of .zip archive
9a3fe55ccSMatthias Ringwald
10a3fe55ccSMatthias RingwaldCC2560_BT_SP_BTS.zip:
11a3fe55ccSMatthias Ringwald	curl -O http://processors.wiki.ti.com/images/d/da/CC2560_BT_SP_BTS.zip
12a3fe55ccSMatthias Ringwald
13a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.bts: CC2560_BT_SP_BTS.zip
14a3fe55ccSMatthias Ringwald	unzip CC2560_BT_SP_BTS.zip
15a3fe55ccSMatthias Ringwald	mv CC2560_BT_SP_BTS/bluetooth_init_cc2560_2.44.bts .
16a3fe55ccSMatthias Ringwald	rm -rf CC2560_BT_SP_BTS
17a3fe55ccSMatthias Ringwald
18a3fe55ccSMatthias Ringwald
19a3fe55ccSMatthias Ringwald# second generation CC2560A and CC2564 - TIInit_6.6.15.bts part of .zip archive
20a3fe55ccSMatthias Ringwald
21a3fe55ccSMatthias RingwaldCC2560A_BT_SP_BTS.zip:
22a3fe55ccSMatthias Ringwald	curl -O http://processors.wiki.ti.com/images/e/e7/CC2560A_BT_SP_BTS.zip
23a3fe55ccSMatthias Ringwald
24a3fe55ccSMatthias RingwaldCC2564_BT_BLE_SP_BTS.zip:
25a3fe55ccSMatthias Ringwald	curl -O http://processors.wiki.ti.com/images/1/1e/CC2564_BT_BLE_SP_BTS.zip
26a3fe55ccSMatthias Ringwald
27a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.bts: CC2560A_BT_SP_BTS.zip
28a3fe55ccSMatthias Ringwald	unzip CC2560A_BT_SP_BTS.zip
29a3fe55ccSMatthias Ringwald	mv CC2560A_BT_SP_BTS/bluetooth_init_cc2560a_2.14.bts .
30a3fe55ccSMatthias Ringwald	rm -rf CC2560A_BT_SP_BTS
31a3fe55ccSMatthias Ringwald
32a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.bts: CC2564_BT_BLE_SP_BTS.zip
33a3fe55ccSMatthias Ringwald	unzip CC2564_BT_BLE_SP_BTS.zip
34a3fe55ccSMatthias Ringwald	mv CC2564_BT_BLE_SP_BTS/bluetooth_init_cc2564_2.14.bts .
35a3fe55ccSMatthias Ringwald	rm -rf CC2564_BT_BLE_SP_BTS
36a3fe55ccSMatthias Ringwald
37a3fe55ccSMatthias Ringwald
38*638e16f3SMatthias Ringwald# third generation CC256xB - TIInit_6.6.16.bts part of .zip archive
39a3fe55ccSMatthias Ringwald
40*638e16f3SMatthias Ringwald# versioned files for v1.2 from now unmaintained TI Git Repo
41d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts:
42d5814ca7SMatthias Ringwald	curl -O $(BASE_URL)/bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts
43d5814ca7SMatthias Ringwald
44d5814ca7SMatthias Ringwaldbluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts:
45d5814ca7SMatthias Ringwald	curl -O $(BASE_URL)/bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts
46d5814ca7SMatthias Ringwald
47d5814ca7SMatthias RingwaldBLE_init_cc2564B_1.2.bts:
48d5814ca7SMatthias Ringwald	curl -O $(BASE_URL)/BLE_init_cc2564B_1.2.bts
49d5814ca7SMatthias Ringwald
50*638e16f3SMatthias Ringwald# unversioned files for v1.4 from now unmaintained TI Git Repo
51edc52946SMatthias RingwaldTIInit_6.7.16_bt_spec_4.1.bts:
52edc52946SMatthias Ringwald	curl -O https://git.ti.com/ti-bt/service-packs/blobs/raw/54f5c151dacc608b19ab2ce4c30e27a3983048b2/initscripts/TIInit_6.7.16_bt_spec_4.1.bts
53edc52946SMatthias Ringwald
54edc52946SMatthias RingwaldTIInit_6.7.16_ble_add-on.bts:
55edc52946SMatthias Ringwald	curl -O https://git.ti.com/ti-bt/service-packs/blobs/raw/89c8db14929f10d75627b132690432cd71f5f54f/initscripts/TIInit_6.7.16_ble_add-on.bts
56edc52946SMatthias Ringwald
57*638e16f3SMatthias Ringwald# unversioned files for v1.5 from TI Download Center - requires log-in and accepting export restrictions
58*638e16f3SMatthias Ringwaldinitscripts-TIInit_6.7.16_bt_spec_4.1.bts:
59*638e16f3SMatthias Ringwald	@echo "Please download the Service Pack for the CC256xB from http://www.ti.com/tool/cc256xb-bt-sp and place 'initscripts-TIInit_6.7.16_bt_spec_4.1.bts' in this folder"
60*638e16f3SMatthias Ringwald	@exit 10
61*638e16f3SMatthias Ringwald
62*638e16f3SMatthias Ringwaldinitscripts-TIInit_6.7.16_ble_add-on.bts:
63*638e16f3SMatthias Ringwald	@echo "Please download the Service Pack for the CC256xB from http://www.ti.com/tool/cc256xb-bt-sp and place 'initscripts-TIInit_6.7.16_ble_add-on.bts' in this folder"
64*638e16f3SMatthias Ringwald	@exit 10
65*638e16f3SMatthias Ringwald
66*638e16f3SMatthias Ringwald# fourth generation CC256xC - TIInit_6.12.26.bts part of .zip archive
67*638e16f3SMatthias Ringwald
68*638e16f3SMatthias Ringwald# unversioned files for v1.0 from TI Download Center - requires log-in and accepting export restrictions
69*638e16f3SMatthias Ringwaldinitscripts-TIInit_6.12.26.bts:
70*638e16f3SMatthias Ringwald	@echo "Please download the Service Pack for the CC256xC from http://www.ti.com/tool/cc256xc-bt-sp and place 'initscripts-TIInit_6.12.26.bts' in this folder"
71*638e16f3SMatthias Ringwald	@exit 10
72*638e16f3SMatthias Ringwald
73*638e16f3SMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on.bts:
74*638e16f3SMatthias Ringwald	@echo "Please download the Service Pack for the CC256xC from http://www.ti.com/tool/cc256xc-bt-sp and place 'initscripts-TIInit_6.12.26_ble_add-on.bts' in this folder"
75*638e16f3SMatthias Ringwald	@exit 10
76*638e16f3SMatthias Ringwald
77*638e16f3SMatthias Ringwald
78edc52946SMatthias Ringwald# WL chipset
79d5814ca7SMatthias RingwaldTIInit_11.8.32.bts:
80d5814ca7SMatthias Ringwald	curl -O $(BASE_URL)/TIInit_11.8.32.bts
81d5814ca7SMatthias Ringwald
82d5814ca7SMatthias RingwaldTIInit_12.10.28.bts:
83d5814ca7SMatthias Ringwald	curl -O $(BASE_URL)/TIInit_12.10.28.bts
84d5814ca7SMatthias Ringwald
85d5814ca7SMatthias RingwaldTIInit_12.8.32.bts:
86d5814ca7SMatthias Ringwald	curl -O $(BASE_URL)/TIInit_12.8.32.bts
87d5814ca7SMatthias Ringwald
88*638e16f3SMatthias Ringwald
89d5814ca7SMatthias Ringwald# convert to .c files
90a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.c: bluetooth_init_cc2560_2.44.bts
91a3fe55ccSMatthias Ringwald	$(CONVERSION_SCRIPT)
92a3fe55ccSMatthias Ringwald
93a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.c: bluetooth_init_cc2560A_2.14.bts
94a3fe55ccSMatthias Ringwald	$(CONVERSION_SCRIPT)
95a3fe55ccSMatthias Ringwald
96a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.c: bluetooth_init_cc2564_2.14.bts
97a3fe55ccSMatthias Ringwald	$(CONVERSION_SCRIPT)
98a3fe55ccSMatthias Ringwald
99d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts
100d5814ca7SMatthias Ringwald	$(CONVERSION_SCRIPT)
101d5814ca7SMatthias Ringwald
102d5814ca7SMatthias 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
103d5814ca7SMatthias Ringwald	$(CONVERSION_SCRIPT)
104d5814ca7SMatthias Ringwald
105edc52946SMatthias Ringwaldbluetooth_init_cc2560B_1.4_BT_Spec_4.1.c: TIInit_6.7.16_bt_spec_4.1.bts
106edc52946SMatthias Ringwald	cp TIInit_6.7.16_bt_spec_4.1.bts bluetooth_init_cc2560B_1.4_BT_Spec_4.1.bts
107edc52946SMatthias Ringwald	$(CONVERSION_SCRIPT)
108edc52946SMatthias Ringwald
109edc52946SMatthias 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
110edc52946SMatthias Ringwald	cp TIInit_6.7.16_bt_spec_4.1.bts bluetooth_init_cc2564B_1.4_BT_Spec_4.1.bts
111edc52946SMatthias Ringwald	cp TIInit_6.7.16_ble_add-on.bts  BLE_init_cc2564B_1.4.bts
112edc52946SMatthias Ringwald	$(CONVERSION_SCRIPT)
113a3fe55ccSMatthias Ringwald
114*638e16f3SMatthias Ringwaldbluetooth_init_cc2560B_1.5_BT_Spec_4.1.c: initscripts-TIInit_6.7.16_bt_spec_4.1.bts
115*638e16f3SMatthias Ringwald	cp initscripts-TIInit_6.7.16_bt_spec_4.1.bts bluetooth_init_cc2564B_1.5_BT_Spec_4.1.bts
116*638e16f3SMatthias Ringwald	$(CONVERSION_SCRIPT)
117*638e16f3SMatthias Ringwald
118*638e16f3SMatthias Ringwaldbluetooth_init_cc2564B_1.5_BT_Spec_4.1.c: initscripts-TIInit_6.7.16_bt_spec_4.1.bts initscripts-TIInit_6.7.16_ble_add-on.bts
119*638e16f3SMatthias Ringwald	cp initscripts-TIInit_6.7.16_bt_spec_4.1.bts bluetooth_init_cc2564B_1.5_BT_Spec_4.1.bts
120*638e16f3SMatthias Ringwald	cp initscripts-TIInit_6.7.16_ble_add-on.bts  BLE_init_cc2564B_1.5.bts
121*638e16f3SMatthias Ringwald	$(CONVERSION_SCRIPT)
122*638e16f3SMatthias Ringwald
123*638e16f3SMatthias Ringwaldbluetooth_init_cc2560C_1.0.c: initscripts-TIInit_6.12.26.bts
124*638e16f3SMatthias Ringwald	cp initscripts-TIInit_6.12.26.bts bluetooth_init_cc2564C_1.0.bts
125*638e16f3SMatthias Ringwald	$(CONVERSION_SCRIPT)
126*638e16f3SMatthias Ringwald
127*638e16f3SMatthias Ringwaldbluetooth_init_cc2564C_1.0.c: initscripts-TIInit_6.12.26.bts initscripts-TIInit_6.12.26_ble_add-on.bts
128*638e16f3SMatthias Ringwald	cp initscripts-TIInit_6.12.26_bt_spec_4.2.bts bluetooth_init_cc2564C_1.0.bts
129*638e16f3SMatthias Ringwald	cp initscripts-TIInit_6.12.26_ble_add-on.bts  BLE_init_cc2564C_1.0.bts
130*638e16f3SMatthias Ringwald	$(CONVERSION_SCRIPT)
131*638e16f3SMatthias Ringwald
132d5814ca7SMatthias RingwaldTIInit_11.8.32.c: TIInit_11.8.32.bts
133d5814ca7SMatthias Ringwald	$(CONVERSION_SCRIPT)
134d5814ca7SMatthias Ringwald
135d5814ca7SMatthias RingwaldTIInit_12.10.28.c: TIInit_12.10.28.bts
136d5814ca7SMatthias Ringwald	$(CONVERSION_SCRIPT)
137d5814ca7SMatthias Ringwald
138a3fe55ccSMatthias RingwaldTIInit_12.8.32.c: TIInit_12.8.32.bts
139d5814ca7SMatthias Ringwald	$(CONVERSION_SCRIPT)
140a3fe55ccSMatthias Ringwald
141*638e16f3SMatthias Ringwaldall-scripts: \
142*638e16f3SMatthias Ringwald	bluetooth_init_cc2560_2.44.c \
143*638e16f3SMatthias Ringwald	bluetooth_init_cc2560A_2.14.c \
144*638e16f3SMatthias Ringwald	bluetooth_init_cc2564_2.14.bts \
145*638e16f3SMatthias Ringwald	bluetooth_init_cc2560B_1.4_BT_Spec_4.1.c \
146*638e16f3SMatthias Ringwald	bluetooth_init_cc2564B_1.4_BT_Spec_4.1.c \
147*638e16f3SMatthias Ringwald	bluetooth_init_cc2560B_1.5_BT_Spec_4.1.c \
148*638e16f3SMatthias Ringwald	bluetooth_init_cc2564B_1.5_BT_Spec_4.1.c \
149*638e16f3SMatthias Ringwald	bluetooth_init_cc2560C_1.0.c \
150*638e16f3SMatthias Ringwald	bluetooth_init_cc2564C_1.0.c \
151*638e16f3SMatthias Ringwald	TIInit_11.8.32.c \
152*638e16f3SMatthias Ringwald	TIInit_12.10.28.c \
153*638e16f3SMatthias Ringwald	TIInit_12.8.32.c \
154a3fe55ccSMatthias Ringwald
155a3fe55ccSMatthias Ringwaldclean-scripts:
156a3fe55ccSMatthias Ringwald	rm -fr CC256*.zip bluetooth_init_cc256*.bts bluetooth_init_cc256*.c TIInit_*.bts TIInit_*.c BLE_init_cc256*.bts BLE_init_cc256*.c
157a3fe55ccSMatthias Ringwald
158a3fe55ccSMatthias Ringwald
159