1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-10-16 22:47:23 +08:00

Adapt code_size_compare.py to make deprecation and submodules

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron
2024-07-03 17:00:50 +02:00
parent 37148d0fe3
commit 3a252dda0c

View File

@@ -190,7 +190,7 @@ class CodeSizeBuildInfo: # pylint: disable=too-few-public-methods
self.compiler = size_dist_info.compiler
self.opt_level = size_dist_info.opt_level
self.make_cmd = ['make', '-j', 'lib']
self.make_cmd = ['make', '-f', './scripts/legacy.make', '-j', 'lib']
self.host_arch = host_arch
self.logger = logger
@@ -287,7 +287,7 @@ class CodeSizeCalculator:
"""
self.repo_path = "."
self.git_command = "git"
self.make_clean = 'make clean'
self.make_clean = 'make -f ./scripts/legacy.make clean'
self.git_rev = git_rev
self.pre_make_cmd = pre_make_cmd
@@ -319,6 +319,10 @@ class CodeSizeCalculator:
git_worktree_path, self.git_rev], cwd=self.repo_path,
stderr=subprocess.STDOUT
)
subprocess.check_output(
[self.git_command, "submodule", "update", "--init", "--recursive"],
cwd=git_worktree_path, stderr=subprocess.STDOUT
)
return git_worktree_path