Deleted Added
full compact
Makefile (96327) Makefile (96424)
1# $FreeBSD: head/sys/boot/i386/boot2/Makefile 96327 2002-05-10 04:05:42Z jhb $
1# $FreeBSD: head/sys/boot/i386/boot2/Makefile 96424 2002-05-11 21:39:59Z peter $
2
3PROG= boot2
4NOMAN=
5STRIP=
6BINDIR?= /boot
7BINMODE= 444
8CLEANFILES+= boot1 boot1.out boot1.o \
9 boot2.ldr boot2.bin boot2.ld boot2.out boot2.o boot2.h \

--- 33 unchanged lines hidden (view full) ---

43 objcopy -S -O binary boot1.out ${.TARGET}
44
45boot1.out: boot1.o
46 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
47
48boot1.o: boot1.s
49 ${AS} ${AFLAGS} --defsym FLAGS=${B1FLAGS} ${.IMPSRC} -o ${.TARGET}
50
2
3PROG= boot2
4NOMAN=
5STRIP=
6BINDIR?= /boot
7BINMODE= 444
8CLEANFILES+= boot1 boot1.out boot1.o \
9 boot2.ldr boot2.bin boot2.ld boot2.out boot2.o boot2.h \

--- 33 unchanged lines hidden (view full) ---

43 objcopy -S -O binary boot1.out ${.TARGET}
44
45boot1.out: boot1.o
46 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
47
48boot1.o: boot1.s
49 ${AS} ${AFLAGS} --defsym FLAGS=${B1FLAGS} ${.IMPSRC} -o ${.TARGET}
50
51boot2.o: boot2.c
52 ${CC} ${CFLAGS} -S -o boot2.s.tmp ${.IMPSRC}
53 sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s
54 rm -f boot2.s.tmp
55 ${AS} ${AFLAGS} -o boot2.o boot2.s
56
51boot2.h: boot1.out
52 ${NM} -t d ${.ALLSRC} | awk '/([0-9])+ T xread/ \
53 { x = $$1 - ORG1; printf("#define XREADORG 0x7%x\n", x) }' \
54 ORG1=`printf "%d" ${ORG1}` > boot2.h
55
56boot2: boot2.ldr boot2.bin ${BTX}/btx/btx
57 btxld -v -E ${ORG2} -f bin -b ${BTX}/btx/btx -l boot2.ldr \
58 -o boot2.ld -P 1 boot2.bin

--- 29 unchanged lines hidden ---
57boot2.h: boot1.out
58 ${NM} -t d ${.ALLSRC} | awk '/([0-9])+ T xread/ \
59 { x = $$1 - ORG1; printf("#define XREADORG 0x7%x\n", x) }' \
60 ORG1=`printf "%d" ${ORG1}` > boot2.h
61
62boot2: boot2.ldr boot2.bin ${BTX}/btx/btx
63 btxld -v -E ${ORG2} -f bin -b ${BTX}/btx/btx -l boot2.ldr \
64 -o boot2.ld -P 1 boot2.bin

--- 29 unchanged lines hidden ---