mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 16:31:26 +00:00
libhugetlbfs: add RISC-V to COMPATIBLE_HOSTS
A preliminar effort to support RISC-V was added in v2.23:
a529598 Introduce basic riscv64 support [1]
Following the guidelines in libhugetlbfs's HOWTO, here are the outputs
of some commands in qemuriscv64:
root@qemuriscv64:~# grep -i huge /proc/filesystems
nodev hugetlbfs
root@qemuriscv64:~# hugeadm --pool-list
Size Minimum Current Maximum Default
65536 0 0 0
2097152 0 0 0 *
root@qemuriscv64:~# hugeadm --pool-pages-min 2MB:10 --add-temp-swap
root@qemuriscv64:~# hugeadm --pool-list
Size Minimum Current Maximum Default
65536 0 0 0
2097152 10 10 10 *
root@qemuriscv64:~# hugeadm --pool-pages-min 2MB:-5
root@qemuriscv64:~# hugeadm --pool-list
Size Minimum Current Maximum Default
65536 0 0 0
2097152 5 5 10 *
Regarding toolchains, libhugetlbfs for RISC-V builds fine with both
clang and gcc.
[1]: a529598dd2
Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
parent
d2e6069771
commit
0fecdd0b59
@ -31,7 +31,7 @@ SRC_URI = " \
|
|||||||
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
|
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
|
||||||
|
|
||||||
|
|
||||||
COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*"
|
COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|riscv64|aarch64|arm).*-linux*"
|
||||||
|
|
||||||
LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
|
LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
|
||||||
LIBHUGETLBFS_ARCH = "${TARGET_ARCH}"
|
LIBHUGETLBFS_ARCH = "${TARGET_ARCH}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user