split_by_variant.sh

来自「U-boot源码 ARM7启动代码」· Shell 代码 · 共 42 行

SH
42
字号
#!/bin/sh# ---------------------------------------------------------#  Set the core module defines according to Core Module# ---------------------------------------------------------config="$1"# ---------------------------------------------------------# Set up the Realview type define# ---------------------------------------------------------# Use this until later versions provide distinct core tiles# ---------------------------------------------------------cpu=armct_rvif [ "$1" == "" ]then	echo "$0:: No parameters - using arm-linux-gcc realview_pb1176_config"else	case "$config" in	realview_pb1176_config)	echo "#define CONFIG_REALVIEW_PB1176" > ./include/config.h	;;	realview_pb11mp_config)	echo "#define CONFIG_REALVIEW_PB11MP" > ./include/config.h	;;	*)	echo "$0:: Unrecognised config - using realview_pb1176_config"	echo "#define CONFIG_REALVIEW_PB1176" > ./include/config.h	;;	esacfi# ---------------------------------------------------------#	Ensure correct core object loaded first in U-Boot image# ---------------------------------------------------------sed -r 's/CPU_FILE/cpu\/'$cpu'\/start.o/; s/#.*//' board/realview_pb/u-boot.lds.template > board/realview_pb/u-boot.lds# ---------------------------------------------------------# Complete the configuration# ---------------------------------------------------------./mkconfig -a realview_pb arm $cpu realview_pb

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?