Skip to content

coreconfig.py: fix .config parsing of quoted values containing hex - #15

Merged
xiaoxiang781216 merged 1 commit into
apache:mainfrom
raiden00pl:kernel-mode-support-pr1
Aug 25, 2026
Merged

coreconfig.py: fix .config parsing of quoted values containing hex#15
xiaoxiang781216 merged 1 commit into
apache:mainfrom
raiden00pl:kernel-mode-support-pr1

Conversation

@raiden00pl

Copy link
Copy Markdown
Member

The hex branch matched any value containing "0x" before the quoted string branch ran, so values like CONFIG_BOARD_MEMORY_RANGE= "{0x40000000,...}" raised ValueError. Parse quoted strings first and require hex to start with "0x", falling back to the raw string.

extracted from #13

The hex branch matched any value containing "0x" before the quoted
string branch ran, so values like CONFIG_BOARD_MEMORY_RANGE=
"{0x40000000,...}" raised ValueError. Parse quoted strings first and
require hex to start with "0x", falling back to the raw string.

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code
@xiaoxiang781216
xiaoxiang781216 merged commit 2ecb573 into apache:main Aug 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants