Skip to content

Commit 216d720

Browse files
mtudanJohan-Liebert1
authored andcommitted
bootc-lib: fix ARM architecture support
Currently build fails for armv7, this fixes the issue: ``` 1094.0 Compiling bootc-lib v1.12.1 (/bootc/crates/lib) 1097.2 error: Unsupported architecture 1097.2 --> crates/lib/src/discoverable_partition_specification.rs:523:13 1097.2 | 1097.2 523 | compile_error!("Unsupported architecture") 1097.2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1097.2 1157.8 error: could not compile `bootc-lib` (lib) due to 1 previous error 1157.8 error: Generating manpages: Syncing man pages: Extracting CLI: Running CLI JSON dump command: command exited with non-zero code `cargo run --features=docgen -- internals dump-cli-json`: 101 1157.8 make: *** [Makefile:44: manpages] Error 1 1157.8 make: Leaving directory '/bootc' ``` Signed-off-by: Matija Tudan <tudan.matija@gmail.com>
1 parent 51dabaa commit 216d720

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

crates/lib/src/discoverable_partition_specification.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ pub const fn this_arch_root() -> &'static str {
511511
cfg_if::cfg_if! {
512512
if #[cfg(target_arch = "x86_64")] {
513513
ROOT_X86_64
514+
} else if #[cfg(target_arch = "arm")] {
515+
ROOT_ARM
514516
} else if #[cfg(target_arch = "aarch64")] {
515517
ROOT_ARM64
516518
} else if #[cfg(target_arch = "s390x")] {

0 commit comments

Comments
 (0)