Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv: build: Support compiling kernel using Xuantie toolchain #14

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

cp0613
Copy link

@cp0613 cp0613 commented Mar 27, 2024

Compared to toolchains with gcc12 or above, the Xuantie toolchain gcc10 does not have vector support enabled by default, and -march needs to be explicitly specified.

  1. Xuantie toolchain gcc10 does not support using AS_HAS_OPTION_ARCH to automatically detect vector extensions and enable it.
  2. The ld tool version of Xuantie toolchain gcc10 is 2.35, which is less than the 2.38 required by TOOLCHAIN_HAS_V.

Compared to toolchains with gcc12 or above, the Xuantie toolchain
gcc10 does not have vector support enabled by default, and -march
needs to be explicitly specified.

1. Xuantie toolchain gcc10 does not support using AS_HAS_OPTION_ARCH
to automatically detect vector extensions and enable it.
2. The ld tool version of Xuantie toolchain gcc10 is 2.35, which is
less than the 2.38 required by TOOLCHAIN_HAS_V.

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
@guoren83 guoren83 merged commit 17d0a54 into XUANTIE-RV:linux-6.6 Mar 28, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants