gen_kobject_list: allow object data to be C code

The data value in a kernel object structure is specific
to that type of object. Allow this to be a reference to
another C symbol or other compiled code by populating as
a string.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-03-27 14:30:17 -07:00 committed by Anas Nashif
parent c235e167fa
commit a00eff731c

View file

@ -183,10 +183,10 @@ def write_gperf_table(fp, eh, objs, static_begin, static_end):
fp.write(val)
fp.write(
"\",{},%s,%s,%d\n" %
"\",{},%s,%s,%s\n" %
(obj_type,
"K_OBJ_FLAG_INITIALIZED" if initialized else "0",
ko.data))
str(ko.data)))
if obj_type == "K_OBJ_THREAD":
idx = math.floor(ko.data / 8)