mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild update from Michal Marek: "Only these two commits are in the kbuild branch this time: - Using filechk for include/config/kernel.release - Cleanup in scripts/sortextable.c" * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: kbuild: Do not overwrite include/config/kernel.release needlessly scripts: remove unused function in sortextable.c
This commit is contained in:
commit
1ff5e37e72
7
Makefile
7
Makefile
@ -794,10 +794,13 @@ PHONY += $(vmlinux-dirs)
|
|||||||
$(vmlinux-dirs): prepare scripts
|
$(vmlinux-dirs): prepare scripts
|
||||||
$(Q)$(MAKE) $(build)=$@
|
$(Q)$(MAKE) $(build)=$@
|
||||||
|
|
||||||
|
define filechk_kernel.release
|
||||||
|
echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
|
||||||
|
endef
|
||||||
|
|
||||||
# Store (new) KERNELRELEASE string in include/config/kernel.release
|
# Store (new) KERNELRELEASE string in include/config/kernel.release
|
||||||
include/config/kernel.release: include/config/auto.conf FORCE
|
include/config/kernel.release: include/config/auto.conf FORCE
|
||||||
$(Q)rm -f $@
|
$(call filechk,kernel.release)
|
||||||
$(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@
|
|
||||||
|
|
||||||
|
|
||||||
# Things we need to do before we recursively start building the kernel
|
# Things we need to do before we recursively start building the kernel
|
||||||
|
@ -64,14 +64,6 @@ fail_file(void)
|
|||||||
longjmp(jmpenv, SJ_FAIL);
|
longjmp(jmpenv, SJ_FAIL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__((noreturn))
|
|
||||||
succeed_file(void)
|
|
||||||
{
|
|
||||||
cleanup();
|
|
||||||
longjmp(jmpenv, SJ_SUCCEED);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the whole file as a programming convenience in order to avoid
|
* Get the whole file as a programming convenience in order to avoid
|
||||||
* malloc+lseek+read+free of many pieces. If successful, then mmap
|
* malloc+lseek+read+free of many pieces. If successful, then mmap
|
||||||
|
Loading…
Reference in New Issue
Block a user