From: Michael Schroeder Date: Thu, 31 May 2012 12:21:44 +0000 (+0200) Subject: - add targetarch hack for adrian, targetarch now sets the _target_cpu macro X-Git-Tag: upstream/20120927~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9809a0f8751b5d7de3f89dbd81b2d6685f7c8c8;p=platform%2Fupstream%2Fbuild.git - add targetarch hack for adrian, targetarch now sets the _target_cpu macro --- diff --git a/Build.pm b/Build.pm index 96fba28..8c35ac6 100644 --- a/Build.pm +++ b/Build.pm @@ -279,6 +279,7 @@ sub read_config { $config->{'releaseprg'} = $l[0]; } elsif ($l0 eq 'changetarget:' || $l0 eq 'target:') { $config->{'target'} = join(' ', @l); + push @macros, "%define _target_cpu ".(split('-', $config->{'target'}))[0] if $config->{'target'}; } elsif ($l0 eq 'hostarch:') { $config->{'hostarch'} = join(' ', @l); } elsif ($l0 !~ /^[#%]/) {