9b3d52b400
This enables a riscv64 system to be built with a Buildroot generated toolchain (gcc >= 7.x, binutils >= 2.30, glibc only). This configuration has been used to successfully build a qemu-bootable riscv-linux-4.15 kernel (https://github.com/riscv/riscv-linux.git). Signed-off-by: Mark Corbin <mark.corbin@embecosm.com> [Thomas: - simplify arch.mk.riscv by directly setting GCC_TARGET_ARCH - simplify glibc.mk changes by using GLIBC_CONF_ENV.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
comment "Binutils Options"
|
|
|
|
choice
|
|
prompt "Binutils Version"
|
|
default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_INSTRUCTIONS_THUMB
|
|
default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_INSTRUCTIONS_THUMB2
|
|
default BR2_BINUTILS_VERSION_2_29_X if !BR2_arc
|
|
default BR2_BINUTILS_VERSION_ARC if BR2_arc
|
|
help
|
|
Select the version of binutils you wish to use.
|
|
|
|
config BR2_BINUTILS_VERSION_2_28_X
|
|
bool "binutils 2.28.1"
|
|
depends on !BR2_arc
|
|
depends on !BR2_riscv
|
|
|
|
config BR2_BINUTILS_VERSION_2_29_X
|
|
bool "binutils 2.29.1"
|
|
depends on !BR2_riscv
|
|
|
|
config BR2_BINUTILS_VERSION_2_30_X
|
|
bool "binutils 2.30"
|
|
|
|
config BR2_BINUTILS_VERSION_2_31_X
|
|
bool "binutils 2.31.1"
|
|
|
|
config BR2_BINUTILS_VERSION_ARC
|
|
bool "binutils arc (2.29)"
|
|
depends on BR2_arc
|
|
endchoice
|
|
|
|
config BR2_BINUTILS_VERSION
|
|
string
|
|
default "arc-2018.03" if BR2_BINUTILS_VERSION_ARC
|
|
default "2.28.1" if BR2_BINUTILS_VERSION_2_28_X
|
|
default "2.29.1" if BR2_BINUTILS_VERSION_2_29_X
|
|
default "2.30" if BR2_BINUTILS_VERSION_2_30_X
|
|
default "2.31.1" if BR2_BINUTILS_VERSION_2_31_X
|
|
|
|
config BR2_BINUTILS_ENABLE_LTO
|
|
bool
|
|
|
|
config BR2_BINUTILS_EXTRA_CONFIG_OPTIONS
|
|
string "Additional binutils options"
|
|
default ""
|
|
help
|
|
Any additional binutils options you may want to include.
|