fs/tar: support passing long options to tar
PATCH v2 1/1 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.
---
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(-)
fs/tar/tar.mk +1 -1
@@ -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))
--
2.5.0
Thomas Petazzoni
AppliedPATCH v2 1/1 fs/tar: support passing long options to tar
Hello,
Quoted 11 lines · Frank Hunleth
Move
TAR_OPTSso that long options (or any option with an initial '-') may be passed to tar. SinceTAR_OPTSis at the front of the list, single letter options still work.Signed-off-by Frank Hunleth <[email protected]>---
Changes v1 -> v2:
- MoveTAR_OPTSto front to preserve backward compatibility (suggested by Arnout)
- Removed additional help text since no backward compatibility issues were introduced.
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com