From e066d5d1e01e56fbdd474cee57f47f43c3f105c6 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Tue, 19 Apr 2022 17:55:26 +0800 Subject: [PATCH] arch/risc-v: Unify the toolchain definition of RVG for linux and windows Signed-off-by: chao.an --- arch/risc-v/Kconfig | 16 +++------------- arch/risc-v/src/common/Toolchain.defs | 6 +----- tools/README.txt | 2 +- tools/ci/testlist/macos.dat | 4 ++-- tools/ci/testlist/risc-v.dat | 2 +- 5 files changed, 8 insertions(+), 22 deletions(-) diff --git a/arch/risc-v/Kconfig b/arch/risc-v/Kconfig index bc35d323fe..f44241a7f0 100644 --- a/arch/risc-v/Kconfig +++ b/arch/risc-v/Kconfig @@ -261,20 +261,10 @@ config ARCH_MPU_HAS_NAPOT choice prompt "Toolchain Selection" - default RISCV_TOOLCHAIN_GNU_RVGW if TOOLCHAIN_WINDOWS - default RISCV_TOOLCHAIN_GNU_RVGL if !TOOLCHAIN_WINDOWS + default RISCV_TOOLCHAIN_GNU_RVG -config RISCV_TOOLCHAIN_GNU_RVGL - bool "Generic GNU RVG toolchain under Linux (or other POSIX environment)" - select ARCH_TOOLCHAIN_GNU - ---help--- - This option should work for any modern GNU toolchain (GCC 5.2 or newer) - configured for riscv64-unknown-elf. - -config RISCV_TOOLCHAIN_GNU_RVGW - bool "Generic GNU RVG toolchain under Windows" - depends on TOOLCHAIN_WINDOWS - select CYGWIN_WINTOOL if WINDOWS_CYGWIN +config RISCV_TOOLCHAIN_GNU_RVG + bool "Generic GNU RVG toolchain" select ARCH_TOOLCHAIN_GNU ---help--- This option should work for any modern GNU toolchain (GCC 5.2 or newer) diff --git a/arch/risc-v/src/common/Toolchain.defs b/arch/risc-v/src/common/Toolchain.defs index 0be47e2679..81adabc348 100644 --- a/arch/risc-v/src/common/Toolchain.defs +++ b/arch/risc-v/src/common/Toolchain.defs @@ -27,11 +27,7 @@ # command-line selection. # -ifeq ($(filter y, $(CONFIG_RISCV_TOOLCHAIN_GNU_RVGL)),y) - CONFIG_RISCV_TOOLCHAIN ?= GNU_RVG -endif - -ifeq ($(filter y, $(CONFIG_RISCV_TOOLCHAIN_GNU_RVGW)),y) +ifeq ($(filter y, $(CONFIG_RISCV_TOOLCHAIN_GNU_RVG)),y) CONFIG_RISCV_TOOLCHAIN ?= GNU_RVG endif diff --git a/tools/README.txt b/tools/README.txt index 0d05e062ce..aae444c276 100644 --- a/tools/README.txt +++ b/tools/README.txt @@ -1029,7 +1029,7 @@ testbuild.sh stm32f429i-disco:nsh arduino-due:nsh /arm - /risc-v,CONFIG_RISCV_TOOLCHAIN_GNU_RVGL + /risc-v The first value is the usual configuration description of the form : or / and must correspond to a diff --git a/tools/ci/testlist/macos.dat b/tools/ci/testlist/macos.dat index f3c9432570..222505abf4 100644 --- a/tools/ci/testlist/macos.dat +++ b/tools/ci/testlist/macos.dat @@ -17,9 +17,9 @@ # RISC-V -/risc-v/bl602/bl602evb/configs/wifi,CONFIG_RISCV_TOOLCHAIN_GNU_RVGL +/risc-v/bl602/bl602evb/configs/wifi -/risc-v/esp32c3/esp32c3-devkit/configs/wapi,CONFIG_RISCV_TOOLCHAIN_GNU_RVGL +/risc-v/esp32c3/esp32c3-devkit/configs/wapi # ARM diff --git a/tools/ci/testlist/risc-v.dat b/tools/ci/testlist/risc-v.dat index 31ed032c73..184cd48009 100644 --- a/tools/ci/testlist/risc-v.dat +++ b/tools/ci/testlist/risc-v.dat @@ -1 +1 @@ -/risc-v,CONFIG_RISCV_TOOLCHAIN_GNU_RVGL +/risc-v