提交 17c5ca98 编写于 作者: F Felipe Contreras 提交者: Sam Ravnborg

kbuild: mkcompile_h: trivial cleanups

UTS_TRUNCATTE is simpler this way, and now editors idetify this as a
shell script.
Signed-off-by: NFelipe Contreras <felipe.contreras@gmail.com>
Acked-by: NWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 9c3049c0
#!/bin/sh
TARGET=$1
ARCH=$2
SMP=$3
......@@ -50,7 +52,7 @@ UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS $TIMESTAMP"
# Truncate to maximum length
UTS_LEN=64
UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/"
UTS_TRUNCATE="cut -b -$UTS_LEN"
# Generate a temporary compile.h
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册