From: Lee Revell <rlrevell@joe-job.com>
To: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Cc: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: Adding a new architecture to alsa-driver
Date: Sat, 08 Apr 2006 21:16:54 -0400 [thread overview]
Message-ID: <1144545416.22490.184.camel@mindpipe> (raw)
In-Reply-To: <1144542208.10642.9.camel@localhost.localdomain>
On Sun, 2006-04-09 at 01:23 +0100, Adrian McMenamin wrote:
> On Sat, 2006-04-08 at 12:03 -0400, Lee Revell wrote:
> > On Sat, 2006-04-08 at 16:35 +0100, Adrian McMenamin wrote:
> > > I've now wasted two days of my life trying to do this and I have had no
> > > luck, can someone explain the steps needed to added SH (ie
> > > CONFIG_SUPERH) to the alsa-driver build. I am sure somebody knows the
> > > steps needed to make this happen
> >
> > I already explained it. What *exactly* does not work if you change the
> > Makefiles as I explained?
>
> The changes you suggest simply are inadequate. There is no makefile
> without configure and even though I have managed to patch the configure
> file so it will create a Makefile, a make simply builds the alsa core
> and doesn't touch the sh sub directory despite having this in the
> makefile:
>
> ifeq (y,$(CONFIG_SUPERH))
> SUBDIRS += sh
> endif
>
>
>
OK, how does this work - try this patch against a clean alsa-driver CVS
checkout, then add your driver. Replace c_opts with whatever CFLAGS you
need.
Index: Makefile
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/Makefile,v
retrieving revision 1.121
diff -u -r1.121 Makefile
--- Makefile 17 Nov 2005 11:15:20 -0000 1.121
+++ Makefile 9 Apr 2006 01:15:23 -0000
@@ -6,7 +6,7 @@
ifneq ($(KERNELRELEASE),)
# call from 2.6 kernel build system
-obj-m += acore/ i2c/ drivers/ isa/ pci/ ppc/ arm/ synth/ usb/ sparc/ parisc/ pcmcia/
+obj-m += acore/ i2c/ drivers/ isa/ pci/ ppc/ arm/ synth/ usb/ sparc/ parisc/ pcmcia/ sh/
else
@@ -99,6 +99,9 @@
ifeq (y,$(CONFIG_PARISC))
SUBDIRS += parisc
endif
+ifeq (y,$(CONFIG_SUPERH))
+SUBDIRS += sh
+endif
CSUBDIRS += include test utils
KCONFIG_FILES = $(shell find $(SND_TOPDIR) -name Kconfig) $(shell find $(SND_TOPDIR)/alsa-kernel/ -name Kconfig)
Index: configure.in
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/configure.in,v
retrieving revision 1.358
diff -u -r1.358 configure.in
--- configure.in 29 Mar 2006 16:52:47 -0000 1.358
+++ configure.in 9 Apr 2006 01:15:24 -0000
@@ -872,6 +872,8 @@
fprintf(file, "amba");
#elif defined(CONFIG_PARISC)
fprintf(file, "parisc");
+#elif defined(CONFIG_SUPERH)
+ fprintf(file, "sh");
#elif defined(CONFIG_MVIAC3_2)
fprintf(file, "viac3_2");
#else
@@ -1117,6 +1119,11 @@
c_opts="-mno-space-regs -mfast-indirect-calls -mschedule=7200 -mdisable-fpregs"
test "$CONFIG_ISA" = "probe" && CONFIG_ISA=
;;
+ sh)
+ ARCH=sh
+ c_opts="-mno-space-regs -mfast-indirect-calls -mschedule=7200 -mdisable-fpregs"
+ test "$CONFIG_ISA" = "probe" && CONFIG_ISA=
+ ;;
viac3_2)
ARCH=i386
if $KCC -march=c3-2 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then
@@ -1259,6 +1266,7 @@
AC_SUBST(CONFIG_ISA)
AC_SUBST(CONFIG_ISA_DMA_API)
AC_SUBST(CONFIG_PARISC)
+AC_SUBST(CONFIG_SUPERH)
test "$CONFIG_ISA" = "y" && AC_DEFINE(CONFIG_SND_ISA)
dnl Check for SMP...
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
next prev parent reply other threads:[~2006-04-09 1:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-08 15:35 Adding a new architecture to alsa-driver Adrian McMenamin
2006-04-08 16:03 ` Lee Revell
2006-04-09 0:23 ` Adrian McMenamin
2006-04-09 0:56 ` Lee Revell
2006-04-09 1:04 ` Lee Revell
2006-04-09 10:50 ` Adrian McMenamin
2006-04-09 11:24 ` Jaroslav Kysela
2006-04-09 12:26 ` Adrian McMenamin
2006-04-10 10:19 ` Takashi Iwai
2006-04-09 1:16 ` Lee Revell [this message]
2006-04-09 10:52 ` Adrian McMenamin
2006-04-10 22:06 ` Adrian McMenamin
2006-04-10 22:40 ` Lee Revell
2006-04-11 1:13 ` Lee Revell
2006-04-11 10:01 ` Takashi Iwai
2006-04-14 17:56 ` Adrian McMenamin
2006-04-11 21:37 ` Adrian McMenamin
2006-04-11 21:57 ` Lee Revell
2006-04-11 22:05 ` Adrian McMenamin
2006-04-12 9:38 ` Takashi Iwai
2006-04-08 16:04 ` Lee Revell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1144545416.22490.184.camel@mindpipe \
--to=rlrevell@joe-job.com \
--cc=adrian@mcmen.demon.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.