I use this command:
make CC=/home/yamato/crosschain_middle/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.0/bin/riscv64-unknown-linux-gnu-gcc FC=/home/yamato/crosschain_middle/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.0/bin/riscv64-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=XuanTiec906
I adapt it from the example in README,however I don't know how I choose the TARGET?It responds me that ''Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.''