Skip to content

Commit

Permalink
lopper: assists: bmcmake_metadata_xlnx: Don't use hardcoded library name
Browse files Browse the repository at this point in the history
Generate the lwip meta-data(xtopology_g.c) for lwip library by reading
the type instead of using hardcoded library name(lwip211).

Signed-off-by: Appana Durga Kedareswara rao <[email protected]>
  • Loading branch information
Appana Durga Kedareswara rao authored and zeddii committed Feb 28, 2023
1 parent f04afa2 commit 4fc81d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lopper/assists/bmcmake_metadata_xlnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ def generate_hwtocmake_medata(sdt, node_list, src_path, repo_path_data, options,

schema = utils.load_yaml(yaml_file)
meta_dict = schema.get('depends',{})
comp_type = schema.get('type',{})

lwip = re.search("lwip211", name)
lwip = re.search("lwip", name)
standalone = re.search("standalone", name)
cmake_file = os.path.join(sdt.outdir, f"{name.capitalize()}Example.cmake")
topology_data = {}
Expand Down Expand Up @@ -198,7 +199,7 @@ def generate_hwtocmake_medata(sdt, node_list, src_path, repo_path_data, options,
if prop == "reg":
reg,size = bm_config.scan_reg_size(node, node[prop].value, 0)
val = hex(reg)
if lwip:
if lwip and comp_type == "library":
topology_data[val] = lwiptype_index
elif prop == "interrupts":
val = bm_config.get_interrupt_prop(sdt, node, node[prop].value)
Expand Down

0 comments on commit 4fc81d4

Please sign in to comment.