Skip to content

Commit 8899971

Browse files
bentheredonethatSiva Addepalli
authored andcommitted
scripts: pyesw: open_amp: Simplify openamp-lopper run
Do not run extra configure step. Instead simply pass the relevant OpenAMP Lopper information to the lopper run. This also removes the dependency on App object for OpenAMP Demos in the build app step. Signed-off-by: Ben Levinsky <[email protected]> Acked-for-series: Appana Durga Kedareswara rao <[email protected]>
1 parent 28e3a08 commit 8899971

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

scripts/pyesw/build_app.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,11 @@ def build_app(args):
6262
overlay_path = os.path.join(bsp_obj.domain_path, 'hw_artifacts', 'domain.yaml')
6363
if app_name in ['openamp_echo_test', 'openamp_matrix_multiply', 'openamp_rpc_demo'] and is_file(overlay_path):
6464
bsp_obj = BSP(args)
65-
6665
original_sdt = os.path.join(bsp_obj.domain_path, 'hw_artifacts', 'sdt.dts')
6766
print('Domain YAML is found. Passing this in to a OpenAMP Lopper run to generate platform info header.')
68-
enable_lopper = True
69-
openamp_lopper_run(overlay_path, original_sdt, obj.app_src_dir)
7067

71-
args['src_dir'] = bsp_obj.domain_path
72-
args['template'] = app_name
73-
args['ws_dir'] = obj.app_dir
74-
app_obj = App(args)
75-
esw_app_dir = app_obj.get_comp_dir(app_name)
76-
obj.template = app_name
77-
openamp_app_configure_common(obj, esw_app_dir, enable_lopper)
68+
openamp_lopper_run(overlay_path, original_sdt, obj.app_src_dir)
69+
obj.cmake_paths_append += " -D_AMD_GENERATED_=ON "
7870

7971
domain_data = utils.fetch_yaml_data(obj.domain_config_file, "domain")
8072
# in case of library update link libraries

0 commit comments

Comments
 (0)