From: Frank Hunleth Date: Fri, 24 Jun 2016 15:57:56 +0000 (-0400) Subject: fs/tar: support passing long options to tar X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ae48ae3af9840a0b09d0cf0d6b07b2435910eaa;p=buildroot.git fs/tar: support passing long options to tar 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 Signed-off-by: Thomas Petazzoni --- diff --git a/fs/tar/tar.mk b/fs/tar/tar.mk index 28219cf052..11c69c5a8b 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))