1#
2# linux/arch/arm/boot/bootp/Makefile
3#
4
5ZSYSTEM		=$(TOPDIR)/arch/arm/boot/zImage
6ZLDFLAGS	=-p -X -T bootp.lds \
7		 --defsym initrd_addr=$(INITRD_PHYS) \
8		 --defsym params=$(PARAMS_PHYS)
9
10all:		bootp
11
12# Note that bootp.lds picks up kernel.o and initrd.o
13bootp:		init.o kernel.o initrd.o bootp.lds
14		$(LD) $(ZLDFLAGS) -o $@ init.o
15
16kernel.o:	$(ZSYSTEM)
17		$(LD) -r -s -o $@ -b binary $(ZSYSTEM)
18
19initrd.o:	$(INITRD)
20		$(LD) -r -s -o $@ -b binary $(INITRD)
21
22.PHONY:		$(INITRD) $(ZSYSTEM)
23
24clean:;		$(RM) bootp
25