Skip to content

Commit

Permalink
Update logic a bit to use log level for low power
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin authored and andy31415 committed Oct 15, 2024
1 parent 0fd1611 commit 9551909
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/build/builders/nxp.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,18 @@ def __init__(
self.enable_factory_data_build = enable_factory_data_build
self.disable_pairing_autostart = disable_pairing_autostart
self.board_variant = board_variant
self.log_level = log_level
if self.low_power:
if log_level != NxpLogLevel.NONE:
logging.warning("Switching log level to 'NONE' for low power build")
self.log_level = NxpLogLevel.NONE
else:
self.log_level = log_level

def GnBuildArgs(self):
args = []

if self.low_power:
args.append("chip_with_low_power=1 chip_logging=false")
args.append("chip_with_low_power=1")
if self.board == NxpBoard.K32W0:
args.append("chip_pw_tokenizer_logging=false chip_with_OM15082=0")

Expand Down

0 comments on commit 9551909

Please sign in to comment.