From patchwork Fri Jun 24 15:57:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Hunleth X-Patchwork-Id: 640283 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rbjhL1NRVz9sDb for ; Sat, 25 Jun 2016 01:59:46 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=troodon-software-com.20150623.gappssmtp.com header.i=@troodon-software-com.20150623.gappssmtp.com header.b=UUBtaVyZ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1F28CC1AA6; Fri, 24 Jun 2016 15:59:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id igwhzJ5EWrC7; Fri, 24 Jun 2016 15:59:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 86434C1A8A; Fri, 24 Jun 2016 15:59:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 449731C1F52 for ; Fri, 24 Jun 2016 15:59:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 418FD91FCE for ; Fri, 24 Jun 2016 15:59:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iUwWAnsxxTWK for ; Fri, 24 Jun 2016 15:59:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id EC15291FF4 for ; Fri, 24 Jun 2016 15:59:37 +0000 (UTC) Received: by mail-qk0-f195.google.com with SMTP id b136so21599624qkg.2 for ; Fri, 24 Jun 2016 08:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troodon-software-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=XgMKEwERreHFMRmeb+Drfc1AiWm854Wes5L7kuGK/W8=; b=UUBtaVyZLkcFG7kNcdlGXGhBODG75rqbOBtv+WJCpXumdwhEVJDWB5OXymbHejh1LW WvDxfwob9ui/DuHiLkKlDB0GBUJL2NTCInXJDMIWNvVYDSq5HcMN4uEd/44bYJHHRtg7 r9qUZrcfaS0sfohaLRC5oLM2erg+IJPlpIMZ3BPNQlU9CCjX/RNr+TTkboxKYB6NsiNg j3wtM7/tz+C0r7tZEiLzpfCFEoTg5FRlvlpssdgp/MG4HAIzfVTG0AczobjMieYV+rBf VU5m3/bil4e8AU3LpZx1xLadUvoq/Ct3E1k1rV0JDhkodpAUPV0Y75eMfQKfYUIzzSZs RV5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XgMKEwERreHFMRmeb+Drfc1AiWm854Wes5L7kuGK/W8=; b=fUq/5xlxjM5/gzge5lHTn29vd4BHTap+4QWrQCWUvBJ77WLRnBh48x8bL2pL2xyNJb Jd+lnJVxaXJZws+9fBmWwWahNpD8SQ3I76m/TCQsrXu2UAQEZYbVcKmEJT707UEOCVrk 9Gbi6Qercs2AR4I+0lZA1ahQfvEH5y0UhHjxPP+GP5gdJKrDwvVFTvhAeemZpJA/Vn7I eVj1Wb7Zoj+ENDEUm0GqCkIE2p2CJHYE3UQLAPaUd9fNjfMd6cvtxjGC9Qb9LT11XsHg 7h/kozFPf4+rUsQm+7oGoVHxf8tG6ZHAdDYHudLS+qJPq1ovnoEMD36n/aVfRJPJ8bDH P2LQ== X-Gm-Message-State: ALyK8tINwHjasfPJgQE6Myt4jZmDe0m7utxodZWj9jRLmrF2zuYfXzSdql7q30b+JhMC4g== X-Received: by 10.55.164.199 with SMTP id n190mr5878052qke.190.1466783976982; Fri, 24 Jun 2016 08:59:36 -0700 (PDT) Received: from halfmarathon.lkctech.com (173-166-182-69-washingtondc.hfc.comcastbusiness.net. [173.166.182.69]) by smtp.gmail.com with ESMTPSA id z65sm2356310qkd.36.2016.06.24.08.59.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jun 2016 08:59:36 -0700 (PDT) From: Frank Hunleth To: buildroot@buildroot.org Date: Fri, 24 Jun 2016 11:57:56 -0400 Message-Id: <1466783876-7597-1-git-send-email-fhunleth@troodon-software.com> X-Mailer: git-send-email 2.5.0 Subject: [Buildroot] [PATCH v2] fs/tar: support passing long options to tar X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Move TAR_OPTS so that long options (or any option with an initial '-') may be passed to tar. Since TAR_OPTS is at the front of the list, single letter options still work. Signed-off-by: Frank Hunleth --- Changes v1 -> v2: - Move TAR_OPTS to front to preserve backward compatibility (suggested by Arnout) - Removed additional help text since no backward compatibility issues were introduced. fs/tar/tar.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.5.0 diff --git a/fs/tar/tar.mk b/fs/tar/tar.mk index 28219cf..11c69c5 100644 --- a/fs/tar/tar.mk +++ b/fs/tar/tar.mk @@ -7,7 +7,7 @@ TAR_OPTS := $(call qstrip,$(BR2_TARGET_ROOTFS_TAR_OPTIONS)) define ROOTFS_TAR_CMD - tar -c$(TAR_OPTS)f $@ --numeric-owner -C $(TARGET_DIR) . + tar $(TAR_OPTS) -cf $@ --numeric-owner -C $(TARGET_DIR) . endef $(eval $(call ROOTFS_TARGET,tar))