提交 ec31f868 编写于 作者: M Masahiro Yamada

setlocalversion: absorb $(KERNELVERSION)

Print $(KERNELVERSION) in setlocalversion so that the callers get
simpler.
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 75280bdf
...@@ -1258,8 +1258,7 @@ vmlinux: vmlinux.o $(KBUILD_LDS) modpost ...@@ -1258,8 +1258,7 @@ vmlinux: vmlinux.o $(KBUILD_LDS) modpost
# make sure no implicit rule kicks in # make sure no implicit rule kicks in
$(sort $(KBUILD_LDS) $(KBUILD_VMLINUX_OBJS) $(KBUILD_VMLINUX_LIBS)): . ; $(sort $(KBUILD_LDS) $(KBUILD_VMLINUX_OBJS) $(KBUILD_VMLINUX_LIBS)): . ;
filechk_kernel.release = \ filechk_kernel.release = $(srctree)/scripts/setlocalversion $(srctree)
echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
# Store (new) KERNELRELEASE string in include/config/kernel.release # Store (new) KERNELRELEASE string in include/config/kernel.release
include/config/kernel.release: FORCE include/config/kernel.release: FORCE
...@@ -2124,7 +2123,7 @@ checkstack: ...@@ -2124,7 +2123,7 @@ checkstack:
$(PERL) $(srctree)/scripts/checkstack.pl $(CHECKSTACK_ARCH) $(PERL) $(srctree)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
kernelrelease: kernelrelease:
@echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" @$(srctree)/scripts/setlocalversion $(srctree)
kernelversion: kernelversion:
@echo $(KERNELVERSION) @echo $(KERNELVERSION)
......
...@@ -102,6 +102,11 @@ if ! test -e include/config/auto.conf; then ...@@ -102,6 +102,11 @@ if ! test -e include/config/auto.conf; then
exit 1 exit 1
fi fi
if [ -z "${KERNELVERSION}" ]; then
echo "KERNELVERSION is not set" >&2
exit 1
fi
# localversion* files in the build and source directory # localversion* files in the build and source directory
res="$(collect_files localversion*)" res="$(collect_files localversion*)"
if test ! "$srctree" -ef .; then if test ! "$srctree" -ef .; then
...@@ -127,4 +132,4 @@ elif [ "${LOCALVERSION+set}" != "set" ]; then ...@@ -127,4 +132,4 @@ elif [ "${LOCALVERSION+set}" != "set" ]; then
res="$res$(scm_version --short)" res="$res$(scm_version --short)"
fi fi
echo "$res" echo "${KERNELVERSION}${res}"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册