mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	This patch silences a Makefile.asm-generic message
by defining a dummy rule for all.
make -f /usr/src/git/scripts/Makefile.asm-generic \
            obj=arch/x86/include/generated/asm
make[1]: Nothing to be done for `all'.
Signed-off-by: Peter Foley <pefoley2@verizon.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
		
	
			
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			681 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			681 B
		
	
	
	
		
			Text
		
	
	
	
	
	
# include/asm-generic contains a lot of files that are used
 | 
						|
# verbatim by several architectures.
 | 
						|
#
 | 
						|
# This Makefile reads the file arch/$(SRCARCH)/include/asm/Kbuild
 | 
						|
# and for each file listed in this file with generic-y creates
 | 
						|
# a small wrapper file in $(obj) (arch/$(SRCARCH)/include/generated/asm)
 | 
						|
 | 
						|
kbuild-file := $(srctree)/arch/$(SRCARCH)/include/asm/Kbuild
 | 
						|
-include $(kbuild-file)
 | 
						|
 | 
						|
include scripts/Kbuild.include
 | 
						|
 | 
						|
# Create output directory if not already present
 | 
						|
_dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj))
 | 
						|
 | 
						|
quiet_cmd_wrap = WRAP    $@
 | 
						|
cmd_wrap = echo "\#include <asm-generic/$*.h>" >$@
 | 
						|
 | 
						|
all: $(patsubst %, $(obj)/%, $(generic-y))
 | 
						|
	@:
 | 
						|
 | 
						|
$(obj)/%.h:
 | 
						|
	$(call cmd,wrap)
 | 
						|
 |