From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Move conditional compilation of MPC8XXX SPI driver to Makefile
Date: Mon, 26 May 2008 08:06:36 -0700 [thread overview]
Message-ID: <483AD1FC.7040805@gmail.com> (raw)
In-Reply-To: <20080526075453.50C9F2430A@gemini.denx.de>
Wolfgang Denk wrote:
> Dear Ben,
>
> in message <1211783488-30985-1-git-send-email-biggerbadderben@gmail.com> you wrote:
>
>> diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
>>
> ...
>
>> -COBJS-y += mpc8xxx_spi.o
>> +COBJS-$(CONFIG_MPC8XXX_SPI) += mpc8xxx_spi.o
>>
>
> i. e. we move CONFIG_MPC8XXX_SPI into the Makefile...
>
>
>> diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c
>>
> ...
>
>> -#if defined(CONFIG_MPC8XXX_SPI) && defined(CONFIG_HARD_SPI)
>>
>
> ...but that would leave the "#ifded CONFIG_HARD_SPI" part still in
> place. Or am I missing something?
>
If CONFIG_MPC8XXX_SPI is defined but CONFIG_HARD_SPI is not, compilation
will fail, since CONFIG_HARD_SPI activates the common SPI code on
PowerPC. I guess I figured Kconfig would eventually manage the
dependencies of these options, but I will put the #ifdef back in if you
want.
regards,
Ben
next prev parent reply other threads:[~2008-05-26 15:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-26 6:31 [U-Boot-Users] [PATCH] Move conditional compilation of MPC8XXX SPI driver to Makefile Ben Warren
2008-05-26 7:54 ` Wolfgang Denk
2008-05-26 15:06 ` Ben Warren [this message]
2008-05-26 15:26 ` Wolfgang Denk
2008-05-26 16:40 ` Ben Warren
2008-05-27 7:34 ` Haavard Skinnemoen
2008-05-27 7:54 ` Wolfgang Denk
2008-05-27 8:04 ` Haavard Skinnemoen
2008-05-27 8:13 ` Wolfgang Denk
2008-05-27 8:32 ` Haavard Skinnemoen
2008-05-27 9:13 ` Wolfgang Denk
2008-05-27 14:28 ` Ben Warren
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=483AD1FC.7040805@gmail.com \
--to=biggerbadderben@gmail.com \
--cc=u-boot@lists.denx.de \
/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.