Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17c5ca98 authored by Felipe Contreras's avatar Felipe Contreras Committed by Sam Ravnborg
Browse files

kbuild: mkcompile_h: trivial cleanups



UTS_TRUNCATTE is simpler this way, and now editors idetify this as a
shell script.

Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Acked-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 9c3049c0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
#!/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