通过查看 toolchain/toolchain-external/ext-toolchain-wrapper.c 源文件,可以得知,设置BR_DEBUG_WRAPPER环境变量可以输出参数信息
进到 /home/lvdata/develop/class_by_os/linux/buildroot/out_of_build/armv5te_build_out/目录,
BR_DEBUG_WRAPPER=1 ./host/usr/bin/arm-none-linux-gnueabi-gcc
或
export BR_DEBUG_WRAPPER=1
./host/usr/bin/arm-none-linux-gnueabi-gcc
或者加到 out_of_build.sh脚本中
#!/bin/bash export BR_DEBUG_WRAPPER=1 export LC_ALL=C export LANG=C #export BUILDROOT_DL_DIR="下载目录位置" REPO_DIR=$(pwd)/../../buildroot_repos echo "make -C ${REPO_DIR} O=$(pwd) $@" make -C ${REPO_DIR} O=$(pwd) $@ #make manual-txt Executing /home/lvdata/develop/class_by_os/linux/buildroot/out_of_build/armv5te_build_out/host/opt/ext-toolchain/bin/arm-none-linux-gnueabi-gcc --sysroot /home/lvdata/develop/class_by_os/linux/buildroot/out_of_build/armv5te_build_out/host/usr/arm-buildroot-linux-gnueabi/sysroot -march=armv5te -mtune=arm926ej-s -mabi=aapcs-linux -msoft-float -marm -pipe -mfloat-abi=soft
可以看到使用的是arm926ej-s的cpu架构