projects
/
platform
/
upstream
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6f3e1a
)
- add targetarch hack for adrian, targetarch now sets the _target_cpu macro
author
Michael Schroeder
<mls@suse.de>
Thu, 31 May 2012 12:21:44 +0000
(14:21 +0200)
committer
Michael Schroeder
<mls@suse.de>
Thu, 31 May 2012 12:21:44 +0000
(14:21 +0200)
Build.pm
patch
|
blob
|
history
diff --git
a/Build.pm
b/Build.pm
index
96fba28
..
8c35ac6
100644
(file)
--- 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 !~ /^[#%]/) {