diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-12-10 12:11:42 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-12-10 12:13:04 -0800 |
| commit | 75f1c414fe6d6b8395eea88b925f80fccd39051b (patch) | |
| tree | 48c0cccab9c9812d732ebb2c15718237d4126eee | |
| parent | 6ec1e1468fe3ea3b57573db94f6b1cc92af8c034 (diff) | |
| download | meta-openembedded-75f1c414fe6d6b8395eea88b925f80fccd39051b.tar.gz | |
fd-find: Fix build on riscv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
| -rw-r--r-- | meta-oe/recipes-extended/fd-find/fd-find/0001-Define-ALIGNOF_MAX_ALIGN_T-for-riscv32.patch | 26 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/fd-find/fd-find_10.3.0.bb | 7 |
2 files changed, 30 insertions, 3 deletions
diff --git a/meta-oe/recipes-extended/fd-find/fd-find/0001-Define-ALIGNOF_MAX_ALIGN_T-for-riscv32.patch b/meta-oe/recipes-extended/fd-find/fd-find/0001-Define-ALIGNOF_MAX_ALIGN_T-for-riscv32.patch new file mode 100644 index 0000000000..82eac5e1a5 --- /dev/null +++ b/meta-oe/recipes-extended/fd-find/fd-find/0001-Define-ALIGNOF_MAX_ALIGN_T-for-riscv32.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 7582be50050b36e3275f6d4eacd8eceada8b6afd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 10 Dec 2025 11:58:21 -0800 | ||
| 4 | Subject: [PATCH] Define ALIGNOF_MAX_ALIGN_T for riscv32 | ||
| 5 | |||
| 6 | Long double is 16byte aligned on both rv32 and rv64 | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/tikv/jemallocator/pull/153] | ||
| 9 | |||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | src/lib.rs | 1 + | ||
| 13 | 1 file changed, 1 insertion(+) | ||
| 14 | |||
| 15 | diff --git a/src/lib.rs b/src/lib.rs | ||
| 16 | index 165660e..5f6a2a0 100644 | ||
| 17 | --- a/src/lib.rs | ||
| 18 | +++ b/src/lib.rs | ||
| 19 | @@ -57,6 +57,7 @@ const ALIGNOF_MAX_ALIGN_T: usize = 8; | ||
| 20 | target_arch = "powerpc64le", | ||
| 21 | target_arch = "loongarch64", | ||
| 22 | target_arch = "mips64", | ||
| 23 | + target_arch = "riscv32", | ||
| 24 | target_arch = "riscv64", | ||
| 25 | target_arch = "s390x", | ||
| 26 | target_arch = "sparc64" | ||
diff --git a/meta-oe/recipes-extended/fd-find/fd-find_10.3.0.bb b/meta-oe/recipes-extended/fd-find/fd-find_10.3.0.bb index 3df88c88b0..3a28009471 100644 --- a/meta-oe/recipes-extended/fd-find/fd-find_10.3.0.bb +++ b/meta-oe/recipes-extended/fd-find/fd-find_10.3.0.bb | |||
| @@ -12,14 +12,15 @@ LIC_FILES_CHKSUM = " \ | |||
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | SRC_URI = "crate://crates.io/fd-find/${PV};name=fd-find" | 14 | SRC_URI = "crate://crates.io/fd-find/${PV};name=fd-find" |
| 15 | SRC_URI += "file://0001-Define-ALIGNOF_MAX_ALIGN_T-for-riscv32.patch;patchdir=../tikv-jemallocator-0.6.0" | ||
| 15 | SRC_URI[fd-find.sha256sum] = "2fbf004b5bbdefab92e76237e2022c77842cdef5d3213fe09fd804e0474785db" | 16 | SRC_URI[fd-find.sha256sum] = "2fbf004b5bbdefab92e76237e2022c77842cdef5d3213fe09fd804e0474785db" |
| 16 | S = "${CARGO_VENDORING_DIRECTORY}/fd-find-${PV}" | 17 | S = "${CARGO_VENDORING_DIRECTORY}/fd-find-${PV}" |
| 17 | 18 | ||
| 18 | inherit cargo cargo-update-recipe-crates | 19 | inherit cargo cargo-update-recipe-crates |
| 19 | 20 | ||
| 20 | #Upstream fd-find sets strip = true in [profile.release], which causes Cargo | 21 | #Upstream fd-find sets strip = true in [profile.release], which causes Cargo |
| 21 | #to strip the binary during compilation. This interferes with Yocto’s normal | 22 | #to strip the binary during compilation. This interferes with Yocto’s normal |
| 22 | #do_package stripping process.By adding the following flag, we ensure that | 23 | #do_package stripping process.By adding the following flag, we ensure that |
| 23 | #stripping is handled by Yocto as usual: | 24 | #stripping is handled by Yocto as usual: |
| 24 | CARGO_BUILD_FLAGS += " --config profile.release.strip=false" | 25 | CARGO_BUILD_FLAGS += " --config profile.release.strip=false" |
| 25 | 26 | ||
