* [RFC][PATCH] sh: fixup fpu.o compile order
@ 2011-04-15 7:44 Kuninori Morimoto
2011-04-18 10:00 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2011-04-15 7:44 UTC (permalink / raw)
To: linux-sh
According to arch/sh/include/asm/fpu.h,
"init_fpu" might be called in all environment.
OTOH the other function on fpu.c are implemented
under #ifdef CONFIG_SH_FPU.
This mean fpu.c can be compiled in all environment.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
Paul
We can not compile Migo-R or other board.
because there is no "init_fpu" function without CONFIG_SH_FPU
on current Kernel.
Iwamatsu-san's patch or this patch is needed.
I added [RFC] because I'm not familiar with FPU_EMU.
arch/sh/kernel/cpu/Makefile | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/arch/sh/kernel/cpu/Makefile b/arch/sh/kernel/cpu/Makefile
index d49c213..944db0b 100644
--- a/arch/sh/kernel/cpu/Makefile
+++ b/arch/sh/kernel/cpu/Makefile
@@ -17,7 +17,5 @@ obj-$(CONFIG_ARCH_SHMOBILE) += shmobile/
obj-$(CONFIG_SH_ADC) += adc.o
obj-$(CONFIG_SH_CLK_CPG_LEGACY) += clock-cpg.o
-obj-$(CONFIG_SH_FPU) += fpu.o
-obj-$(CONFIG_SH_FPU_EMU) += fpu.o
-obj-y += irq/ init.o clock.o hwblk.o proc.o
+obj-y += irq/ init.o clock.o hwblk.o proc.o fpu.o
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC][PATCH] sh: fixup fpu.o compile order
2011-04-15 7:44 [RFC][PATCH] sh: fixup fpu.o compile order Kuninori Morimoto
@ 2011-04-18 10:00 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2011-04-18 10:00 UTC (permalink / raw)
To: linux-sh
On Fri, Apr 15, 2011 at 04:44:27PM +0900, Kuninori Morimoto wrote:
> According to arch/sh/include/asm/fpu.h,
> "init_fpu" might be called in all environment.
> OTOH the other function on fpu.c are implemented
> under #ifdef CONFIG_SH_FPU.
> This mean fpu.c can be compiled in all environment.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> Paul
>
> We can not compile Migo-R or other board.
> because there is no "init_fpu" function without CONFIG_SH_FPU
> on current Kernel.
>
> Iwamatsu-san's patch or this patch is needed.
> I added [RFC] because I'm not familiar with FPU_EMU.
>
> arch/sh/kernel/cpu/Makefile | 4 +---
> 1 files changed, 1 insertions(+), 3 deletions(-)
>
Your approach is certainly the cleanest, so lets just go with that.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-18 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-15 7:44 [RFC][PATCH] sh: fixup fpu.o compile order Kuninori Morimoto
2011-04-18 10:00 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).