Snap for 11920703 from bbe97f07cc4e4dcc18537d4458bdabcee064d68b to 24Q3-release Change-Id: Ie9c1f0f812841f3f9e40d805d6c47af0bb71a5a4
diff --git a/tools/manifest_compiler.py b/tools/manifest_compiler.py index 25eac9c..22e5310 100755 --- a/tools/manifest_compiler.py +++ b/tools/manifest_compiler.py
@@ -165,6 +165,7 @@ CONST_UUID = "uuid" CONST_INT = "int" CONST_BOOL = "bool" +CONST_ID = "identifier" # CONFIG TAGS # These values need to be kept in sync with lib/app_manifest/app_manifest.h @@ -1126,6 +1127,8 @@ def define_string_const_entry(const): return f"#define {const.name} {json.dumps(const.value)}\n" +def define_identifier_const_entry(const): + return f"#define {const.name} {const.value}\n" def define_bool_const_entry(const): return f"#define {const.name} ({json.dumps(const.value)})\n" @@ -1151,6 +1154,9 @@ return define_integer_const_entry(constant) if constant.type == CONST_BOOL: return define_bool_const_entry(constant) + if constant.type == CONST_ID: + return define_identifier_const_entry(constant) + raise Exception(f"Unknown tag: {constant.type}") @@ -1182,7 +1188,7 @@ return None name = get_string(constant, CONST_NAME, {}, log) - if const_type == CONST_PORT: + if const_type == CONST_PORT or const_type == CONST_ID: value = get_string(constant, CONST_VALUE, {}, log) return Constant(name, value, const_type) if const_type == CONST_UUID: