diff options
Diffstat (limited to 'arch/cris/arch-v10/boot/compressed/Makefile')
-rw-r--r-- | arch/cris/arch-v10/boot/compressed/Makefile | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/arch/cris/arch-v10/boot/compressed/Makefile b/arch/cris/arch-v10/boot/compressed/Makefile index 4a031cb27eb9..08d943ce4be7 100644 --- a/arch/cris/arch-v10/boot/compressed/Makefile +++ b/arch/cris/arch-v10/boot/compressed/Makefile | |||
@@ -2,12 +2,10 @@ | |||
2 | # arch/cris/arch-v10/boot/compressed/Makefile | 2 | # arch/cris/arch-v10/boot/compressed/Makefile |
3 | # | 3 | # |
4 | 4 | ||
5 | CC = gcc-cris -melf $(LINUXINCLUDE) | 5 | asflags-y += $(LINUXINCLUDE) |
6 | ccflags-y += -O2 | 6 | ccflags-y += -O2 $(LINUXINCLUDE) |
7 | LD = ld-cris | 7 | ldflags-y += -T $(srctree)/$(obj)/decompress.ld |
8 | ldflags-y += -T $(obj)/decompress.ld | ||
9 | OBJECTS = $(obj)/head.o $(obj)/misc.o | 8 | OBJECTS = $(obj)/head.o $(obj)/misc.o |
10 | OBJCOPY = objcopy-cris | ||
11 | OBJCOPYFLAGS = -O binary --remove-section=.bss | 9 | OBJCOPYFLAGS = -O binary --remove-section=.bss |
12 | 10 | ||
13 | quiet_cmd_image = BUILD $@ | 11 | quiet_cmd_image = BUILD $@ |
@@ -21,12 +19,6 @@ $(obj)/decompress.o: $(OBJECTS) FORCE | |||
21 | $(obj)/decompress.bin: $(obj)/decompress.o FORCE | 19 | $(obj)/decompress.bin: $(obj)/decompress.o FORCE |
22 | $(call if_changed,objcopy) | 20 | $(call if_changed,objcopy) |
23 | 21 | ||
24 | $(obj)/head.o: $(obj)/head.S .config | ||
25 | @$(CC) -D__ASSEMBLY__ -traditional -c $< -o $@ | ||
26 | |||
27 | $(obj)/misc.o: $(obj)/misc.c .config | ||
28 | @$(CC) -D__KERNEL__ -c $< -o $@ | ||
29 | |||
30 | $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE | 22 | $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE |
31 | $(call if_changed,image) | 23 | $(call if_changed,image) |
32 | 24 | ||