Re: Building dropbear for riscv64 linux
On Sat, 23 Feb 2019 at 15:22, Peter Korsgaard wrote: > > > "Jay" == Jay Aurabind writes: > > > Hi, > > I'm trying to build dropbear for riscv in a small userland, according > > to > > > https://github.com/michaeljclark/busybear-linux/blob/24fc2e81c57f7fa024cc2b911e470fd2104e38d9/scripts/build.sh#L66 > > > I get a the below configure error: > > > checking build system type... x86_64-unknown-linux-gnu > > checking host system type... Invalid configuration > > `riscv64-linux-gnu': machine `riscv64' not recognized > > configure: error: /bin/bash ./config.sub riscv64-linux-gnu failed > > You will encounter a lot of packages with old config.sub, so it makes > more sense to update config.sub locally before building autotools > packages, similar to how we do it in Buildroot: > > https://git.buildroot.org/buildroot/tree/package/pkg-autotools.mk#n31 > > -- > Bye, Peter Korsgaard Thank you very much Peter, this information was helpful and I can build dropbear for riscv. -- Thanks and Regards, Jay
Re: Building dropbear for riscv64 linux
> "Jay" == Jay Aurabind writes: > Hi, > I'm trying to build dropbear for riscv in a small userland, according > to > https://github.com/michaeljclark/busybear-linux/blob/24fc2e81c57f7fa024cc2b911e470fd2104e38d9/scripts/build.sh#L66 > I get a the below configure error: > checking build system type... x86_64-unknown-linux-gnu > checking host system type... Invalid configuration > `riscv64-linux-gnu': machine `riscv64' not recognized > configure: error: /bin/bash ./config.sub riscv64-linux-gnu failed You will encounter a lot of packages with old config.sub, so it makes more sense to update config.sub locally before building autotools packages, similar to how we do it in Buildroot: https://git.buildroot.org/buildroot/tree/package/pkg-autotools.mk#n31 -- Bye, Peter Korsgaard
Building dropbear for riscv64 linux
Hi, I'm trying to build dropbear for riscv in a small userland, according to https://github.com/michaeljclark/busybear-linux/blob/24fc2e81c57f7fa024cc2b911e470fd2104e38d9/scripts/build.sh#L66 I get a the below configure error: checking build system type... x86_64-unknown-linux-gnu checking host system type... Invalid configuration `riscv64-linux-gnu': machine `riscv64' not recognized configure: error: /bin/bash ./config.sub riscv64-linux-gnu failed Looking at config.sub, the file does not contain any any entry for riscv arch. On the contrary, openssh has riscv64 machines entries in its config.sub: https://github.com/openssh/openssh-portable/blob/38e83e4f219c752ebb1560633b73f06f0392018b/config.sub#L305 Does dropbear need extra patches? Is there some easy way I can get dropbear to cross compile ? -- Thanks and Regards, Aurabindo J