arch: allow riscv32 noMMU configuration
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
8cb0f6e011
commit
e32d404f6c
@ -51,7 +51,6 @@ choice
|
||||
|
||||
config BR2_RISCV_32
|
||||
bool "32-bit"
|
||||
select BR2_USE_MMU
|
||||
|
||||
config BR2_RISCV_64
|
||||
bool "64-bit"
|
||||
@ -62,7 +61,6 @@ endchoice
|
||||
config BR2_RISCV_USE_MMU
|
||||
bool "MMU support"
|
||||
default y
|
||||
depends on BR2_RISCV_64
|
||||
select BR2_USE_MMU
|
||||
help
|
||||
Enable this option if your RISC-V core has a MMU (Memory
|
||||
|
@ -41,9 +41,9 @@ endif
|
||||
# Compute GNU_TARGET_NAME
|
||||
GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-$(TARGET_OS)-$(LIBC)$(ABI)
|
||||
|
||||
# FLAT binary format needs uclinux, except RISC-V 64-bits which needs
|
||||
# the regular linux name.
|
||||
ifeq ($(BR2_BINFMT_FLAT):$(BR2_RISCV_64),y:)
|
||||
# FLAT binary format needs uclinux, except RISC-V which needs the
|
||||
# regular linux name.
|
||||
ifeq ($(BR2_BINFMT_FLAT):$(BR2_riscv),y:)
|
||||
TARGET_OS = uclinux
|
||||
else
|
||||
TARGET_OS = linux
|
||||
@ -181,7 +181,7 @@ TARGET_CXXFLAGS += -fno-dwarf2-cfi-asm
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_BINFMT_FLAT),y)
|
||||
ifeq ($(BR2_RISCV_64),y)
|
||||
ifeq ($(BR2_riscv),y)
|
||||
TARGET_CFLAGS += -fPIC
|
||||
endif
|
||||
ELF2FLT_FLAGS = $(if $($(PKG)_FLAT_STACKSIZE),\
|
||||
|
Loading…
Reference in New Issue
Block a user