http://forum.cubietech.com/forum.php?mod=viewthread&tid=420&extra=page%3D1新鲜出炉:从零构建CubieBoard Debian Linux
http://onefishum.blog.163.com/blog/static/5184730520131151385937/ 安装Cubieboard最小系统 来自onefish的blog
http://linux-sunxi.org/Building_on_Debian 来自cubieboard的wiki
http://wiki.debian.org/EmDebian/CrossDebootstrap
http://tinkering-is-fun.blogspot.jp/2009/12/running-arm-linux-on-your-desktop-pc_12.html
https://wiki.ubuntu.com/ARM/BuildEABIChroot
http://www.cnx-software.com/2012/05/02/getting-started-with-multiarch-armel-armhf-in-ubuntu/
https://wiki.linaro.org/Platform/DevPlatform/CrossBuildd
https://wiki.debian.org/Multiarch/HOWTO
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/UsingMultiArch
https://wiki.debian.org/BuildingCrossCompilers
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuilding
#!/bin/bash # debootstrap --foreign --arch armhf wheezy . #cp /usr/bin/qemu-arm-static usr/bin #LC_ALL=C LANGUAGE=C LANG=C chroot . /debootstrap/debootstrap --second-stage #LC_ALL=C LANGUAGE=C LANG=C chroot . dpkg --configure -a #debootstrap --arch=armhf --variant=buildd --foreign wheezy /home/zlb/debian_develop http://ftp.cn.debian.org/debian sudo debootstrap --arch=armhf --variant=buildd --foreign wheezy /home/zlb/debian_develop/cubieboard_armhf http://mirrors.163.com/debian #sudo LC_ALL=C LANGUAGE=C LANG=C chroot cubieboard_armhf/ /debootstrap/debootstrap --second-stage #sudo LC_ALL=C LANGUAGE=C LANG=C chroot cubieboard_armhf/ dpkg-reconfigure -a
建立链接
for i in arm-linux-gnueabihf*-4.7 ; do sudo ln -sfv $i ${i%%-4.7} ; done
$ DEB_CPPFLAGS_SET="-I/foo/bar/baz" DEB_CFLAGS_SET="-g -O6" DEB_LDFLAGS_SET="-L/fruzzel/frazzel/" dpkg-buildpackage -uc -us -j8 -rfakeroot
转载于:https://blog.51cto.com/axlrose/1286938