[opensuse-buildservice] [patch] build: sparc support
Please consider for merge. The following changes since commit 318c860c5c178c72988ccae149f4c7e6c2f557bf: Michael Schroeder (1): Merge branch 'master' of gitorious.org:opensuse/build are available in the git repository at: git://dev.medozas.de/suse-build master Jan Engelhardt (1): SPARC architecture support Build.pm | 1 + baselibs_global.conf | 6 ++++++ common_functions | 2 ++ 3 files changed, 9 insertions(+), 0 deletions(-) ----------8<---------- parent 318c860c5c178c72988ccae149f4c7e6c2f557bf () commit 6dedaacf1dd51ed6512359814fbe7d7c5af86cff Author: Jan Engelhardt <jengelh@medozas.de> Date: Fri Dec 11 22:57:09 2009 +0100 SPARC architecture support --- Build.pm | 1 + baselibs_global.conf | 6 ++++++ common_functions | 2 ++ 3 files changed, 9 insertions(+), 0 deletions(-) diff --git a/Build.pm b/Build.pm index 99ce6bb..f309448 100644 --- a/Build.pm +++ b/Build.pm @@ -32,6 +32,7 @@ my $std_macros = q{ %define arm armv4l armv4b armv5l armv5b armv5el armv5eb armv5tel armv5teb armv6el armv6eb armv7el armv7eb %define arml armv4l armv5l armv5tel armv5el armv6el armv7el %define armb armv4b armv5b armv5teb armv5eb armv6eb armv7eb +%define sparc sparc sparcv8 sparcv9 sparcv9v sparc64 sparc64v }; my $extra_macros = ''; diff --git a/baselibs_global.conf b/baselibs_global.conf index 76fe238..96191bf 100644 --- a/baselibs_global.conf +++ b/baselibs_global.conf @@ -3,6 +3,12 @@ arch i686 targets x86_64:32bit ia64:x86 arch s390 targets s390x:32bit arch ppc targets ppc64:32bit arch ppc64 targets ppc:64bit +arch sparc targets sparc64:32bit +arch sparcv8 targets sparc64:32bit +arch sparcv9 targets sparc64:32bit +arch sparcv9v targets sparc64v:32bit +arch sparc64 targets sparcv9:64bit +arch sparc64v targets sparcv9v:64bit configdir /usr/lib/baselibs-<targettype>/bin diff --git a/common_functions b/common_functions index 8a67511..f27c1be 100644 --- a/common_functions +++ b/common_functions @@ -14,6 +14,8 @@ set_build_arch() i586) BUILD_ARCH="i586:i486:i386" ;; i486) BUILD_ARCH="i486:i386" ;; x86_64) BUILD_ARCH="x86_64:i686:i586:i486:i386" ;; + (sparc64*) BUILD_ARCH="sparc64v:sparc64:sparcv9v:sparcv9:sparcv8:sparc";; + (sparc*) BUILD_ARCH="sparcv9v:sparcv9:sparcv8:sparc";; esac if test "$BUILD_ARCH" != "${BUILD_ARCH#i686}" ; then cpuflags=`grep ^flags /proc/cpuinfo` -- # Created with git-export-patch -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Jan Engelhardt wrote:
[...] diff --git a/common_functions b/common_functions index 8a67511..f27c1be 100644 --- a/common_functions +++ b/common_functions @@ -14,6 +14,8 @@ set_build_arch() i586) BUILD_ARCH="i586:i486:i386" ;; i486) BUILD_ARCH="i486:i386" ;; x86_64) BUILD_ARCH="x86_64:i686:i586:i486:i386" ;; + (sparc64*) BUILD_ARCH="sparc64v:sparc64:sparcv9v:sparcv9:sparcv8:sparc";; + (sparc*) BUILD_ARCH="sparcv9v:sparcv9:sparcv8:sparc";; ^ intentional?
cu Ludwig -- (o_ Ludwig Nussel //\ SUSE LINUX Products GmbH, Development V_/_ http://www.suse.de/ -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Saturday 2009-12-12 10:00, Ludwig Nussel wrote:
Jan Engelhardt wrote:
[...] diff --git a/common_functions b/common_functions index 8a67511..f27c1be 100644 --- a/common_functions +++ b/common_functions @@ -14,6 +14,8 @@ set_build_arch() i586) BUILD_ARCH="i586:i486:i386" ;; i486) BUILD_ARCH="i486:i386" ;; x86_64) BUILD_ARCH="x86_64:i686:i586:i486:i386" ;; + (sparc64*) BUILD_ARCH="sparc64v:sparc64:sparcv9v:sparcv9:sparcv8:sparc";; + (sparc*) BUILD_ARCH="sparcv9v:sparcv9:sparcv8:sparc";; ^ intentional?
Yes. Everything that's not 64 is 32. Though you could of course say that trying to build for sparcv8 (which nobody would do these days) must not use sparcv9s. Dunno if it really matters. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Sat, Dec 12, 2009 at 11:46:24AM +0100, Jan Engelhardt wrote:
On Saturday 2009-12-12 10:00, Ludwig Nussel wrote:
Jan Engelhardt wrote:
[...] diff --git a/common_functions b/common_functions index 8a67511..f27c1be 100644 --- a/common_functions +++ b/common_functions @@ -14,6 +14,8 @@ set_build_arch() i586) BUILD_ARCH="i586:i486:i386" ;; i486) BUILD_ARCH="i486:i386" ;; x86_64) BUILD_ARCH="x86_64:i686:i586:i486:i386" ;; + (sparc64*) BUILD_ARCH="sparc64v:sparc64:sparcv9v:sparcv9:sparcv8:sparc";; + (sparc*) BUILD_ARCH="sparcv9v:sparcv9:sparcv8:sparc";; ^ intentional?
Yes. Everything that's not 64 is 32. Though you could of course say that trying to build for sparcv8 (which nobody would do these days) must not use sparcv9s. Dunno if it really matters.
I think Ludwig meant the leading '('... Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Monday 2009-12-14 12:03, Michael Schroeder wrote:
diff --git a/common_functions b/common_functions index 8a67511..f27c1be 100644 --- a/common_functions +++ b/common_functions @@ -14,6 +14,8 @@ set_build_arch() i586) BUILD_ARCH="i586:i486:i386" ;; i486) BUILD_ARCH="i486:i386" ;; x86_64) BUILD_ARCH="x86_64:i686:i586:i486:i386" ;; + (sparc64*) BUILD_ARCH="sparc64v:sparc64:sparcv9v:sparcv9:sparcv8:sparc";; + (sparc*) BUILD_ARCH="sparcv9v:sparcv9:sparcv8:sparc";; ^ intentional?
Yes. Everything that's not 64 is 32. Though you could of course say that trying to build for sparcv8 (which nobody would do these days) must not use sparcv9s. Dunno if it really matters.
I think Ludwig meant the leading '('...
That too is intended. bash, dash and ash supports this, and is good for balancing. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
But it does not match existing coding style. To me it is somewhat rude to ignore coding style of the surrounding code when submitting patches. Especially code on the immediately preceding line. :) -- Michael ________________________________________ From: Jan Engelhardt [jengelh@medozas.de] Sent: Monday, December 14, 2009 5:07 AM To: Michael Schroeder Cc: Ludwig Nussel; opensuse-buildservice@opensuse.org Subject: Re: [opensuse-buildservice] [patch] build: sparc support On Monday 2009-12-14 12:03, Michael Schroeder wrote:
diff --git a/common_functions b/common_functions index 8a67511..f27c1be 100644 --- a/common_functions +++ b/common_functions @@ -14,6 +14,8 @@ set_build_arch() i586) BUILD_ARCH="i586:i486:i386" ;; i486) BUILD_ARCH="i486:i386" ;; x86_64) BUILD_ARCH="x86_64:i686:i586:i486:i386" ;; + (sparc64*) BUILD_ARCH="sparc64v:sparc64:sparcv9v:sparcv9:sparcv8:sparc";; + (sparc*) BUILD_ARCH="sparcv9v:sparcv9:sparcv8:sparc";; ^ intentional?
Yes. Everything that's not 64 is 32. Though you could of course say that trying to build for sparcv8 (which nobody would do these days) must not use sparcv9s. Dunno if it really matters.
I think Ludwig meant the leading '('...
That too is intended. bash, dash and ash supports this, and is good for balancing. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Jan Engelhardt
-
Ludwig Nussel
-
Michael Schroeder
-
Michael_E_Brown@Dell.com