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

[email protected]
Newsgroups gmane.music.equipment.slimdevices.cvs
Message-ID <[email protected]>
Author: mherger
Date: Tue Jan 31 08:23:05 2012
New Revision: 33792

URL: http://svn.slimdevices.com/slim?rev=33792&view=rev
Log:
Bug: n/a
Description: we need to define the target architecture when building for arm on x86

Modified:
    7.7/trunk/buildme.pl

Modified: 7.7/trunk/buildme.pl
URL: http://svn.slimdevices.com/slim/7.7/trunk/buildme.pl?rev=33792&r1=33791&r2=33792&view=diff
==============================================================================
--- 7.7/trunk/buildme.pl (original)
+++ 7.7/trunk/buildme.pl Tue Jan 31 08:23:05 2012
@@ -662,6 +662,7 @@
 	print "INFO: Building package for ReadyNas Add-On... \n";
 
 	$archType ||= 'arm';
+	my $target_arch = '';
 
 	## Check if a specific architecture was selected ...
 	my $dirsToExcludeForReadyNas;
@@ -673,6 +674,7 @@
 		## 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';
 	} else {
 		## Fail if no architecture was specified...
 		die("No valid archType was specified. I got [$archType] submitted, but did not recognize it.");
@@ -714,7 +716,7 @@
 
 	## Build the addon now
 	print "INFO: Executing build_addon...\n";
-	system("cd $baseDir/addons_sdk/SQUEEZEBOX; ../bin/build_addon");
+	system("cd $baseDir/addons_sdk/SQUEEZEBOX; $target_arch ../bin/build_addon");
 
 	## Move the final addon into place
 	if ($releaseType eq "release") {
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.