riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
570 stars 304 forks source link

Update config.sub and config.guess #308

Closed valentinThomazic closed 8 months ago

valentinThomazic commented 8 months ago

The current config.sub script does not recognize generic host names such as "riscv-*

$ ../configure --prefix=$RISCV --host=riscv-none-elf checking build system type... x86_64-pc-linux-gnu checking host system type... Invalid configuration `riscv-none-elf': machine `riscv-none' not recognized configure: error: /bin/sh ../scripts/config.sub riscv-none-elf failed

Replacing it with the latest version from https://git.savannah.gnu.org/cgit/config.git/plain/config.sub fixes the issue.

I updated the config.guess as well.