mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
scripts: Strip git
from CC_VERSION
Change-Id: Ic94f0082626e332a95e57b0508d4fed86d1dcf69 Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
2169f78599
commit
01211abae8
@ -78,7 +78,7 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
|
||||
echo \#define LINUX_COMPILE_BY \"`echo $LINUX_COMPILE_BY | $UTS_TRUNCATE`\"
|
||||
echo \#define LINUX_COMPILE_HOST \"`echo $LINUX_COMPILE_HOST | $UTS_TRUNCATE`\"
|
||||
if [ -z "$KBUILD_COMPILER_STRING" ]; then
|
||||
CC_VERSION=$($CC -v 2>&1 | grep ' version ' | head -n 1 | perl -pe 's/\(http.*?\)//gs' | sed -e 's/ */ /g' -e 's/[[:space:]]*$//')
|
||||
CC_VERSION=$($CC -v 2>&1 | grep ' version ' | head -n 1 | perl -pe 's/\(http.*?\)//gs' | sed -e 's/ */ /g' -e 's/[[:space:]]*$//' -e 's/git//')
|
||||
else
|
||||
CC_VERSION="$KBUILD_COMPILER_STRING"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user