-
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.
* [K32W0] Bring platform diff Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] Add SSBL version retrieval The applications will now print the SSBL version also. If the SSBL doesn't have a version defined, the expected value is 0. Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] Fix SSBL version retrieval SSBL will always be seen as booting from address 0, thanks to the remapping mechanism. This means the SSBL version will always offset from address 0. Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] Add support for simple hash verification Signed-off-by: marius-alex-tache <[email protected]> * [K32W] Add support for BLE callback delegate Application can register callbacks for GAP/GATT events. Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] Add example for registering BLE event callbacks Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] replace to use SecLib API and SecLib mutex * [COMMON] Fix manufacturing flow Signed-off-by: marius-alex-tache <[email protected]> * [COMMON] Add python script to generate certificates Signed-off-by: Axel Le Bourhis <[email protected]> * [common] Update generate_certs script * Add valid_from and lifetime optional parameters * Updated parameters descriptions * Misc improvements Signed-off-by: Axel Le Bourhis <[email protected]> * [COMMON] Update nxp_manufacturing_flow document Updated the document to make use of the new generate_certs.py script. Signed-off-by: Axel Le Bourhis <[email protected]> * [K32W0] Fix function signature Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] Remove duplicate reboot cause set Signed-off-by: marius-alex-tache <[email protected]> * [K32W] Set BLE manager impl pointer before calling InitHostController When adding app BLE callbacks, the sImplInstance pointer is used, so it needs to be set beforehand. Signed-off-by: marius-alex-tache <[email protected]> * [COMMON] Update ot-nxp to release branch Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] Update west manifest to point to 2.6.13 SDK Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] Fix ICD parameters Signed-off-by: Doru Gucea <[email protected]> * [NXP] Bump ot-nxp to latest Signed-off-by: marius-alex-tache <[email protected]> * [NXP] Fix tools lint errors Signed-off-by: marius-alex-tache <[email protected]> * Restyled by whitespace Restyled by clang-format Restyled by gn Restyled by prettier-markdown Restyled by autopep8 Restyled by isort * [NXP] Add extra condition for SDK gn variable to take into account CI Signed-off-by: marius-alex-tache <[email protected]> * Restyled by gn * [NXP] Fix some lint errors Signed-off-by: marius-alex-tache <[email protected]> * [K32W0] Fix include header Signed-off-by: marius-alex-tache <[email protected]> * Restyled by autopep8 * [NXP] Fix lint error Signed-off-by: marius-alex-tache <[email protected]> * [NXP] Update docker image used by the github actions workflow for K32W Signed-off-by: marius-alex-tache <[email protected]> * [K32W1] Add example for registering BLE event callbacks Signed-off-by: marius-alex-tache <[email protected]> * Restyled by clang-format * [NXP] Clarify usage of hash id in factory data. Update MATTER_ROOT to use a more generic path Signed-off-by: marius-alex-tache <[email protected]> --------- Signed-off-by: marius-alex-tache <[email protected]> Signed-off-by: Axel Le Bourhis <[email protected]> Signed-off-by: Doru Gucea <[email protected]> Co-authored-by: Ethan Tan <[email protected]> Co-authored-by: Axel Le Bourhis <[email protected]> Co-authored-by: Doru Gucea <[email protected]> Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
Showing
43 changed files
with
1,426 additions
and
176 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,17 +1,36 @@ | ||
import argparse | ||
import os | ||
import subprocess | ||
|
||
if os.environ["NXP_K32W0_SDK_ROOT"] != "": | ||
sign_images_path = os.environ["NXP_K32W0_SDK_ROOT"] + "/tools/imagetool/sign_images.sh" | ||
else: | ||
sign_images_path = os.getcwd() + "/../../../../../../third_party/nxp/k32w0_sdk/repo/core/tools/imagetool/sign_images.sh" | ||
|
||
# Give execute permission if needed | ||
if os.access(sign_images_path, os.X_OK) is False: | ||
os.chmod(sign_images_path, 0o766) | ||
def main(args): | ||
if os.environ["NXP_K32W0_SDK_ROOT"] != "": | ||
sign_images_path = os.environ["NXP_K32W0_SDK_ROOT"] + "/tools/imagetool/sign_images.sh" | ||
else: | ||
sign_images_path = os.getcwd() + "/../../../../../../../third_party/nxp/k32w0_sdk/repo/core/tools/imagetool/sign_images.sh" | ||
|
||
# Convert script to unix format if needed | ||
subprocess.call("(file " + sign_images_path + " | grep CRLF > /dev/null) && (dos2unix " + sign_images_path + ")", shell=True) | ||
# Give execute permission if needed | ||
if os.access(sign_images_path, os.X_OK) is False: | ||
os.chmod(sign_images_path, 0o766) | ||
|
||
# Call sign_images.sh script with the output directory | ||
subprocess.call(sign_images_path + " " + os.getcwd(), shell=True) | ||
# Convert script to unix format if needed | ||
subprocess.call("(file " + sign_images_path + " | grep CRLF > /dev/null) && (dos2unix " + sign_images_path + ")", shell=True) | ||
|
||
# Call sign_images.sh script with the output directory | ||
cmd = sign_images_path + " " + os.getcwd() | ||
if args.simple_hash: | ||
cmd = cmd + " -SimpleHashVerification" | ||
|
||
subprocess.call(cmd, shell=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument( | ||
"--simple-hash", | ||
help="When enabled, adds a hash of the whole image at the end of the binary.", | ||
action="store_true" | ||
) | ||
args = parser.parse_args() | ||
|
||
main(args) |
Oops, something went wrong.