summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-12-10 12:11:42 -0800
committerKhem Raj <raj.khem@gmail.com>2025-12-10 12:13:04 -0800
commit75f1c414fe6d6b8395eea88b925f80fccd39051b (patch)
tree48c0cccab9c9812d732ebb2c15718237d4126eee
parent6ec1e1468fe3ea3b57573db94f6b1cc92af8c034 (diff)
downloadmeta-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.patch26
-rw-r--r--meta-oe/recipes-extended/fd-find/fd-find_10.3.0.bb7
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 @@
1From 7582be50050b36e3275f6d4eacd8eceada8b6afd Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 10 Dec 2025 11:58:21 -0800
4Subject: [PATCH] Define ALIGNOF_MAX_ALIGN_T for riscv32
5
6Long double is 16byte aligned on both rv32 and rv64
7
8Upstream-Status: Submitted [https://github.com/tikv/jemallocator/pull/153]
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/lib.rs | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/src/lib.rs b/src/lib.rs
16index 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
14SRC_URI = "crate://crates.io/fd-find/${PV};name=fd-find" 14SRC_URI = "crate://crates.io/fd-find/${PV};name=fd-find"
15SRC_URI += "file://0001-Define-ALIGNOF_MAX_ALIGN_T-for-riscv32.patch;patchdir=../tikv-jemallocator-0.6.0"
15SRC_URI[fd-find.sha256sum] = "2fbf004b5bbdefab92e76237e2022c77842cdef5d3213fe09fd804e0474785db" 16SRC_URI[fd-find.sha256sum] = "2fbf004b5bbdefab92e76237e2022c77842cdef5d3213fe09fd804e0474785db"
16S = "${CARGO_VENDORING_DIRECTORY}/fd-find-${PV}" 17S = "${CARGO_VENDORING_DIRECTORY}/fd-find-${PV}"
17 18
18inherit cargo cargo-update-recipe-crates 19inherit 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:
24CARGO_BUILD_FLAGS += " --config profile.release.strip=false" 25CARGO_BUILD_FLAGS += " --config profile.release.strip=false"
25 26