[RFC PATCH 09/11] Cortex-M3: Allow the building of Cortex-M3 kernel port
Michał Mirosław
mirqus at gmail.com
Sun Jan 22 15:05:44 EST 2012
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
Best Regards,
Michał Mirosław
More information about the linux-arm-kernel
mailing list