From: Jim Davis <jim.epost@gmail.com>
To: mmarek@suse.com, linux-kbuild@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] scripts/package/buildtar: don't complain if lib/ is missing
Date: Fri, 20 Nov 2015 16:50:36 -0700 [thread overview]
Message-ID: <1448063436-32486-1-git-send-email-jim.epost@gmail.com> (raw)
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
reply other threads:[~2015-11-20 23:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1448063436-32486-1-git-send-email-jim.epost@gmail.com \
--to=jim.epost@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®