diff options
author | 2025-03-08 22:04:20 +0800 | |
---|---|---|
committer | 2025-03-08 22:04:20 +0800 | |
commit | a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a (patch) | |
tree | 84f21bd0bf7071bc5fc7dd989e77d7ceb5476682 /scripts/mkmakefile | |
download | ohosKernel-a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a.tar.gz ohosKernel-a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a.zip |
Initial commit: OpenHarmony-v4.0-ReleaseOpenHarmony-v4.0-Release
Diffstat (limited to 'scripts/mkmakefile')
-rwxr-xr-x | scripts/mkmakefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile new file mode 100755 index 000000000..1cb174751 --- /dev/null +++ b/scripts/mkmakefile | |||
@@ -0,0 +1,17 @@ | |||
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 | |||
7 | # Usage | ||
8 | # $1 - Kernel src directory | ||
9 | |||
10 | if [ "${quiet}" != "silent_" ]; then | ||
11 | echo " GEN Makefile" | ||
12 | fi | ||
13 | |||
14 | cat << EOF > Makefile | ||
15 | # Automatically generated by $0: don't edit | ||
16 | include $1/Makefile | ||
17 | EOF | ||