build: introduce $(MKHASH)
[openwrt/staging/jow.git] / scripts / download.pl
index a1d80e9b42ac5ad2db64e6a5a5c80b5a2a0f252a..8e6463c007615e42f826f3f75d68ec8a039e4d19 100755 (executable)
@@ -65,8 +65,8 @@ sub hash_cmd() {
        my $len = length($file_hash);
        my $cmd;
 
-       $len == 64 and return "mkhash sha256";
-       $len == 32 and return "mkhash md5";
+       $len == 64 and return "$ENV{'MKHASH'} sha256";
+       $len == 32 and return "$ENV{'MKHASH'} md5";
        return undef;
 }
 
@@ -296,4 +296,3 @@ while (!-f "$target/$filename") {
 }
 
 $SIG{INT} = \&cleanup;
-