From 6ae48ae3af9840a0b09d0cf0d6b07b2435910eaa Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Fri, 24 Jun 2016 11:57:56 -0400 Subject: 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 --- fs/tar/tar.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs') diff --git a/fs/tar/tar.mk b/fs/tar/tar.mk index 28219cf05..11c69c5a8 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)) -- cgit v1.2.3