mkmakefile 426 B

1234567891011121314151617
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  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. # Usage
  7. # $1 - Kernel src directory
  8. if [ "${quiet}" != "silent_" ]; then
  9. echo " GEN Makefile"
  10. fi
  11. cat << EOF > Makefile
  12. # Automatically generated by $0: don't edit
  13. include $1/Makefile
  14. EOF