Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-bsd
Navigation:
Lists: gentoo-bsd: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: "gentoo-dev@g.o" <gentoo-dev@g.o>
From: Richard Yao <ryao@...>
Subject: freebsd.eclass change
Date: Sun, 1 Jul 2012 19:48:58 -0400
I want to add freebsd_get_cpuarch() to freebsd.eclass. This will give us
a platform-independent way of generating MACHINE_CPUARCH, which will
make building FreeBSD components on other platforms (i.e. Linux and
Prefix) easier.

--- freebsd.eclass.old  2012-07-01 19:15:56.157277000 -0400
+++ freebsd.eclass      2012-07-01 19:44:08.093698000 -0400
@@ -58,6 +58,24 @@ freebsd_get_bmake() {
        echo "${bmake}"
 }

+freebsd_get_cpuarch() {
+       local arch=$(uname -m)
+       case $(uname -m) in
+               x86_64)
+                       return 'amd64';;
+               arm*)
+                       return 'arm';;
+               i?86)
+                       return 'i386';;
+               ppc*)
+                       return 'powerpc';;
+               mips*)
+                       return 'mips';;
+               sparc*)
+                       return 'sparc';;
+               *)
+                       return arch;
+       esac
+}
+
 freebsd_do_patches() {
        if [[ ${#PATCHES[@]} -gt 1 ]] ; then
                for x in "${PATCHES[@]}"; do

Does anyone have any objections?

Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: Is there a mailing list archive somewhere?
-- Ot Ratsaphong
References:
Is there a mailing list archive somewhere?
-- Ot Ratsaphong
Navigation:
Lists: gentoo-bsd: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Is there a mailing list archive somewhere?
Next by thread:
Re: Is there a mailing list archive somewhere?
Previous by date:
Is there a mailing list archive somewhere?
Next by date:
Re: Is there a mailing list archive somewhere?


Updated Jul 02, 2012

Summary: Archive of the gentoo-bsd mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.