mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	kbuild: make samples really depend on headers_install
Kernel headers must be installed into $(objtree)/usr/include to avoid
the build failure of samples.
Commit ddea05fa14 ("kbuild: make samples depend on headers_install")
addressed this, but "samples/" is only used for the single target build.
"make samples/" properly installs kernel headers, but it does not work
for general building because a phony target "sample" (no trailing slash)
is used.
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: David Howells <dhowells@redhat.com>
			
			
This commit is contained in:
		
							parent
							
								
									0004438a16
								
							
						
					
					
						commit
						3fca1700c4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							| 
						 | 
					@ -1010,9 +1010,10 @@ ifdef CONFIG_GDB_SCRIPTS
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
	+$(call if_changed,link-vmlinux)
 | 
						+$(call if_changed,link-vmlinux)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Build samples along the rest of the kernel
 | 
					# Build samples along the rest of the kernel. This needs headers_install.
 | 
				
			||||||
ifdef CONFIG_SAMPLES
 | 
					ifdef CONFIG_SAMPLES
 | 
				
			||||||
vmlinux-dirs += samples
 | 
					vmlinux-dirs += samples
 | 
				
			||||||
 | 
					samples: headers_install
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# The actual objects are generated when descending,
 | 
					# The actual objects are generated when descending,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue