RP-PX30平台uboot编译脚本分析二:prepare 执行的make动作(1)
prepare() { local absolute_path cmd dir count # Parse output directory 'O=<dir>' cmd=${OUTDIR%=*} if [ "${cmd}" = 'O' ]; then OUTDIR=${OUTDIR#*=} OUTOPT=O=${OUTDIR} else case $BOARD in #Help --help|-help|help|--h|-h) echo "HELP--" help exit 0 ;; # Parse from exit .config ''|elf*|trust|loader|uboot|map|sym) count=`find -name .config | wc -l` dir=`find -name .config` echo "BOARD = " $BOARD # Good, find only one .config if [ $count -eq 1 ]; then dir=${dir%/*} OUTDIR=${dir#*/} echo "dir = " $dir echo OUTDIR= $OUTDIR # Set OUTOPT if not current directory if [ $OUTDIR != '.' ]; then OUTOPT=O=$