kata-containers/tools/packaging/static-build
stevenhorsman 4c006c707a build: Fix powerpc64le target_arch
Starting with version 1.80, the Rust linter does not accept an invalid
value for `target_arch` in configuration checks:

```
   Compiling kata-sys-util v0.1.0 (/home/ddd/Work/kata/kata-containers/src/libs/kata-sys-util)
error: unexpected `cfg` condition value: `powerpc64le`

  --> /home/ddd/Work/kata/kata-containers/src/libs/kata-sys-util/src/protection.rs:17:34
   |
17 | #[cfg(any(target_arch = "s390x", target_arch = "powerpc64le"))]
   |                                  ^^^^^^^^^^^^^^-------------
   |                                                |
   |                                                help: there is a expected value with a similar name: `"powerpc64"`
   |
   = note: expected values for `target_arch` are: `aarch64`, `arm`, `arm64ec`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, and `x86_64`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
   = note: `-D unexpected-cfgs` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`
```

According [to GitHub user @Urgau][explain], this is a new warning
introduced in Rust 1.80, but the problem exists before. The correct
architecture name should be `powerpc64`, and the differentiation
between `powerpc64le` and `powerpc64` should use the `target_endian =
"little"` check.

[explain]: #10072 (comment)

Fixes: #10067

Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
[emlima: fix some more occurences and typos]
Signed-off-by: Emanuel Lima <emlima@redhat.com>
[stevenhorsman: fix some more occurences and typos]
Signed-off-by: stevenhorsman <steven@uk.ibm.com>
2025-02-05 14:20:47 +00:00
..
agent agent: Enable kata-cc-rustls-tls in image-rs 2024-07-15 12:00:50 +01:00
busybox deploy: Add busybox target 2024-06-18 15:31:00 +00:00
cloud-hypervisor deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
coco-guest-components packaging: updating guest components build script 2025-01-07 16:59:10 -06:00
firecracker deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
initramfs deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
kernel ci: kernel no sudo 2024-05-28 11:19:08 +00:00
nydus deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
ovmf Revert "builds: ovmf: Workaround Zeex repo becoming private" 2025-01-28 18:09:40 -06:00
pause-image deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
qemu build: Fix powerpc64le target_arch 2025-02-05 14:20:47 +00:00
scripts packaging: Use the $BUILD_SUFFIX when renaming the qemu binary 2022-07-12 15:09:31 +02:00
shim-v2 build: shim-v2: Rebuild if root_hashes do not match 2024-10-28 12:43:53 +01:00
stratovirt deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
tools ci: Implement build step for CSI driver 2024-12-03 14:43:36 -06:00
virtiofsd packaging: virtiofsd: Allow building a specific commit 2025-01-31 11:24:23 +00:00
qemu.blacklist tools: fix static build of qemu and shimv2 on ppc64le 2023-11-21 11:38:20 +05:30
README.md packaging: merge packaging repository 2020-06-23 22:58:18 -07:00

Static build

This directory contains files to build static versions of Kata Containers.