utils/tar: Fix defaulting to selecting dependencies 2801/head
authorDaniel Dickinson <lede@daniel.thecshore.com>
Thu, 2 Jun 2016 12:09:43 +0000 (08:09 -0400)
committerDaniel Dickinson <lede@daniel.thecshore.com>
Thu, 2 Jun 2016 12:09:43 +0000 (08:09 -0400)
Due to KConfig misbehavior the tar config options where getting
enabled even when tar was not enabled.  We fix this by enclosing
the options in an if PACKAGE_tar ; endif block.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
utils/tar/Makefile

index d8295d80845572cfb92ada1305f2a23ed970e12c..d317329dce5233010726dd0aa28c029e00dca139 100644 (file)
@@ -36,27 +36,29 @@ define Package/tar
 endef
 
 define Package/tar/config
-       config PACKAGE_TAR_POSIX_ACL
-       bool "tar: Enable POSIX ACL support" if PACKAGE_tar
-       default n
-
-       config PACKAGE_TAR_XATTR
-       bool "tar: Enable extended attribute (xattr) support" if PACKAGE_tar
-       default n
-
-       config PACKAGE_TAR_GZIP
-       bool "tar: Enable seamless gzip support" if PACKAGE_tar
-       default y
-
-       config PACKAGE_TAR_BZIP2
-       bool "tar: Enable seamless bzip2 support" if PACKAGE_tar
-       default y
-
-       config PACKAGE_TAR_XZ
-       bool "tar: Enable seamless xz support" if PACKAGE_tar
-       select PACKAGE_xz-utils
-       select PACKAGE_xz
-       default y
+       if PACKAGE_tar
+               config PACKAGE_TAR_POSIX_ACL
+                       bool "tar: Enable POSIX ACL support"
+                       default n
+
+               config PACKAGE_TAR_XATTR
+                       bool "tar: Enable extended attribute (xattr) support"
+                       default n
+
+               config PACKAGE_TAR_GZIP
+                       bool "tar: Enable seamless gzip support"
+                       default y
+
+               config PACKAGE_TAR_BZIP2
+                       bool "tar: Enable seamless bzip2 support"
+                       default y
+
+               config PACKAGE_TAR_XZ
+                       bool "tar: Enable seamless xz support"
+                       select PACKAGE_xz-utils
+                       select PACKAGE_xz
+                       default y
+       endif
 endef
 
 define Package/tar/description