diff options
author | Michal Marek <mmarek@suse.cz> | 2010-10-12 09:09:06 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-10-12 09:09:06 -0400 |
commit | 239060b93bb30a4ad55f1ecaa512464a035cc5ba (patch) | |
tree | 77f79810e57d4fc24356eca0cd6db463e8994128 /arch/mips/boot/Makefile | |
parent | 1408b15b98635a13bad2e2a50b3c2ae2ccdf625b (diff) | |
parent | e9203c988234aa512bd45ca32b52e21c7bbfc414 (diff) |
Merge branch 'kbuild/rc-fixes' into kbuild/kconfig
We need to revert the temporary hack in 71ebc01, hence the merge.
Diffstat (limited to 'arch/mips/boot/Makefile')
-rw-r--r-- | arch/mips/boot/Makefile | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile index e39a08edcaaa..85bcb5adc7cb 100644 --- a/arch/mips/boot/Makefile +++ b/arch/mips/boot/Makefile | |||
@@ -11,35 +11,32 @@ | |||
11 | # Some DECstations need all possible sections of an ECOFF executable | 11 | # Some DECstations need all possible sections of an ECOFF executable |
12 | # | 12 | # |
13 | ifdef CONFIG_MACH_DECSTATION | 13 | ifdef CONFIG_MACH_DECSTATION |
14 | E2EFLAGS = -a | 14 | e2eflag := -a |
15 | else | ||
16 | E2EFLAGS = | ||
17 | endif | 15 | endif |
18 | 16 | ||
19 | # | 17 | # |
20 | # Drop some uninteresting sections in the kernel. | 18 | # Drop some uninteresting sections in the kernel. |
21 | # This is only relevant for ELF kernels but doesn't hurt a.out | 19 | # This is only relevant for ELF kernels but doesn't hurt a.out |
22 | # | 20 | # |
23 | drop-sections = .reginfo .mdebug .comment .note .pdr .options .MIPS.options | 21 | drop-sections := .reginfo .mdebug .comment .note .pdr .options .MIPS.options |
24 | strip-flags = $(addprefix --remove-section=,$(drop-sections)) | 22 | strip-flags := $(addprefix --remove-section=,$(drop-sections)) |
25 | 23 | ||
26 | VMLINUX = vmlinux | 24 | hostprogs-y := elf2ecoff |
27 | 25 | ||
28 | all: vmlinux.ecoff vmlinux.srec | 26 | targets := vmlinux.ecoff |
29 | 27 | quiet_cmd_ecoff = ECOFF $@ | |
30 | vmlinux.ecoff: $(obj)/elf2ecoff $(VMLINUX) | 28 | cmd_ecoff = $(obj)/elf2ecoff $(VMLINUX) $@ $(e2eflag) |
31 | $(obj)/elf2ecoff $(VMLINUX) $(obj)/vmlinux.ecoff $(E2EFLAGS) | 29 | $(obj)/vmlinux.ecoff: $(obj)/elf2ecoff $(VMLINUX) FORCE |
32 | 30 | $(call if_changed,ecoff) | |
33 | $(obj)/elf2ecoff: $(obj)/elf2ecoff.c | 31 | |
34 | $(HOSTCC) -o $@ $^ | 32 | targets += vmlinux.bin |
35 | 33 | quiet_cmd_bin = OBJCOPY $@ | |
36 | vmlinux.bin: $(VMLINUX) | 34 | cmd_bin = $(OBJCOPY) -O binary $(strip-flags) $(VMLINUX) $@ |
37 | $(OBJCOPY) -O binary $(strip-flags) $(VMLINUX) $(obj)/vmlinux.bin | 35 | $(obj)/vmlinux.bin: $(VMLINUX) FORCE |
38 | 36 | $(call if_changed,bin) | |
39 | vmlinux.srec: $(VMLINUX) | 37 | |
40 | $(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) $(obj)/vmlinux.srec | 38 | targets += vmlinux.srec |
41 | 39 | quiet_cmd_srec = OBJCOPY $@ | |
42 | clean-files += elf2ecoff \ | 40 | cmd_srec = $(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) $@ |
43 | vmlinux.bin \ | 41 | $(obj)/vmlinux.srec: $(VMLINUX) FORCE |
44 | vmlinux.ecoff \ | 42 | $(call if_changed,srec) |
45 | vmlinux.srec | ||