summaryrefslogtreecommitdiffstats
path: root/wps/wpsbuild.pl
diff options
context:
space:
mode:
Diffstat (limited to 'wps/wpsbuild.pl')
-rwxr-xr-xwps/wpsbuild.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl
index 278d104771..af4c7c411f 100755
--- a/wps/wpsbuild.pl
+++ b/wps/wpsbuild.pl
@@ -16,9 +16,11 @@ my $verbose;
my $rbdir=".rockbox";
my $wpslist;
my $target;
+my $modelname;
# Get options
GetOptions ( 'r|root=s' => \$ROOT,
+ 'm|modelname=s' => \$modelname,
'v|verbose' => \$verbose,
'rbdir=s' => \$rbdir, # If we want to put in a different directory
);
@@ -373,6 +375,10 @@ while(<WPS>) {
$req_g = $rwidth . "x" . $rheight . "x" . $d;
+ # check for model specific wps
+ $req_g_wps = $wps_prefix . "." . $req_g . "." . $modelname . ".wps";
+ last if (-e "$wpsdir/$req_g_wps");
+
$req_g_wps = $wps_prefix . "." . $req_g . ".wps";
last if (-e "$wpsdir/$req_g_wps");