From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: How to build alsa-driver for sparc? Date: Mon, 27 Sep 2004 22:01:37 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20040927191437.GA436@palantir8> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: multipart/mixed; boundary="Multipart_Mon_Sep_27_22:01:37_2004-1" Return-path: Received: from Cantor.suse.de (cantor.suse.de [195.135.220.2]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 69043293 for ; Mon, 27 Sep 2004 22:01:42 +0200 (MEST) In-Reply-To: <20040927191437.GA436@palantir8> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Martin Habets Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org --Multipart_Mon_Sep_27_22:01:37_2004-1 Content-Type: text/plain; charset=US-ASCII At Mon, 27 Sep 2004 20:14:38 +0100, Martin Habets wrote: > > I'm trying to build alsa-driver-1.0.7rc1 for SPARC32, but have > found that CONFIG_SPARC32 is not set in toplevel.config. > After initial failure, I have tried the steps from cvscompile, and rebuild > utils/mod-deps. > > After I hand-edit toplevel.config and apply the patch attached, it does > start building. But the whole generation of toplevel.config leaves my > wondering how to make it work properly. > > Any hints? How about the attached patch? Takashi --Multipart_Mon_Sep_27_22:01:37_2004-1 Content-Type: text/plain; charset=US-ASCII Index: alsa-driver/Makefile =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/Makefile,v retrieving revision 1.74 diff -u -r1.74 Makefile --- alsa-driver/Makefile 25 Aug 2004 14:00:50 -0000 1.74 +++ alsa-driver/Makefile 27 Sep 2004 20:00:56 -0000 @@ -53,6 +53,13 @@ ifeq (y,$(CONFIG_PPC)) SUBDIRS += ppc endif +ifeq (y,$(CONFIG_SPARC32)) +SUBDIRS += sparc +else +ifeq (y,$(CONFIG_SPARC64)) +SUBDIRS += sparc +endif +endif ifeq (y,$(CONFIG_SGI)) SUBDIRS += hal2 endif Index: alsa-driver/configure.in =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/configure.in,v retrieving revision 1.195 diff -u -r1.195 configure.in --- alsa-driver/configure.in 21 Sep 2004 19:41:13 -0000 1.195 +++ alsa-driver/configure.in 27 Sep 2004 19:59:03 -0000 @@ -698,6 +698,8 @@ CONFIG_L3= CONFIG_ARM= CONFIG_PPC= +CONFIG_SPARC32= +CONFIG_SPARC64= CONFIG_SND_BIT32_EMUL= processor="" rm -f processor.id @@ -920,6 +922,7 @@ test "$CONFIG_ISA" = "probe" && CONFIG_ISA= ;; sparc) + CONFIG_SPARC32=y IS_EGCS=n NEW_GAS=n test $CC -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && IS_EGCS=y @@ -936,6 +939,7 @@ test "$CONFIG_ISA" = "probe" && CONFIG_ISA= ;; sparc64) + CONFIG_SPARC64=y CC=gcc test gcc -m64 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 || CC=sparc64-linux-gcc NEW_GCC=n @@ -1044,6 +1048,8 @@ AC_SUBST(CONFIG_L3) AC_SUBST(CONFIG_ARM) AC_SUBST(CONFIG_PPC) +AC_SUBST(CONFIG_SPARC32) +AC_SUBST(CONFIG_SPARC64) AC_SUBST(CONFIG_ISA) AC_SUBST(CONFIG_PARISC) AC_SUBST(CONFIG_SND_BIT32_EMUL) --Multipart_Mon_Sep_27_22:01:37_2004-1-- ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php