Skip to content

Commit

Permalink
Update to Latest Simplelink SDK, implement prebuild step for drivers…
Browse files Browse the repository at this point in the history
… generation
  • Loading branch information
adabreuti committed Oct 25, 2023
1 parent 6be397c commit 1658276
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions third_party/ti_simplelink_sdk/run_sdk_drivers_gen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2020 Texas Instruments Incorporated

"""A wrapper to run the SDK makefiles for Platform driver generation
Args:
1. [TI Simplelink SDK Root]
2. [Matter repository Root]
"""

import subprocess
import sys

SDK_ROOT=sys.argv[1]
CHIP_ROOT=sys.argv[2]

GCC_ARMCOMPILER_PATH= CHIP_ROOT + "/.environment/cipd/packages/arm/"
make_command = ["make", "-C" ,SDK_ROOT,"CMAKE=cmake","GCC_ARMCOMPILER=" + GCC_ARMCOMPILER_PATH,"IAR_ARMCOMPILER=","TICLANG_ARMCOMPILER=","GENERATOR=Ninja"]

ret = subprocess.call(make_command)
sys.exit(ret)
7 changes: 7 additions & 0 deletions third_party/ti_simplelink_sdk/ti_simplelink_executable.gni
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ assert(matter_software_ver_str != "",
template("ti_simplelink_executable") {
simplelink_target_name = target_name

# Run prebuild SDK driver generation
if (ti_simplelink_device_family == "cc13x2x7_26x2x7" ||
ti_simplelink_device_family == "cc13x4_26x4") {
exec_script("${ti_simplelink_sdk_build_root}/run_sdk_drivers_gen.py", [ rebase_path(ti_simplelink_sdk_root), rebase_path(chip_root)], "")

}

if (chip_enable_ota_requestor) {
# Generating the ota binary image
final_target = "${target_name}.ota"
Expand Down

0 comments on commit 1658276

Please sign in to comment.