配置和编译Santiago内核(nxp4330平台)

     把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
再重新输入内核脚本编译即可。

 

你可能感兴趣的:(Linux,嵌入式,环境搭建)