Files
kernel/scripts/mkmakefile
T

18 lines
450 B
Bash
Raw Normal View History

2005-04-16 15:20:36 -07:00
#!/bin/sh
# 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
echo " GEN Makefile"
2008-11-21 23:00:12 +01:00
fi
cat << EOF > Makefile
# Automatically generated by $(realpath $0): don't edit
include $(realpath $1/Makefile)
2005-04-16 15:20:36 -07:00
EOF