forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kbuild: Add make dir-pkg build option
Add a 'dir-pkg' target which just creates the same directory structures as in tar-pkg, but doesn't package anything. Useful when the user wants to copy the kernel tree on a machine using ssh, rsync or whatever. Signed-off-by: Matteo Croce <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
- Loading branch information
1 parent
4234448
commit af7db99
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
# | ||
# buildtar 0.0.4 | ||
# buildtar 0.0.5 | ||
# | ||
# (C) 2004-2006 by Jan-Benedict Glaw <[email protected]> | ||
# | ||
|
@@ -24,7 +24,7 @@ tarball="${objtree}/linux-${KERNELRELEASE}-${ARCH}.tar" | |
# Figure out how to compress, if requested at all | ||
# | ||
case "${1}" in | ||
tar-pkg) | ||
dir-pkg|tar-pkg) | ||
opts= | ||
;; | ||
targz-pkg) | ||
|
@@ -125,6 +125,10 @@ case "${ARCH}" in | |
;; | ||
esac | ||
|
||
if [ "${1}" = dir-pkg ]; then | ||
echo "Kernel tree successfully created in $tmpdir" | ||
exit 0 | ||
fi | ||
|
||
# | ||
# Create the tarball | ||
|