[dm-crypt] Help with cross compilation needed

Marco Cavallini m.cavallini at koansoftware.com
Thu Nov 2 09:52:35 CET 2017


Il 01/11/2017 12:19, Moshe Kravchik ha scritto:
> Hi,
> 
> I’m a newbie to cross compiling so excuse me if it is a dump question. I 
> need to cross compile cryptsetup on my x86-64_linux_gnu for arm Linux 
> machine. I’ve run configure with the –host set to arm-linux-gnueabihf. 
> But the built binaries are for my machine, not for the target one.
> 
> I guess I need to point it to the right toolchain, sysroot for the 
> includes and such. I tried to use –with-sysroot, but it did not have any 
> effect.
> 
> Configure.log attached.
> 
> I’d appreciate a detailed guidance on how this should work. Also, I have 
> toolchains, but what about dependent libraries: devmapper, popt, gcrypt. 
> What do I do with them?
> 
> Thanks a lot,
> 
> Moshe
> 


Hi,
try adding the following environment variables before calling 
./configure and make

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-


--
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
       http://www.KoanSoftware.com


More information about the dm-crypt mailing list