Skip to content

Commit

Permalink
[bazel] Move third party patch files into patches subdirectories
Browse files Browse the repository at this point in the history
This matches the convention of other third party packages with patches.

Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Dec 19, 2024
1 parent f4a7805 commit bee8bc1
Show file tree
Hide file tree
Showing 35 changed files with 68 additions and 41 deletions.
50 changes: 25 additions & 25 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions third_party/coremark/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def _coremark_repos():
"https://github.com/eembc/coremark/archive/eefc986ebd3452d6adde22eafaff3e5c859f29e4.tar.gz",
],
patches = [
Label("//third_party/coremark:use_ottf_main.patch"),
Label("//third_party/coremark:print_coremark_per_mhz.patch"),
Label("//third_party/coremark/patches:use_ottf_main.patch"),
Label("//third_party/coremark/patches:print_coremark_per_mhz.patch"),
],
patch_args = ["-p1"],
)
3 changes: 3 additions & 0 deletions third_party/coremark/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
File renamed without changes.
6 changes: 3 additions & 3 deletions third_party/freertos/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def _freertos_repos():
"https://github.com/FreeRTOS/FreeRTOS-Kernel/archive/0b1e9d79c82c1bf00e93142f9d5b1b7b62446995.tar.gz",
],
patches = [
Label("//third_party/freertos:0001-Remove-mtime-address-macros.patch"),
Label("//third_party/freertos:0002-Remove-references-to-stdlib.h.patch"),
Label("//third_party/freertos:0003-Replace-string.h-with-references-to-OT-memory.h.patch"),
Label("//third_party/freertos/patches:0001-Remove-mtime-address-macros.patch"),
Label("//third_party/freertos/patches:0002-Remove-references-to-stdlib.h.patch"),
Label("//third_party/freertos/patches:0003-Replace-string.h-with-references-to-OT-memory.h.patch"),
],
patch_args = ["-p1"],
)
3 changes: 3 additions & 0 deletions third_party/freertos/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion third_party/hsm/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _hsm_repos():
strip_prefix = "SoftHSMv2-4975c0df4c7090e97a3860ae21079a9597cfedc6",
sha256 = "72cf979ec4f74ca4555861dcae45cf7d1b667cc2e4f3ee3fb26e6ff1b99aec95",
patches = [
Label("//third_party/hsm:0001-Disable-filename-logging.patch"),
Label("//third_party/hsm/patches:0001-Disable-filename-logging.patch"),
],
patch_args = ["-p1"],
)
Expand Down
3 changes: 3 additions & 0 deletions third_party/hsm/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
4 changes: 2 additions & 2 deletions third_party/llvm_compiler_rt/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def _llvm_compiler_rt_repos():
"https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.2/compiler-rt-16.0.2.src.tar.xz",
],
patches = [
Label("//third_party/llvm_compiler_rt:0001-Headers.patch"),
Label("//third_party/llvm_compiler_rt:0002-invalid-data.patch"),
Label("//third_party/llvm_compiler_rt/patches:0001-Headers.patch"),
Label("//third_party/llvm_compiler_rt/patches:0002-invalid-data.patch"),
],
patch_args = ["-p1"],
)
3 changes: 3 additions & 0 deletions third_party/llvm_compiler_rt/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion third_party/open-dice/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _open_dice_repos():
urls = ["https://github.com/google/open-dice/archive/cf3f4cc7a3506a33ee3a437544ef6f40056b3563.zip"],
sha256 = "d7ce830111451afe2a255cac3b750f82e50efe2aaf6bac0b076881c964cfe78d",
patches = [
Label("//third_party/open-dice:Add-a-local-strlen-implementation.patch"),
Label("//third_party/open-dice/patches:Add-a-local-strlen-implementation.patch"),
],
patch_args = ["-p1"],
)
3 changes: 3 additions & 0 deletions third_party/open-dice/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
6 changes: 3 additions & 3 deletions third_party/openocd/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def _openocd_repos():
sha256 = "af254788be98861f2bd9103fe6e60a774ec96a8c374744eef9197f6043075afa",
# See Issue(#18087)
patches = [
Label("@lowrisc_opentitan//third_party/openocd:calloc_transpose.patch"),
Label("@lowrisc_opentitan//third_party/openocd:reset_on_dmi_op_error.patch"),
Label("@lowrisc_opentitan//third_party/openocd:string_truncate_build_error.patch"),
Label("@lowrisc_opentitan//third_party/openocd/patches:calloc_transpose.patch"),
Label("@lowrisc_opentitan//third_party/openocd/patches:reset_on_dmi_op_error.patch"),
Label("@lowrisc_opentitan//third_party/openocd/patches:string_truncate_build_error.patch"),
],
patch_args = ["-p1"],
)
3 changes: 3 additions & 0 deletions third_party/openocd/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
File renamed without changes.
2 changes: 1 addition & 1 deletion third_party/riscv-compliance/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _riscv_compliance_repos():
"https://github.com/riscv/riscv-compliance/archive/2636302c27557b42d99bed7e0537beffdf8e1ab4.tar.gz",
],
patches = [
Label("//third_party/riscv-compliance:0001-Add-configurable-trap-alignment-and-entry-point-to-p.patch"),
Label("//third_party/riscv-compliance/patches:0001-Add-configurable-trap-alignment-and-entry-point-to-p.patch"),
],
patch_args = ["-p1"],
)
3 changes: 3 additions & 0 deletions third_party/riscv-compliance/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion third_party/sphincsplus/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _sphincsplus_repos(local = None):
build_file = "@lowrisc_opentitan//third_party/sphincsplus:BUILD.sphincsplus.bazel",
sha256 = "b301faa7a42ef538323a732929d49341b1cbd8375f643f7d98ca32cd6efacc32",
patches = [
Label("@lowrisc_opentitan//third_party/sphincsplus:sphincsplus-namespace.patch"),
Label("@lowrisc_opentitan//third_party/sphincsplus/patches:sphincsplus-namespace.patch"),
],
patch_args = ["-p2"],
)
3 changes: 3 additions & 0 deletions third_party/sphincsplus/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
4 changes: 2 additions & 2 deletions third_party/xkcp/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def _xkcp_repos():
"https://github.com/XKCP/XKCP/archive/56ae09923153c3e801a6891eb19e4a3b5bb6f6e2.tar.gz",
],
patches = [
Label("//third_party/xkcp:add_config_header.patch"),
Label("//third_party/xkcp:add_main_license.patch"),
Label("//third_party/xkcp/patches:add_config_header.patch"),
Label("//third_party/xkcp/patches:add_main_license.patch"),
],
patch_args = ["-p1"],
)
3 changes: 3 additions & 0 deletions third_party/xkcp/patches/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
File renamed without changes.
File renamed without changes.

0 comments on commit bee8bc1

Please sign in to comment.