Skip to content

Commit 20c34cd

Browse files
committed
disk-image-minimal: Add missing dependencies for various cheribsdtests
1 parent 974346f commit 20c34cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pycheribuild/projects/disk_image.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,10 @@ def add_unlisted_files_to_metalog(self):
11991199
if self.include_cheribsdtest:
12001200
for test_binary in self.ref_mtree.glob("bin/cheribsdtest-*"):
12011201
self.add_from_mtree(self.ref_mtree, test_binary)
1202+
for test_binary in self.ref_mtree.glob("usr/libexec/malloc_revoke_enabled*"):
1203+
self.add_from_mtree(self.ref_mtree, test_binary)
1204+
for test_binary in self.ref_mtree.glob("usr/libexec/malloc_early_constructor-*"):
1205+
self.add_from_mtree(self.ref_mtree, test_binary)
12021206
self.add_from_mtree(self.ref_mtree, "usr/share/examples/cheribsdtest/run-many")
12031207

12041208
if self.include_pmc:
@@ -1296,6 +1300,10 @@ def add_required_libraries(self, libdirs: "list[str]", ignore_required: bool = F
12961300
if self.include_pmc:
12971301
required_libs += ["libpmc.so.5"]
12981302

1303+
if self.include_cheribsdtest:
1304+
# Needed for the ABIs where they exist
1305+
optional_libs += ["libcheri_caprevoke.so.1", "libprivatecheribsdtest_dynamic.so.5"]
1306+
12991307
for libs, required in [(required_libs, True), (optional_libs, False)]:
13001308
for library_basename in libs:
13011309
full_lib_path = None

0 commit comments

Comments
 (0)