工作台操作系统是 Ubuntu12.04 x64。
构建交叉编译器。
mkdir app_devkit; cd app_devkit
repo init -u git://codeaurora.org/quic/le/manifest.git -b release -m LNX.LE.5.1-66056-9x40.xm
repo sync
cd oe-core; . build/conf/set_bb_env.sh
bitbake gcc
测试交叉编译器 --> OK。
tmp-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc -o hello_world hello_world.c
装上一些“被忽略的套接字”
cd ../../..
tar zcf app_devkit.tgz app_devkit
tar: app_devkit/oe-core/build/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/linux-libc-headers/3.8-r0/pseudo/pseudo.socket: socket ignored
...
tar: app_devkit/oe-core/build/tmp-eglibc/sysroots/x86_64-linux/var/pseudo/pseudo.socket: socket ignored
再次解压测试 --> NG
cd <somewhere else>
tar zxf <path to app_devkit.tgz>
cd app_devkit/oe-core/build
tmp-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc -o hello_world hello_world.c
as: unrecognized option '-meabi=5'