2005-04-16 15:20:36 -07:00
|
|
|
#!/bin/sh
|
2017-11-01 15:07:57 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2005-04-16 15:20:36 -07:00
|
|
|
# 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
|
|
|
|
|
|
2008-11-21 23:00:12 +01:00
|
|
|
if [ "${quiet}" != "silent_" ]; then
|
2018-09-18 17:45:53 +09:00
|
|
|
echo " GEN Makefile"
|
2008-11-21 23:00:12 +01:00
|
|
|
fi
|
2006-05-02 12:33:20 +02:00
|
|
|
|
2018-09-18 17:45:53 +09:00
|
|
|
cat << EOF > Makefile
|
2019-03-30 21:04:16 +09:00
|
|
|
# Automatically generated by $(realpath $0): don't edit
|
|
|
|
|
include $(realpath $1/Makefile)
|
2005-04-16 15:20:36 -07:00
|
|
|
EOF
|