Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #!/bin/sh |
Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | # Generates a small Makefile used in the root of the output |
| 4 | # directory, to allow make to be started from there. |
| 5 | # The Makefile also allow for more convinient build of external modules |
| 6 | |
| 7 | # Usage |
| 8 | # $1 - Kernel src directory |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Sam Ravnborg | d230124 | 2008-11-21 23:00:12 +0100 | [diff] [blame] | 10 | if [ "${quiet}" != "silent_" ]; then |
Masahiro Yamada | 4fd6127 | 2018-09-18 17:45:53 +0900 | [diff] [blame] | 11 | echo " GEN Makefile" |
Sam Ravnborg | d230124 | 2008-11-21 23:00:12 +0100 | [diff] [blame] | 12 | fi |
Jan Beulich | fd5f0cd | 2006-05-02 12:33:20 +0200 | [diff] [blame] | 13 | |
Masahiro Yamada | 4fd6127 | 2018-09-18 17:45:53 +0900 | [diff] [blame] | 14 | cat << EOF > Makefile |
Masahiro Yamada | 9c3ad4c | 2019-08-22 12:59:11 +0900 | [diff] [blame] | 15 | # Automatically generated by $0: don't edit |
| 16 | include $1/Makefile |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | EOF |