[RFC PATCH 09/11] Cortex-M3: Allow the building of Cortex-M3 kernel port

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Feb 7 14:43:40 EST 2012


On Sun, Jan 22, 2012 at 09:05:44PM +0100, Michał Mirosław wrote:
> 2012/1/22 Uwe Kleine-König <u.kleine-koenig at pengutronix.de>:
> [...]
> > --- a/arch/arm/kernel/Makefile
> > +++ b/arch/arm/kernel/Makefile
> > @@ -13,10 +13,16 @@ CFLAGS_REMOVE_return_address.o = -pg
> >
> >  # Object file lists.
> >
> > -obj-y          := elf.o entry-armv.o entry-common.o irq.o opcodes.o \
> > +obj-y          := elf.o entry-common.o irq.o opcodes.o \
> >                   process.o ptrace.o return_address.o setup.o signal.o \
> >                   sys_arm.o stacktrace.o time.o traps.o
> >
> > +ifeq ($(CONFIG_CPU_V7M),y)
> > +obj-y          += entry-v7m.o
> > +else
> > +obj-y          += entry-armv.o
> > +endif
> > +
> 
> Maybe something shorter, like this? '-)
> 
> obj-$(CONFIG_CPU_V7M) += entry-v7m.o
> obj-$(if $(CONFIG_CPU_V7M),,y) += entry-armv.o
It's shorter, but for readability I prefer my version.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list