2 # arch/mips/boot/Makefile
4 # This file is subject to the terms and conditions of the GNU General Public
5 # License. See the file "COPYING" in the main directory of this archive
10 $(CPP
) $(CFLAGS
) $< -o
$*.s
12 $(CC
) $(CFLAGS
) -c
$< -o
$*.o
17 # Drop some uninteresting sections in the kernel.
19 drop-sections
= .reginfo .mdebug
20 strip-flags
= $(addprefix --remove-section
=,$(drop-sections
))
23 # Fake compressed boot
25 zImage
: $(CONFIGURE
) mkboot
$(TOPDIR
)/vmlinux
26 $(OBJCOPY
) $(strip-flags
) $(TOPDIR
)/vmlinux zImage.tmp
27 .
/mkboot zImage.tmp zImage
33 # Don't build dependencies, this may die if $(CC) isn't gcc
37 rm -f zImage zImage.tmp mkboot
41 include $(TOPDIR
)/Rules.make