sdk: unset BINARY_FOLDER and DOWNLOAD_FOLDER in final archives
[openwrt/openwrt.git] / target / sdk / convert-config.pl
index f73744af099d2966b1ecacca35483c72b90ec7c6..08189df95cb5f0bf9934909de24f54003dbc4420 100755 (executable)
@@ -9,7 +9,13 @@ while (<>) {
        chomp;
        next if /^CONFIG_SIGNED_PACKAGES/;
 
-       if (/^CONFIG_([^=]+)=(.*)$/) {
+       if (/^CONFIG_((BINARY)|(DOWNLOAD))_FOLDER=(.*)$/) {
+               # We don't want to preserve the build setting of
+               # BINARY_FOLDER and DOWNLOAD_FOLDER.
+               $var = "$1_FOLDER";
+               $val = '""';
+               $type = "string";
+       } elsif (/^CONFIG_([^=]+)=(.*)$/) {
                $var = $1;
                $val = $2;