riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
596 stars 308 forks source link

Update config.sub and config.guess #308

Closed valentinThomazic closed 1 year ago

valentinThomazic commented 1 year 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.