[RFC PATCH 09/11] Cortex-M3: Allow the building of Cortex-M3 kernel port
From: Uwe Kleine-König <hidden>
Date: 2012-02-07 19:43:40
From: Uwe Kleine-König <hidden>
Date: 2012-02-07 19:43:40
On Sun, Jan 22, 2012 at 09:05:44PM +0100, Micha? Miros?aw wrote:
2012/1/22 Uwe Kleine-K?nig [off-list ref]: [...]quoted
--- 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/ |