Skip to content

Commit

Permalink
Applications: nrf5340_audio: Removed manual signing script
Browse files Browse the repository at this point in the history
Standard tools shall now be used to sign images.
OCT-2907

Signed-off-by: Kristoffer Rist Skøien <[email protected]>
  • Loading branch information
koffes committed Apr 4, 2024
1 parent 2f92d88 commit 05ef375
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 328 deletions.
309 changes: 0 additions & 309 deletions applications/nrf5340_audio/tools/buildprog/ble5-ctr-rpmsg_sign.py

This file was deleted.

19 changes: 11 additions & 8 deletions applications/nrf5340_audio/tools/buildprog/buildprog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import subprocess
import re
import getpass
from pathlib import Path
from colorama import Fore, Style
from prettytable import PrettyTable
from nrf5340_audio_dk_devices import (
Expand All @@ -28,7 +29,6 @@
Core,
)
from program import program_threads_run
from pathlib import Path


BUILDPROG_FOLDER = Path(__file__).resolve().parent
Expand Down Expand Up @@ -84,9 +84,11 @@ def __print_dev_conf(device_list):
print(table)


def __build_cmd_get(core: Core, device: AudioDevice, build: BuildType, pristine, child_image, options):
def __build_cmd_get(core: Core, device: AudioDevice, build: BuildType,
pristine, child_image, options):
if core == Core.app:
build_cmd = f"west build {TARGET_CORE_APP_FOLDER} -b {TARGET_BOARD_NRF5340_AUDIO_DK_APP_NAME}"
build_cmd = (f"west build {TARGET_CORE_APP_FOLDER} "
f"-b {TARGET_BOARD_NRF5340_AUDIO_DK_APP_NAME}")
if device == AudioDevice.headset:
device_flag = "-DCONFIG_AUDIO_DEV=1"
dest_folder = TARGET_DEV_HEADSET_FOLDER
Expand Down Expand Up @@ -212,8 +214,9 @@ def __main():
"This script builds and programs the nRF5340 "
"Audio project on Windows and Linux"
),
epilog=("If there exists an environmental variable called \"AUDIO_KIT_SERIAL_NUMBERS_JSON\" which contains"
"the location of a json file, the program will use this file as a substitute for nrf5340_audio_dk_devices.json"),
epilog=("If there exists an environmental variable called \"AUDIO_KIT_SERIAL_NUMBERS_JSON\""
"which contains the location of a json file,"
"the program will use this file as a substitute for nrf5340_audio_dk_devices.json"),
allow_abbrev=False
)
parser.add_argument(
Expand Down Expand Up @@ -268,8 +271,7 @@ def __main():
action="store_true",
dest="sequential_prog",
default=False,
help="Run nrfjprog sequentially instead of in \
parallel",
help="Run nrfjprog sequentially instead of in parallel",
)
parser.add_argument(
"-f",
Expand Down Expand Up @@ -300,7 +302,8 @@ def __main():
action="store_true",
dest="user_bt_name",
default=False,
help="Set to generate a user specific Bluetooth device name. Note that this will put the computer user name on air in clear text",
help="Set to generate a user specific Bluetooth device name.\
Note that this will put the computer user name on air in clear text",
)

options = parser.parse_args(args=sys.argv[1:])
Expand Down
Loading

0 comments on commit 05ef375

Please sign in to comment.