mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									43c4f67c96
								
							
						
					
					
						commit
						d3fc425e81
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| 
						 | 
					@ -1019,8 +1019,6 @@ prepare2: prepare3 prepare-compiler-check outputmakefile asm-generic
 | 
				
			||||||
prepare1: prepare2 $(version_h) include/generated/utsrelease.h \
 | 
					prepare1: prepare2 $(version_h) include/generated/utsrelease.h \
 | 
				
			||||||
                   include/config/auto.conf
 | 
					                   include/config/auto.conf
 | 
				
			||||||
	$(cmd_crmodverdir)
 | 
						$(cmd_crmodverdir)
 | 
				
			||||||
	$(Q)test -e include/generated/autoksyms.h || \
 | 
					 | 
				
			||||||
	    touch   include/generated/autoksyms.h
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
archprepare: archheaders archscripts prepare1 scripts_basic
 | 
					archprepare: archheaders archscripts prepare1 scripts_basic
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -35,6 +35,8 @@ nconfig: $(obj)/nconf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
silentoldconfig: $(obj)/conf
 | 
					silentoldconfig: $(obj)/conf
 | 
				
			||||||
	$(Q)mkdir -p include/config include/generated
 | 
						$(Q)mkdir -p include/config include/generated
 | 
				
			||||||
 | 
						$(Q)test -e include/generated/autoksyms.h || \
 | 
				
			||||||
 | 
						    touch   include/generated/autoksyms.h
 | 
				
			||||||
	$< $(silent) --$@ $(Kconfig)
 | 
						$< $(silent) --$@ $(Kconfig)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
 | 
					localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue