Skip to content

Commit 4074d3f

Browse files
committed
[devbundle] Package cryptolib in the release devbundle
There is some additional packaging on top of that already present in cryptolib to re-arrange the files to fit the more conventional format for a C static library to link against. These are localised to the devbundle and should be easy to change if necessary. Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
1 parent 6171849 commit 4074d3f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

release/devbundle/BUILD

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,32 @@ pkg_filegroup(
5151
tags = ["manual"],
5252
)
5353

54+
# Build up a cryptolib package with a conventional 'include/lib/*.h` and `lib/*.a` structure
55+
pkg_files(
56+
name = "cryptolib_headers_pkg",
57+
srcs = [
58+
"//sw/device/lib/crypto/include:package",
59+
],
60+
prefix = "include/libotcrypto",
61+
)
62+
63+
pkg_files(
64+
name = "cryptolib_archive_pkg",
65+
srcs = [
66+
"//sw/device/lib/crypto:package",
67+
],
68+
prefix = "lib",
69+
)
70+
71+
pkg_filegroup(
72+
name = "cryptolib_pkg",
73+
srcs = [
74+
":cryptolib_archive_pkg",
75+
":cryptolib_headers_pkg",
76+
],
77+
prefix = "libotcrypto",
78+
)
79+
5480
pkg_files(
5581
name = "bazel",
5682
srcs = [
@@ -86,6 +112,7 @@ pkg_tar(
86112
srcs = [
87113
":bazel",
88114
":bitstreams_pkg",
115+
":cryptolib_pkg",
89116
":opentitantool",
90117
"//hw:package",
91118
"//hw/ip/otp_ctrl/data:package",

0 commit comments

Comments
 (0)