2 # This file is subject to the terms and conditions of the GNU General Public
3 # License. See the file "COPYING" in the main directory of this archive
6 # Copyright (C) 1995, 1998, 2001, 2002 by Ralf Baechle
10 # Some DECstations need all possible sections of an ECOFF executable
12 ifdef CONFIG_MACH_DECSTATION
19 # Drop some uninteresting sections in the kernel.
20 # This is only relevant for ELF kernels but doesn't hurt a.out
22 drop-sections = .reginfo .mdebug .comment .note .pdr
23 strip-flags = $(addprefix --remove-section=,$(drop-sections))
25 all: vmlinux.ecoff vmlinux.srec addinitrd
27 vmlinux.ecoff: $(obj)/elf2ecoff vmlinux
28 $(obj)/elf2ecoff vmlinux vmlinux.ecoff $(E2EFLAGS)
30 $(obj)/elf2ecoff: $(obj)/elf2ecoff.c
34 $(OBJCOPY) -S -O srec $(strip-flags) vmlinux $(obj)/vmlinux.srec
36 $(obj)/addinitrd: $(obj)/addinitrd.c
40 @echo '* vmlinux.ecoff - ECOFF boot image'
42 clean-files += addinitrd \