split_by_variant.sh
来自「U-boot源码 ARM7启动代码」· Shell 代码 · 共 38 行
SH
38 行
#!/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_eb_config"else case "$config" in realview_eb_config) echo "#define CONFIG_REALVIEW_EB" > ./include/config.h ;; *) echo "$0:: Unrecognised config - using realview_eb_config" echo "#define CONFIG_REALVIEW_EB" > ./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_eb/u-boot.lds.template > board/realview_eb/u-boot.lds# ---------------------------------------------------------# Complete the configuration# ---------------------------------------------------------./mkconfig -a realview_eb arm $cpu realview_eb
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?