From 022317805b09942790e664cef68e9a1d17838caf Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 17 Dec 2021 10:59:10 +0800 Subject: contrib: allow override-style syntax for vars & routines Currently, the variable and routine regexes don't support the override-style syntax. This means we may break routine blocks, as we don't recognise overridden routines with an :append/:prepend/etc. This change adds the ":" char to the var & routine regexes. Signed-off-by: Jeremy Kerr Signed-off-by: Khem Raj --- contrib/oe-stylize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/oe-stylize.py b/contrib/oe-stylize.py index e1ba1b3218..67c06b1bb5 100755 --- a/contrib/oe-stylize.py +++ b/contrib/oe-stylize.py @@ -210,8 +210,8 @@ OE_vars = [ 'others' ] -varRegexp = r'^([a-zA-Z_0-9${}-]*)([ \t]*)([+.:]?=[+.]?)([ \t]*)([^\t]+)' -routineRegexp = r'^([a-zA-Z0-9_ ${}-]+?)\(' +varRegexp = r'^([a-zA-Z_0-9${}:-]*)([ \t]*)([+.:]?=[+.]?)([ \t]*)([^\t]+)' +routineRegexp = r'^([a-zA-Z0-9_ ${}:-]+?)\(' # Variables seen in the processed .bb seen_vars = {} -- cgit v1.2.3-54-g00ecf