BLD: Generate L1 symbol flags correctly

This commit is contained in:
Rohit Goswami 2024-04-28 02:43:32 +00:00 committed by Mateusz Sokół
parent b472c06f9c
commit 5599d73f4a
1 changed files with 16 additions and 1 deletions

View File

@ -184,8 +184,23 @@ kernel_confs = []
foreach _kop : base_kops
base = _kop['base']
modes = _kop['modes']
# Generate the symbol flags
_ckop_args = []
if symb_defs.has_key(base)
symb_base = symb_defs[base]
if symb_base.has_key('def')
foreach _d : symb_base['def']
_ckop_args += ('-D' + _d)
endforeach
endif
if symb_base.has_key('undef')
foreach _u : symb_base['undef']
_ckop_args += ('-U' + _u)
endforeach
endif
endif
foreach mode, details : modes
__cargs = _cargs
__cargs = _cargs + _ckop_args
prec_mode = precision_mappings[mode]
# Generate the mapping for the type
if prec_mode.has_key('def')