From e571b99c046f554ce24bf4a57312752848f645b6 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Tue, 16 Jan 2024 15:54:34 +0800 Subject: [PATCH] bsp,am,integrate-am-apps: remove duplicated library symbols --- bsp/abstract-machine/integrate-am-apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/abstract-machine/integrate-am-apps.py b/bsp/abstract-machine/integrate-am-apps.py index 5e76f2f..70cea8c 100644 --- a/bsp/abstract-machine/integrate-am-apps.py +++ b/bsp/abstract-machine/integrate-am-apps.py @@ -43,7 +43,7 @@ def read_lib_symbols(lib): cmd = f"{CROSS_COMPILE}nm -g --defined-only --format=just-symbols {str(libfile)}" res = subprocess.run(cmd, shell=True, capture_output=True, text=True) global lib_sym - lib_sym += res.stdout.strip().split('\n') + lib_sym = list(set(lib_sym + res.stdout.strip().split('\n'))) def integrate(app_dir): app_name = app_dir.name.replace("-", "_")