-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Latest Simplelink SDK, implement prebuild step for drivers…
… generation
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters