From patchwork Fri Nov 20 23:50:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Davis X-Patchwork-Id: 7672581 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1E2EABF90C for ; Fri, 20 Nov 2015 23:51:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 49D792041F for ; Fri, 20 Nov 2015 23:51:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 664352041A for ; Fri, 20 Nov 2015 23:51:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761268AbbKTXvI (ORCPT ); Fri, 20 Nov 2015 18:51:08 -0500 Received: from mail-ob0-f172.google.com ([209.85.214.172]:34852 "EHLO mail-ob0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761238AbbKTXvH (ORCPT ); Fri, 20 Nov 2015 18:51:07 -0500 Received: by obbnk6 with SMTP id nk6so98731946obb.2; Fri, 20 Nov 2015 15:51:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=1MtmCOovajGtbkKlOjwhQCIOg1zh+Fl5ICvUO4WS6z4=; b=Fg1THZDBykIeksVAIUWJ1tOo7dUZcplX7ONFefAHhQBT7dsSATZH0AQMuRIzvs0a1C qSaKqx11n90w2Cqwoy13klXtvQNXkgnMvTa5SgpV65pJxAo2idh7lNfAdVuaWMUTyfxl kacg2F8/8TiMn6lpSFfuNLOPSTfaSvmQ/YzkP4fYCxP6kjFR9UrKiPKPYr3y61V4N0Ao zLtDeG7WF/Cpam3sl6NnZHhx+4+6GfVLvvHMmKgYxru+kdyiWoANLDB/PZmvQXwE/CL7 RsH5eWdIIGc9U5eKiPF0IRN6nA3zd0NJPpcMIz98uCCuq7BJdfv16gXop9tRLMTnmfg9 Yjpg== X-Received: by 10.182.102.5 with SMTP id fk5mr11133995obb.38.1448063466528; Fri, 20 Nov 2015 15:51:06 -0800 (PST) Received: from krebstar.arl.arizona.edu (krebstar.arl.arizona.edu. [128.196.124.160]) by smtp.gmail.com with ESMTPSA id of1sm825098obb.18.2015.11.20.15.51.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Nov 2015 15:51:06 -0800 (PST) From: Jim Davis 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 Message-Id: <1448063436-32486-1-git-send-email-jim.epost@gmail.com> X-Mailer: git-send-email 2.6.2.195.g0c4dd78 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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}"