Skip to content

[config] Fixed gn parser implementation#721

Merged
kkasperczyk-no merged 1 commit into
nrfconnect:masterfrom
kkasperczyk-no:gn_parser_fix
May 21, 2026
Merged

[config] Fixed gn parser implementation#721
kkasperczyk-no merged 1 commit into
nrfconnect:masterfrom
kkasperczyk-no:gn_parser_fix

Conversation

@kkasperczyk-no
Copy link
Copy Markdown
Contributor

Summary

The make_gn_args.py read args.tmp and uses argparse that treats any line starting with - as an option, not as a positional value for --arg-cflags.

When including only a single -D option, for example in TF-M builds that only export -DTF_PSA_CRYPTO_CONFIG_FILE=... on target_cflags, the parser fails with argument --arg-cflags: expected 2 arguments

Testing

Automated testing in CI

@kkasperczyk-no kkasperczyk-no requested a review from a team as a code owner May 21, 2026 08:38
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 21, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-connectedhomeip#721

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
The make_gn_args.py read args.tmp and uses argparse that treats
any line starting with - as an option, not as a positional value
for --arg-cflags.

When including only a single -D option, for example in TF-M builds
that only export -DTF_PSA_CRYPTO_CONFIG_FILE=... on target_cflags,
the parser fails with argument --arg-cflags: expected 2 arguments

Signed-off-by: Kamil Kasperczyk <kamil.kasperczyk@nordicsemi.no>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 21, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-connectedhomeip#721

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
@kkasperczyk-no kkasperczyk-no merged commit 4ad89bf into nrfconnect:master May 21, 2026
11 checks passed
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 21, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-connectedhomeip#721

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
nordicjm pushed a commit to nrfconnect/sdk-nrf that referenced this pull request May 21, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-connectedhomeip#721

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants