1*4882a593Smuzhiyun#!/bin/sh 2*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0 3*4882a593Smuzhiyun# Generates a small Makefile used in the root of the output 4*4882a593Smuzhiyun# directory, to allow make to be started from there. 5*4882a593Smuzhiyun# The Makefile also allow for more convinient build of external modules 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun# Usage 8*4882a593Smuzhiyun# $1 - Kernel src directory 9*4882a593Smuzhiyun 10*4882a593Smuzhiyunif [ "${quiet}" != "silent_" ]; then 11*4882a593Smuzhiyun echo " GEN Makefile" 12*4882a593Smuzhiyunfi 13*4882a593Smuzhiyun 14*4882a593Smuzhiyuncat << EOF > Makefile 15*4882a593Smuzhiyun# Automatically generated by $0: don't edit 16*4882a593Smuzhiyuninclude $1/Makefile 17*4882a593SmuzhiyunEOF 18