Makefile (45334) | Makefile (48919) |
---|---|
1# $Id: Makefile,v 1.11 1999/01/10 14:48:03 rnordier Exp $ | 1# $Id: Makefile,v 1.12 1999/04/05 07:24:51 rnordier Exp $ |
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 \ 10 sio.o 11 12M4?= m4 13 | 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 \ 10 sio.o 11 12M4?= m4 13 |
14# A value of 0x80 enables LBA support. 15B1FLAGS= 0 16 |
|
14BOOT_COMCONSOLE_PORT?= 0x3f8 15BOOT_COMCONSOLE_SPEED?= 9600 16B2SIOFMT?= 0x3 17 18.if exists(${.OBJDIR}/../btx) 19BTX= ${.OBJDIR}/../btx 20.else 21BTX= ${.CURDIR}/../btx --- 14 unchanged lines hidden (view full) --- 36 37boot1: boot1.out 38 objcopy -S -O binary boot1.out ${.TARGET} 39 40boot1.out: boot1.o 41 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o 42 43boot1.o: boot1.m4 boot1.s | 17BOOT_COMCONSOLE_PORT?= 0x3f8 18BOOT_COMCONSOLE_SPEED?= 9600 19B2SIOFMT?= 0x3 20 21.if exists(${.OBJDIR}/../btx) 22BTX= ${.OBJDIR}/../btx 23.else 24BTX= ${.CURDIR}/../btx --- 14 unchanged lines hidden (view full) --- 39 40boot1: boot1.out 41 objcopy -S -O binary boot1.out ${.TARGET} 42 43boot1.out: boot1.o 44 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o 45 46boot1.o: boot1.m4 boot1.s |
44 (cd ${.CURDIR}; ${M4} boot1.m4 boot1.s) | \ | 47 (cd ${.CURDIR}; ${M4} -DFLAGS=${B1FLAGS} boot1.m4 boot1.s) | \ |
45 ${AS} ${AFLAGS} -o ${.TARGET} 46 47boot2: boot2.ldr boot2.bin 48 btxld -v -E ${ORG2} -f bin -b ${BTX}/btx/btx -l boot2.ldr \ 49 -o boot2.ld -P 1 boot2.bin 50 @ls -l boot2.ld | awk '{ x = 7680 - $$5; \ 51 print x " bytes available"; if (x < 0) exit 1 }' 52 dd if=boot2.ld of=${.TARGET} obs=7680 conv=osync 2>/dev/null --- 24 unchanged lines hidden --- | 48 ${AS} ${AFLAGS} -o ${.TARGET} 49 50boot2: boot2.ldr boot2.bin 51 btxld -v -E ${ORG2} -f bin -b ${BTX}/btx/btx -l boot2.ldr \ 52 -o boot2.ld -P 1 boot2.bin 53 @ls -l boot2.ld | awk '{ x = 7680 - $$5; \ 54 print x " bytes available"; if (x < 0) exit 1 }' 55 dd if=boot2.ld of=${.TARGET} obs=7680 conv=osync 2>/dev/null --- 24 unchanged lines hidden --- |