File: Makefile

package info (click to toggle)
kernel-image-2.4.17-hppa 32.4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 156,356 kB
  • ctags: 442,585
  • sloc: ansic: 2,542,442; asm: 144,771; makefile: 8,468; sh: 3,097; perl: 2,578; yacc: 1,177; tcl: 577; lex: 352; awk: 251; lisp: 218; sed: 72
file content (26 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (7)
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
ZLDFLAGS	=-p -X -T bootp.lds \
		 --defsym initrd_addr=$(INITRD_PHYS) \
		 --defsym initrd_virt=$(INITRD_VIRT) \
		 --defsym params=$(PARAMS_PHYS) \
		 --defsym kernel_addr=$(ZTEXTADDR)

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