From 9c7797245138ee0e411f2bae618e05a375e1f06f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 4 Mar 2017 03:03:02 +0100 Subject: riscv: add experimental linux/glibc support --- target/config/Config.in.cpu | 2 ++ target/config/Config.in.kernelversion | 15 +++++++++++++++ target/config/Config.in.libc | 9 +++++++-- 3 files changed, 24 insertions(+), 2 deletions(-) (limited to 'target/config') diff --git a/target/config/Config.in.cpu b/target/config/Config.in.cpu index d7132e1ef..962942528 100644 --- a/target/config/Config.in.cpu +++ b/target/config/Config.in.cpu @@ -1012,6 +1012,8 @@ config ADK_TARGET_CPU_PPC64_POWER8 # riscv config ADK_TARGET_CPU_RISCV bool "riscv" + select ADK_TARGET_SUPPORTS_THREADS + select ADK_TARGET_SUPPORTS_NPTL select ADK_TARGET_WITH_MMU depends on ADK_TARGET_ARCH_RISCV diff --git a/target/config/Config.in.kernelversion b/target/config/Config.in.kernelversion index 7a6ac8fab..b2353f839 100644 --- a/target/config/Config.in.kernelversion +++ b/target/config/Config.in.kernelversion @@ -12,12 +12,14 @@ default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_SYSTEM_KINETIS_K70 default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_ARCH_LM32 default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_CRIS default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_METAG +default ADK_TARGET_KERNEL_VERSION_4_6 if ADK_TARGET_ARCH_RISCV default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU default ADK_TARGET_KERNEL_VERSION_4_9 config ADK_TARGET_KERNEL_VERSION_GIT bool "git" depends on !ADK_TARGET_ARCH_NDS32 + depends on !ADK_TARGET_ARCH_RISCV select ADK_HOST_NEED_LZOP if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6 select ADK_HOST_NEED_LZOP if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK select ADK_TARGET_KERNEL_IMAGE if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6 @@ -28,13 +30,19 @@ config ADK_TARGET_KERNEL_VERSION_4_9 depends on !ADK_TARGET_ARCH_CRIS depends on !ADK_TARGET_ARCH_METAG depends on !ADK_TARGET_ARCH_NDS32 + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU +config ADK_TARGET_KERNEL_VERSION_4_6 + bool "4.6.2" + depends on ADK_TARGET_ARCH_RISCV + config ADK_TARGET_KERNEL_VERSION_4_4 bool "4.4.50" depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_CPU_MIPS_MIPS32R6 depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6 depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2 @@ -48,6 +56,7 @@ config ADK_TARGET_KERNEL_VERSION_4_1 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_OR1K depends on !ADK_TARGET_ARCH_SPARC + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_SYSTEM_KINETIS_K70 depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU @@ -62,6 +71,7 @@ config ADK_TARGET_KERNEL_VERSION_3_18 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_ARCH_SPARC depends on !ADK_TARGET_BOARD_ATH79 depends on !ADK_TARGET_BOARD_BCM28XX @@ -82,6 +92,7 @@ config ADK_TARGET_KERNEL_VERSION_3_12 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_ARCH_SPARC depends on !ADK_TARGET_BOARD_ATH79 depends on !ADK_TARGET_BOARD_BCM28XX @@ -101,6 +112,7 @@ config ADK_TARGET_KERNEL_VERSION_3_10 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_ARCH_SPARC depends on !ADK_TARGET_BOARD_ATH79 depends on !ADK_TARGET_BOARD_BCM28XX @@ -122,6 +134,7 @@ config ADK_TARGET_KERNEL_VERSION_3_4 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_ARCH_SPARC depends on !ADK_TARGET_BOARD_ATH79 depends on !ADK_TARGET_BOARD_BCM28XX @@ -146,6 +159,7 @@ config ADK_TARGET_KERNEL_VERSION_3_2 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_ARCH_SPARC depends on !ADK_TARGET_BOARD_ATH79 depends on !ADK_TARGET_BOARD_BCM28XX @@ -166,6 +180,7 @@ config ADK_TARGET_KERNEL_VERSION_2_6_32 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K + depends on !ADK_TARGET_ARCH_RISCV depends on !ADK_TARGET_ARCH_SPARC depends on !ADK_TARGET_BOARD_ATH79 depends on !ADK_TARGET_BOARD_BCM28XX diff --git a/target/config/Config.in.libc b/target/config/Config.in.libc index 83439d76b..7157c214c 100644 --- a/target/config/Config.in.libc +++ b/target/config/Config.in.libc @@ -79,6 +79,7 @@ config ADK_TARGET_LIB_GLIBC ADK_TARGET_CPU_SH_SH4A || \ ADK_TARGET_ARCH_SPARC64 || \ ADK_TARGET_ARCH_TILE || \ + ADK_TARGET_ARCH_RISCV || \ ADK_TARGET_ARCH_X86 || \ ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX help @@ -137,11 +138,15 @@ config ADK_TARGET_LIB_UCLIBC_NG_GIT config ADK_TARGET_LIB_GLIBC_2_25 bool "2.25" - depends on ADK_TARGET_LIB_GLIBC + depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_RISCV + +config ADK_TARGET_LIB_GLIBC_RISCV + bool "riscv" + depends on ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_RISCV config ADK_TARGET_LIB_GLIBC_GIT bool "git" - depends on ADK_TARGET_LIB_GLIBC + depends on ADK_TARGET_LIB_GLIBC && !ADK_TARGET_ARCH_RISCV config ADK_TARGET_LIB_MUSL_1_1_16 bool "1.1.16" -- cgit v1.2.3