Skip to content

Commit 17c5ca9

Browse files
felipecsravnborg
authored andcommitted
kbuild: mkcompile_h: trivial cleanups
UTS_TRUNCATTE is simpler this way, and now editors idetify this as a shell script. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Acked-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent 9c3049c commit 17c5ca9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/mkcompile_h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/sh
2+
13
TARGET=$1
24
ARCH=$2
35
SMP=$3
@@ -50,7 +52,7 @@ UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS $TIMESTAMP"
5052
# Truncate to maximum length
5153

5254
UTS_LEN=64
53-
UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/"
55+
UTS_TRUNCATE="cut -b -$UTS_LEN"
5456

5557
# Generate a temporary compile.h
5658

0 commit comments

Comments
 (0)