bsp,am,integrate-am-apps: replace '-' with '_' in app name

This commit is contained in:
Zihao Yu 2024-01-14 12:19:48 +08:00
parent 7c420032e2
commit dea61ce9d9

View file

@ -19,6 +19,7 @@ am_init_sym = [ "trm_init", "ioe_init", "cte_init", "vme_init", "mpe_init" ]
app_dir_list = [ app_dir_list = [
AM_KERNELS_HOME / "kernels" / "hello", AM_KERNELS_HOME / "kernels" / "hello",
AM_KERNELS_HOME / "benchmarks" / "microbench", AM_KERNELS_HOME / "benchmarks" / "microbench",
AM_KERNELS_HOME / "kernels" / "typing-game",
] ]
def read_lib_symbols(lib): def read_lib_symbols(lib):
@ -31,7 +32,7 @@ def read_lib_symbols(lib):
lib_sym += res.stdout.strip().split('\n') lib_sym += res.stdout.strip().split('\n')
def integrate(app_dir): def integrate(app_dir):
app_name = app_dir.name app_name = app_dir.name.replace("-", "_")
os.system(f"make -j ARCH={ARCH} -C {str(app_dir)}") os.system(f"make -j ARCH={ARCH} -C {str(app_dir)}")
dst = Path("build") / ARCH / "am-apps" / app_name dst = Path("build") / ARCH / "am-apps" / app_name
dst.mkdir(parents=True, exist_ok=True) dst.mkdir(parents=True, exist_ok=True)