summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/bootp/Makefile
blob: c513c8ad3f3d1ff46b705be12b4d333b86dd7578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# linux/arch/arm/boot/bootp/Makefile
#

ZSYSTEM		=$(TOPDIR)/arch/arm/boot/zImage
INITRD		=$(ZSYSTEM)
ZLDFLAGS	=-p -X -T bootp.lds \
		 --defsym initrd_addr=$(INITRD_PHYS) \
		 --defsym initrd_virt=$(INITRD_VIRT) \
		 --defsym params=$(PARAMS_PHYS)

all:		bootp

# Note that bootp.lds picks up kernel.o and initrd.o
bootp:		init.o kernel.o initrd.o bootp.lds
		$(LD) $(ZLDFLAGS) -o $@ init.o

kernel.o:	$(ZSYSTEM)
		$(LD) -r -s -o $@ -b binary $(ZSYSTEM)

initrd.o:	$(INITRD)
		$(LD) -r -s -o $@ -b binary $(INITRD)

.PHONY:		$(INITRD) $(ZSYSTEM)

clean:;		$(RM) bootp bootp.lds