Explorar el Código

- add option to pass to tar for unpacking the source.
Set it to exclude .svn per default (please default to "" if inappropriate)

Bernhard Reutner-Fischer hace 19 años
padre
commit
ce90aae17c
Se han modificado 2 ficheros con 8 adiciones y 2 borrados
  1. 4 0
      Config.in
  2. 4 2
      Makefile

+ 4 - 0
Config.in

@@ -125,6 +125,10 @@ config BR2_TAR_VERBOSITY
 	bool "Tar verbose"
 	default n
 
+config BR2_TAR_OPTIONS
+	string "Tar options"
+	default "--exclude='.svn'"
+
 config BR2_DL_DIR
 	string "Download dir"
 	default "$(BASE_DIR)/dl"

+ 4 - 2
Makefile

@@ -36,9 +36,11 @@ ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
 endif
 
 ifeq ($(BR2_TAR_VERBOSITY),y)
-TAR_OPTIONS=-xvf
+TAR_OPTIONS=$(subst ",, $(BR2_TAR_OPTIONS)) -xvf
+#"
 else
-TAR_OPTIONS=-xf
+TAR_OPTIONS=$(subst ",, $(BR2_TAR_OPTIONS)) -xf
+#"
 endif
 
 ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y)