Makefile (125621) | Makefile (125932) |
---|---|
1# $FreeBSD: head/sys/boot/i386/boot2/Makefile 125621 2004-02-09 14:11:58Z ru $ | 1# $FreeBSD: head/sys/boot/i386/boot2/Makefile 125932 2004-02-17 07:13:04Z ru $ |
2 3FILES= boot boot1 boot2 4 5NM?= nm 6 7# A value of 0x80 enables LBA support. 8B1FLAGS= 0x80 9 --- 5 unchanged lines hidden (view full) --- 15ORG1= 0x7c00 16ORG2= 0x2000 17 18# Decide level of UFS support. 19BOOT2_UFS?= UFS1_AND_UFS2 20#BOOT2_UFS?= UFS2_ONLY 21#BOOT2_UFS?= UFS1_ONLY 22 | 2 3FILES= boot boot1 boot2 4 5NM?= nm 6 7# A value of 0x80 enables LBA support. 8B1FLAGS= 0x80 9 --- 5 unchanged lines hidden (view full) --- 15ORG1= 0x7c00 16ORG2= 0x2000 17 18# Decide level of UFS support. 19BOOT2_UFS?= UFS1_AND_UFS2 20#BOOT2_UFS?= UFS2_ONLY 21#BOOT2_UFS?= UFS1_ONLY 22 |
23AFLAGS+=--defsym FLAGS=${B1FLAGS} \ 24 --defsym SIOPRT=${BOOT_COMCONSOLE_PORT} \ 25 --defsym SIOFMT=${B2SIOFMT} \ 26 --defsym SIOSPD=${BOOT_COMCONSOLE_SPEED} 27 | |
28CFLAGS= -Os \ 29 -fno-guess-branch-probability -fomit-frame-pointer\ 30 -mno-align-long-strings \ 31 -mrtd \ 32 -D${BOOT2_UFS} \ | 23CFLAGS= -Os \ 24 -fno-guess-branch-probability -fomit-frame-pointer\ 25 -mno-align-long-strings \ 26 -mrtd \ 27 -D${BOOT2_UFS} \ |
28 -DFLAGS=${B1FLAGS} \ 29 -DSIOPRT=${BOOT_COMCONSOLE_PORT} \ 30 -DSIOFMT=${B2SIOFMT} \ 31 -DSIOSPD=${BOOT_COMCONSOLE_SPEED} \ |
|
33 -I${.CURDIR}/../../common \ 34 -I${.CURDIR}/../btx/lib -I. \ 35 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \ 36 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ 37 -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings 38 39LDFLAGS=-static -N --gc-sections 40 --- 8 unchanged lines hidden (view full) --- 49CLEANFILES+= boot1 boot1.out boot1.o 50 51boot1: boot1.out 52 objcopy -S -O binary boot1.out ${.TARGET} 53 54boot1.out: boot1.o 55 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o 56 | 32 -I${.CURDIR}/../../common \ 33 -I${.CURDIR}/../btx/lib -I. \ 34 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \ 35 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ 36 -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings 37 38LDFLAGS=-static -N --gc-sections 39 --- 8 unchanged lines hidden (view full) --- 48CLEANFILES+= boot1 boot1.out boot1.o 49 50boot1: boot1.out 51 objcopy -S -O binary boot1.out ${.TARGET} 52 53boot1.out: boot1.o 54 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o 55 |
57boot1.o: boot1.s 58 ${CPP} ${CFLAGS} ${.CURDIR}/boot1.s | \ 59 ${AS} ${AFLAGS} -o ${.TARGET} 60 | |
61CLEANFILES+= boot2 boot2.ld boot2.ldr boot2.bin boot2.out boot2.o \ 62 boot2.s boot2.s.tmp boot2.h sio.o 63 64boot2: boot2.ld 65 @set -- `ls -l boot2.ld`; x=$$((7680-$$5)); \ 66 echo "$$x bytes available"; test $$x -ge 0 67 dd if=boot2.ld of=${.TARGET} obs=7680 conv=osync 68 --- 37 unchanged lines hidden --- | 56CLEANFILES+= boot2 boot2.ld boot2.ldr boot2.bin boot2.out boot2.o \ 57 boot2.s boot2.s.tmp boot2.h sio.o 58 59boot2: boot2.ld 60 @set -- `ls -l boot2.ld`; x=$$((7680-$$5)); \ 61 echo "$$x bytes available"; test $$x -ge 0 62 dd if=boot2.ld of=${.TARGET} obs=7680 conv=osync 63 --- 37 unchanged lines hidden --- |