diff options
Diffstat (limited to 'arch/arm/kernel/Makefile')
-rw-r--r-- | arch/arm/kernel/Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index 62c0ca60e..9fa2e8e86 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile @@ -5,9 +5,14 @@ # removes any old dependencies. DON'T put your own dependencies here # unless it's something special (ie not a .c file). +USE_STANDARD_AS_RULE := true + HEAD_OBJ = head-$(PROCESSOR).o ENTRY_OBJ = entry-$(PROCESSOR).o +AFLAGS_head-armv.o := -DTEXTADDR=$(TEXTADDR) -traditional +AFLAGS_head-armo.o := -DTEXTADDR=$(TEXTADDR) -traditional + O_OBJS_arc = dma-arc.o oldlatches.o O_OBJS_rpc = dma-rpc.o O_OBJS_footbridge = dma-footbridge.o hw-footbridge.o isa.o @@ -54,14 +59,8 @@ MX_OBJS := $(sort $(filter $(export-objs), $(obj-m))) all: kernel.o $(HEAD_OBJ) init_task.o -$(HEAD_OBJ): $(HEAD_OBJ:.o=.S) - $(CC) $(AFLAGS) -DTEXTADDR=$(TEXTADDR) -traditional -c $(HEAD_OBJ:.o=.S) -o $@ - include $(TOPDIR)/Rules.make -.S.o: - $(CC) $(AFLAGS) $(AFLAGS_$@) -c -o $*.o $< - # Spell out some dependencies that `make dep' doesn't spot entry-armv.o: calls.S ../lib/constants.h entry-armo.o: calls.S ../lib/constants.h |