diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
| commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
| tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /scripts/mkmakefile | |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'scripts/mkmakefile')
| -rw-r--r-- | scripts/mkmakefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile new file mode 100644 index 000000000000..c4d621b30d0d --- /dev/null +++ b/scripts/mkmakefile | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # Generates a small Makefile used in the root of the output | ||
| 3 | # directory, to allow make to be started from there. | ||
| 4 | # The Makefile also allow for more convinient build of external modules | ||
| 5 | |||
| 6 | # Usage | ||
| 7 | # $1 - Kernel src directory | ||
| 8 | # $2 - Output directory | ||
| 9 | # $3 - version | ||
| 10 | # $4 - patchlevel | ||
| 11 | |||
| 12 | |||
| 13 | cat << EOF | ||
| 14 | # Automatically generated by $0: don't edit | ||
| 15 | |||
| 16 | VERSION = $3 | ||
| 17 | PATCHLEVEL = $4 | ||
| 18 | |||
| 19 | KERNELSRC := $1 | ||
| 20 | KERNELOUTPUT := $2 | ||
| 21 | |||
| 22 | MAKEFLAGS += --no-print-directory | ||
| 23 | |||
| 24 | all: | ||
| 25 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) | ||
| 26 | |||
| 27 | %:: | ||
| 28 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@ | ||
| 29 | |||
| 30 | EOF | ||
| 31 | |||
