Prepare abi_check.py to scripts/legacy.make
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/scripts/abi_check.py b/scripts/abi_check.py
index 5421363..243e6fc 100755
--- a/scripts/abi_check.py
+++ b/scripts/abi_check.py
@@ -233,8 +233,14 @@
my_environment["SHARED"] = "1"
if os.path.exists(os.path.join(git_worktree_path, "crypto")):
my_environment["USE_CRYPTO_SUBMODULE"] = "1"
+
+ if os.path.exists(os.path.join(git_worktree_path, "scripts", "legacy.make")):
+ command = [self.make_command, "-f", "scripts/legacy.make", "lib"]
+ else:
+ command = [self.make_command, "lib"]
+
make_output = subprocess.check_output(
- [self.make_command, "lib"],
+ command,
env=my_environment,
cwd=git_worktree_path,
stderr=subprocess.STDOUT