Ai
1 Star 0 Fork 0

苏木/u-boot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
binutils-version.sh 514 Bytes
一键复制 编辑 原始数据 按行查看 历史
苏木 提交于 2024-11-02 14:10 +08:00 . 更新NXP官方uboot版本(2016.03-->2019.04)
#!/bin/sh
#
# binutils-version [-p] gas-command
#
# Prints the binutils version of `gas-command' in a canonical 4-digit form
# such as `0222' for binutils 2.22
#
gas="$*"
if [ ${#gas} -eq 0 ]; then
echo "Error: No assembler specified."
printf "Usage:\n\t$0 <gas-command>\n"
exit 1
fi
version_string=$($gas --version | head -1 | \
sed -e 's/(.*)//; s/[^0-9.]*\([0-9.]*\).*/\1/')
MAJOR=$(echo $version_string | cut -d . -f 1)
MINOR=$(echo $version_string | cut -d . -f 2)
printf "%02d%02d\\n" $MAJOR $MINOR
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sumumm/u-boot.git
git@gitee.com:sumumm/u-boot.git
sumumm
u-boot
u-boot
master

搜索帮助