Cross compiling lxc for arm - howto
Intial help from:
http://mfcoding.wordpress.com/2012/08/20/beagleboard-xm-cross-compile-lxc/#comment-65
export PATH=$PATH:/home/sara/projects/toolchain/tools/arm-gnueabi/bin
export CROSS_COMPILE=arm-linux-gnueabi-
export OUTDIR=/home/sara/projects/out/
###########################################################################
We need to copy these files(Note1) from existing rootfs to the toolchain path as mentioned in Note2.
Note1 :
[sara@cav_fc lib]$ ls libattr.* libcap*
libattr.a libattr.so libattr.so.1.1.0 libcap.so libcap.so.2.16
libattr.la libattr.so.1 libcap.a libcap.so.2
Note2 :
[sara@cav_fc lib]$ pwd
/home/sara/projects/vega_desk/toolchain/tools/arm-gnueabi/arm-linux-gnueabi/libc/usr/lib
###########################################################################
$sudo ./configure -host=arm-linux-gnueabi CC=/home/sara/projects/toolchain/tools/arm-gnueabi/bin/arm-linux-gnueabi-gcc
$sudo make
$sudo make prefix=$OUTDIR install
Intial help from:
http://mfcoding.wordpress.com/2012/08/20/beagleboard-xm-cross-compile-lxc/#comment-65
export PATH=$PATH:/home/sara/projects/toolchain/tools/arm-gnueabi/bin
export CROSS_COMPILE=arm-linux-gnueabi-
export OUTDIR=/home/sara/projects/out/
###########################################################################
We need to copy these files(Note1) from existing rootfs to the toolchain path as mentioned in Note2.
Note1 :
[sara@cav_fc lib]$ ls libattr.* libcap*
libattr.a libattr.so libattr.so.1.1.0 libcap.so libcap.so.2.16
libattr.la libattr.so.1 libcap.a libcap.so.2
Note2 :
[sara@cav_fc lib]$ pwd
/home/sara/projects/vega_desk/toolchain/tools/arm-gnueabi/arm-linux-gnueabi/libc/usr/lib
###########################################################################
$sudo ./configure -host=arm-linux-gnueabi CC=/home/sara/projects/toolchain/tools/arm-gnueabi/bin/arm-linux-gnueabi-gcc
$sudo make
$sudo make prefix=$OUTDIR install
Thanks for the help. I worked for me also.
ReplyDeleteI am using gcc-arm-linux-gnueabi toolchain. I am not getting libraries of apparmor so I disabled it using.
./configure -host=arm-linux-gnueabi --disable-apparmor
I even statically linked it for Android system.