kbuild: mkcompile_h: do not create .version
This script does not need to create .version; it will be created by scripts/link-vmlinux.sh later. Clean-up the code slightly. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
Родитель
278ae60403
Коммит
37131ec4f9
|
@ -27,12 +27,7 @@ LC_ALL=C
|
||||||
export LC_ALL
|
export LC_ALL
|
||||||
|
|
||||||
if [ -z "$KBUILD_BUILD_VERSION" ]; then
|
if [ -z "$KBUILD_BUILD_VERSION" ]; then
|
||||||
if [ -r .version ]; then
|
VERSION=$(cat .version 2>/dev/null || echo 1)
|
||||||
VERSION=`cat .version`
|
|
||||||
else
|
|
||||||
VERSION=0
|
|
||||||
echo 0 > .version
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
VERSION=$KBUILD_BUILD_VERSION
|
VERSION=$KBUILD_BUILD_VERSION
|
||||||
fi
|
fi
|
||||||
|
|
Загрузка…
Ссылка в новой задаче