过程很复杂,但我都写在一个脚本里了,如果你想知道详细步骤,看脚本就是了:
#!/bin/sh
dodo(){
eval "$@"
[ $? != 0 ] && echo command failed. > /dev/tty && exit 1
}
##################################################
#set env
##################################################
TARGET=arm-linux
PREFIX=$HOME/bin/root/stow/arm
DISTDIR=/data/share/softwares/class/embed/arm
ARM_KERNEL_DECONFIG=at91rm9200dk_defconfig