[Slim-Checkins] r33798 - /7.7/trunk/buildme.pl

[email protected]
Newsgroups gmane.music.equipment.slimdevices.cvs
Message-ID <[email protected]>
Author: mherger
Date: Wed Feb  1 00:43:55 2012
New Revision: 33798

URL: http://svn.slimdevices.com/slim?rev=33798&view=rev
Log:
Bug: n/a
Description: add support for add-on v2 based readynas sparc builds

Modified:
    7.7/trunk/buildme.pl

Modified: 7.7/trunk/buildme.pl
URL: http://svn.slimdevices.com/slim/7.7/trunk/buildme.pl?rev=33798&r1=33797&r2=33798&view=diff
==============================================================================
--- 7.7/trunk/buildme.pl (original)
+++ 7.7/trunk/buildme.pl Wed Feb  1 00:43:55 2012
@@ -376,8 +376,8 @@
 	print "    --destDir <dir>              - The destination you'd like your files \n";
 #	print "    --releaseType <nightly/release>- Whether you're building a 'release' package, \n";
 #	print "        (optional)                 or you're building a nightly-style package\n";
-#	print "    --archType <i386/sparc>-	  Pick the right architecture because \n";
-#	print "	       				  ONLY the libraries for that ARCH will be included\n";
+	print "    --archType <arm/i386/sparc>  - Pick the right architecture because \n";
+	print "                                   ONLY the libraries for that ARCH will be included\n";
 	print "\n";
 	print "--- Building a ReadyNas Deb. Package\n";
 	print "    --build readynas <required opts below>\n";
@@ -668,11 +668,22 @@
 		## Since i386 was selected, lets make sure to remove sparc libs
 		print "INFO: \$archType was provided as [$archType], other files...\n";
 		$dirsToExcludeForReadyNas = $dirsToExcludeForReadyNasi386;
+		
 	} elsif ($archType =~ /arm/) { 
 		## Since i386 was selected, lets make sure to remove sparc libs
 		print "INFO: \$archType was provided as [$archType], removing other files...\n";
 		$dirsToExcludeForReadyNas = $dirsToExcludeForReadyNasARM;
 		$target_arch = 'TARGET_MACHTYPE=arm';
+		
+	} elsif ($archType =~ /sparc/) { 
+		## In this case, we remove all the i386 libs
+		print "INFO: \$archType was provided as [$archType], removing i386 files...\n";
+		$dirsToExcludeForReadyNas = $dirsToExcludeForReadyNasSparc;
+		
+		## use sparc specific custom-convert.conf to disable transcoding to flac
+		copy("$sourceDir/platforms/readynas/custom-convert.sparc", "$buildDir/platforms/readynas/custom-convert.conf");
+		$target_arch = 'TARGET_MACHTYPE=sparc';
+
 	} else {
 		## Fail if no architecture was specified...
 		die("No valid archType was specified. I got [$archType] submitted, but did not recognize it.");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.