把stash文件夾拷貝到Leapfrog目錄下
1.先進入Leapfrog/stash路徑.
2.輸入命令行cd
3.然後./setup_santiago_build
4.cd stash
5.cd linux-3.4.39
6.之後輸入配置腳本./build_santiago.sh
如果在輸入腳本編譯的時候出現以下錯誤:
root@SZPST72-42:~/Leapfrog/stash/linux-3.4.39# ./build_santiago.sh
*** Using CPUS=8
*** Using TARGET_MACH=nxp4330_santiago_defconfig ***
CROSS_COMPILE not set, setting to arm-angstrom-linux-uclibceabi-
*** Using PARENT_DIR=/home/se0853/Leapfrog/stash ***
*** Using GRANDPARENT_DIR=/home/se0853/Leapfrog ***
*** Using DEPLOY_PATH=/home/se0853/Leapfrog/deploy ***
*** Using ROOTFS_PATH=/home/se0853/Leapfrog/deploy/rootfs ***
./build_santiago.sh: $LINUX_VERSION='3.4.39'
TARGET_MACH=nxp4330_santiago_defconfig
make: arm-angstrom-linux-uclibceabi-gcc: Command not found
CHK include/linux/version.h
CHECK scripts/mod/empty.c
CC scripts/mod/empty.o
/bin/sh: 1: arm-angstrom-linux-uclibceabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
root@SZPST72-42:~/Leapfrog/stash/linux-3.4.39#
說明是編譯器工具鏈環境未正確設置,然後再輸入如下命令配置編譯器環境:
source /opt/angstrom-denzil/environment-setup-armv7a-vfp-angstrom-linux-uclibceabi
export ARCH=arm
再重新輸入內核腳本編譯即可。