Skip to content
Permalink
Browse files

scripts: dts: Add special handling of '+' in 'str_to_label' function

This patch is needed in order to get compilable macros for compatibles
like "arm,cortex-m0+".

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
  • Loading branch information...
anangl authored and galak committed Jun 18, 2019
1 parent 12589d6 commit c782ba82ae4f8e0c27110f15afdf83516acf1dca
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/dts/extract/globals.py
@@ -44,6 +44,7 @@ def str_to_label(s):
.replace(',', '_') \
.replace('@', '_') \
.replace('/', '_') \
.replace('+', 'PLUS') \
.upper()


0 comments on commit c782ba8

Please sign in to comment.
You can’t perform that action at this time.