recipes-kernel: Add support for 32-bit builds

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
Alistair Francis
2018-11-29 13:00:15 -08:00
committed by Khem Raj
parent 58ec67a3db
commit e28bad99e9
2 changed files with 17 additions and 0 deletions

View 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

View File

@@ -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}"