mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-04 07:44:45 +02:00
recipes-kernel: Add support for 32-bit builds
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
committed by
Khem Raj
parent
58ec67a3db
commit
e28bad99e9
14
recipes-kernel/linux/files/32bit.cfg
Normal file
14
recipes-kernel/linux/files/32bit.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
CONFIG_32BIT=y
|
||||
CONFIG_PAGE_OFFSET=0xC0000000
|
||||
CONFIG_PGTABLE_LEVELS=2
|
||||
CONFIG_ARCH_RV32I=y
|
||||
# CONFIG_ARCH_RV64I is not set
|
||||
CONFIG_MAXPHYSMEM_2GB=y
|
||||
CONFIG_LBDAF=y
|
||||
# CONFIG_SCSI_NSP32 is not set
|
||||
CONFIG_GENERIC_ATOMIC64=y
|
||||
CONFIG_GENERIC_LIB_ASHLDI3=y
|
||||
CONFIG_GENERIC_LIB_ASHRDI3=y
|
||||
CONFIG_GENERIC_LIB_LSHRDI3=y
|
||||
CONFIG_GENERIC_LIB_UCMPDI2=y
|
||||
CONFIG_GENERIC_LIB_UMODDI3=y
|
||||
@@ -17,6 +17,9 @@ SRC_URI_append_freedom-u540 = " file://defconfig \
|
||||
file://0001-risc-v-Fix-issue-ignoring-CONFIG_CMDLINE_OVERRIDE.patch \
|
||||
"
|
||||
|
||||
SRC_URI_append_qemuriscv32 = " file://32bit.cfg \
|
||||
"
|
||||
|
||||
LINUX_VERSION_EXTENSION = "-riscv"
|
||||
|
||||
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||
|
||||
Reference in New Issue
Block a user