18c2ecf20Sopenharmony_ci#!/bin/sh 28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 38c2ecf20Sopenharmony_ci# Generates a small Makefile used in the root of the output 48c2ecf20Sopenharmony_ci# directory, to allow make to be started from there. 58c2ecf20Sopenharmony_ci# The Makefile also allow for more convinient build of external modules 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci# Usage 88c2ecf20Sopenharmony_ci# $1 - Kernel src directory 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciif [ "${quiet}" != "silent_" ]; then 118c2ecf20Sopenharmony_ci echo " GEN Makefile" 128c2ecf20Sopenharmony_cifi 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cicat << EOF > Makefile 158c2ecf20Sopenharmony_ci# Automatically generated by $0: don't edit 168c2ecf20Sopenharmony_ciinclude $1/Makefile 178c2ecf20Sopenharmony_ciEOF 18