* [PATCH] scripts/package/buildtar: don't complain if lib/ is missing
@ 2015-11-20 23:50 Jim Davis
0 siblings, 0 replies; only message in thread
From: Jim Davis @ 2015-11-20 23:50 UTC (permalink / raw)
To: mmarek, linux-kbuild, linux-kernel
Building a tinyconfig kernel or similar stripped-down configurations
may not have a lib directory to tar up. Test for a lib directory to
avoid an unnecessary error message.
Signed-off-by: Jim Davis <jim.epost@gmail.com>
---
scripts/package/buildtar | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index e046bff33589..b52475d2be3b 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -129,7 +129,11 @@ esac
if tar --owner=root --group=root --help >/dev/null 2>&1; then
opts="--owner=root --group=root"
fi
- tar cf - -C "$tmpdir" boot/ lib/ $opts | ${compress} > "${tarball}${file_ext}"
+ lib=
+ if test -d "$tmpdir/lib"; then
+ lib="lib/"
+ fi
+ tar cf - -C "$tmpdir" boot/ $lib $opts | ${compress} > "${tarball}${file_ext}"
)
echo "Tarball successfully created in ${tarball}${file_ext}"
--
2.6.2.195.g0c4dd78
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-20 23:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-20 23:50 [PATCH] scripts/package/buildtar: don't complain if lib/ is missing Jim Davis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®