Handle TI CC256x Initscripts with new initscripts_TIInit_* name

This commit is contained in:
Matthias Ringwald 2015-09-19 21:27:36 +02:00
parent 69fd3b4b73
commit a0eaf5316f
2 changed files with 19 additions and 2 deletions

View File

@ -274,13 +274,19 @@ if not files:
# convert each of them
for name in files:
name_lower = name.lower()
# skip BLE and AVRP add-ons
if name.lower().startswith('ble_init_cc'):
if name_lower.startswith('ble_init_cc'):
print "Skipping BLE add-on", name
continue
if name.lower().startswith('avpr_init_cc'):
if name_lower.startswith('avpr_init_cc'):
print "Skipping AVPR add-on", name
continue
if re.match("initscripts_tiinit_.*_ble_add-on.bts", name_lower):
print "Skipping BLE add-on", name
continue
if re.match("initscripts_tiinit_.*_avpr_add-on.bts", name_lower):
print "Skipping AVPR add-on", name
# check for BLE add-on
add_on = ""
@ -291,6 +297,13 @@ for name in files:
add_on = potential_add_on
print "Found", add_on, "add on for", name
name_parts = re.match('initscripts_TIInit_(\d*\.\d*\.\d*)_.*.bts', name)
if name_parts:
potential_add_on = 'initscripts_TIInit_%s_ble_add-on.bts' % name_parts.group(1)
if os.path.isfile(potential_add_on):
add_on = potential_add_on
print "Found", add_on, "add on for", name
convert_bts(name, add_on)
# done

View File

@ -176,6 +176,10 @@ the BLE part. The conversion script has been updated to detect
*bluetooth_init_cc256x_1.2.bts* and adds *BLE_init_cc256x_1.2.bts*
if present and merges them into a single .c file.
**Update 2:** In May 2015, TI renamed the init scripts to match
the naming scheme previously used on Linux systems. The conversion
script has been updated to also detect *initscripts_TIInit_6.7.16_bt_spec_4.1.bts*
and integrates *initscripts_TIInit_6.7.16_ble_add-on.bts* if present.
### MSP-EXP430F5438 + CC256x Platform {#sec:platformMSP430QuickStart}