mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	 9c3ad4c14f
			
		
	
	
		9c3ad4c14f
		
	
	
	
	
		
			
			Both relative path and absolute path have pros and cons. For example, we can move the source and objtree around together by using the relative path to the source tree. Do not force the absolute path to the source tree. If you prefer the absolute path, you can specify KBUILD_ABS_SRCTREE=1. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			426 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			426 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| # SPDX-License-Identifier: GPL-2.0
 | |
| # Generates a small Makefile used in the root of the output
 | |
| # directory, to allow make to be started from there.
 | |
| # The Makefile also allow for more convinient build of external modules
 | |
| 
 | |
| # Usage
 | |
| # $1 - Kernel src directory
 | |
| 
 | |
| if [ "${quiet}" != "silent_" ]; then
 | |
| 	echo "  GEN     Makefile"
 | |
| fi
 | |
| 
 | |
| cat << EOF > Makefile
 | |
| # Automatically generated by $0: don't edit
 | |
| include $1/Makefile
 | |
| EOF
 |