mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	kbuild: remove dead code in cmd_files calculation in top Makefile
Nobody sets 'targets' in the top-level Makefile or arch/*/Makefile, hence $(targets) is empty. $(wildcard .*.cmd) will do for including the .vmlinux.cmd file. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
		
							parent
							
								
									25815cf5ff
								
							
						
					
					
						commit
						00d78ab2ba
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							| 
						 | 
					@ -1721,8 +1721,7 @@ cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \
 | 
				
			||||||
                  $(if $(KBUILD_MODULES),; rm -f $(MODVERDIR)/*)
 | 
					                  $(if $(KBUILD_MODULES),; rm -f $(MODVERDIR)/*)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# read all saved command lines
 | 
					# read all saved command lines
 | 
				
			||||||
 | 
					cmd_files := $(wildcard .*.cmd)
 | 
				
			||||||
cmd_files := $(wildcard .*.cmd $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd))
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifneq ($(cmd_files),)
 | 
					ifneq ($(cmd_files),)
 | 
				
			||||||
  $(cmd_files): ;	# Do not try to update included dependency files
 | 
					  $(cmd_files): ;	# Do not try to update included dependency files
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue