Skip to content

Commit d3fc425

Browse files
Nicolas Pitretorvalds
authored andcommitted
kbuild: make sure autoksyms.h exists early
Some people are able to trigger a race where autoksyms.h is used before its empty version is even created. Let's create it at the same time as the directory holding it is created. Signed-off-by: Nicolas Pitre <nico@linaro.org> Tested-by: Prarit Bhargava <prarit@redhat.com> Tested-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 43c4f67 commit d3fc425

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,8 +1019,6 @@ prepare2: prepare3 prepare-compiler-check outputmakefile asm-generic
10191019
prepare1: prepare2 $(version_h) include/generated/utsrelease.h \
10201020
include/config/auto.conf
10211021
$(cmd_crmodverdir)
1022-
$(Q)test -e include/generated/autoksyms.h || \
1023-
touch include/generated/autoksyms.h
10241022

10251023
archprepare: archheaders archscripts prepare1 scripts_basic
10261024

scripts/kconfig/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ nconfig: $(obj)/nconf
3535

3636
silentoldconfig: $(obj)/conf
3737
$(Q)mkdir -p include/config include/generated
38+
$(Q)test -e include/generated/autoksyms.h || \
39+
touch include/generated/autoksyms.h
3840
$< $(silent) --$@ $(Kconfig)
3941

4042
localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf

0 commit comments

Comments
 (0)