forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[imm_rom_ext] Add a new ROM_EXT target linking nop IM_EXT
* Add a nop.o IM_EXT file, which is built by `./riscv32-unknown-elf-as -march=rv32i nop.S -o nop.o` The IM_EXT only contains a section called `.rom_ext_immutable`, and a single "ret" command. * Add a new ROM_EXT target to link the nop IM_EXT * Add a new test case in `rom_ext/e2e/verified_boot`, which enable the immutable ROM extension and use the new target to execute the test. * Add `*.o` as the file extensions allowed to have non-ASCII chars. Signed-off-by: Chia-Wei Liu <[email protected]>
- Loading branch information
1 parent
e97a8d9
commit 2cf0b0e
Showing
8 changed files
with
106 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ allowed_suffixes=( | |
vsdx | ||
elf | ||
woff2 | ||
o | ||
|
||
md | ||
html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright lowRISC contributors (OpenTitan project). | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_import( | ||
name = "nop_imm_rom_ext", | ||
objects = ["nop.o"], | ||
alwayslink = 1, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# IMM_ROM_EXT Prebuilts | ||
|
||
This markdown explains all of the prebuilt collections in this folder and the | ||
usage of them. | ||
|
||
## NOP IMM_ROM_EXT | ||
|
||
* The `nop.o` is built by the following command: | ||
`riscv32-unknown-elf-as -march=rv32i nop.S -o nop.o` | ||
* This `IMM_ROM_EXT` only contains a section called `.rom_ext_immutable` and a | ||
single `ret` command, and it is only used for testing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright lowRISC contributors (OpenTitan project). | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
.section .rom_ext_immutable, "ax" | ||
.globl _imm_rom_ext_start | ||
_imm_rom_ext_start: | ||
ret |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ otp_json( | |
lock = True, | ||
), | ||
], | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
otp_image( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters