Преглед на файлове

- 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 преди 19 години
родител
ревизия
ce90aae17c
променени са 2 файла, в които са добавени 8 реда и са изтрити 2 реда
  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)