lzma loader patch from oleg, great thanks good work, saves another 300 kb flashmemory
[openwrt.git] / package / linux / kernel-source / arch / mips / brcm-boards / bcm947xx / compressed / Makefile
1 #
2 # Makefile for Broadcom BCM947XX boards
3 #
4 # Copyright 2001-2003, Broadcom Corporation
5 # All Rights Reserved.
6
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
11 #
12 # $Id$
13 #
14
15 OBJCOPY         := $(CROSS_COMPILE)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S
16 SYSTEM          ?= $(TOPDIR)/vmlinux
17
18 all: vmlinuz
19
20 # Don't build dependencies, this may die if $(CC) isn't gcc
21 dep:
22
23 # Create a gzipped version named vmlinuz for compatibility
24 vmlinuz: piggy
25         gzip -c9 $< > $@
26
27 piggy: $(SYSTEM)
28         $(OBJCOPY) $< $@
29
30 mrproper: clean
31
32 clean:
33         rm -f vmlinuz piggy