riscv-collab / riscv-openocd

Fork of OpenOCD that has RISC-V support
Other
451 stars 327 forks source link

Openocd build problem on aarch64 #17

Closed laanwj closed 7 years ago

laanwj commented 7 years ago

Openocd cannot currently be built on aarch64. The platform is not recognized, resulting in an error in the jimtcl autosetup.

It was very simple to fix this: replace configure.guess and configure.sub in openocd/jimtcl/autosetup with recent versions from GNU. E .g.

cd jimtcl/autosetup
wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'

I noticed this while trying to build the freedom-e-sdk (see https://github.com/sifive/freedom-e-sdk/issues/51), which has this as a submodule. This goes two projects deeper to jimtcl then autosetup, it may well be solved there and that this is just a matter of updating the submodule.

mwachs5 commented 7 years ago

Thanks for filing this. We will soon be doing a a major rebase onto the latest master OpenOCD, and will make sure this gets handled with that.

timsifive commented 7 years ago

This rebase has happened. @laanwj can you confirm that it builds now?

laanwj commented 7 years ago

Yes, I just tried building the tools again, and there was no error. Thanks!