|
|
1.1 root 1: #
2: # Ported to boot 386BSD by Julian Elischer ([email protected])
3: # September 1992
4: #
5: # Permission to use, copy, modify and distribute this software and its
6: # documentation is hereby granted, provided that both the copyright
7: # notice and this permission notice appear in all copies of the
8: # software, derivative works or modified versions, and any portions
9: # thereof, and that both notices appear in supporting documentation.
10: #
11: # CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
12: # CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
13: # ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14: #
15: # Carnegie Mellon requests users of this software to return to
16: #
17: # Software Distribution Coordinator or [email protected]
18: # School of Computer Science
19: # Carnegie Mellon University
20: # Pittsburgh PA 15213-3890
21: #
22: # any improvements or extensions that they make and grant Carnegie Mellon
23: # the rights to redistribute these changes.
24: #
25: #
26: # HISTORY
1.1.1.2 ! root 27: # Makefile,v
! 28: # Revision 1.6 1993/07/11 12:02:17 andrew
! 29: # Fixes from bde, including support for loading @ any MB boundary (e.g. a
! 30: # kernel linked for 0xfe100000 will load at the 1MB mark) and read-ahead
! 31: # buffering to speed booting from floppies. Also works with aha174x
! 32: # controllers in enhanced mode.
! 33: #
! 34: # Revision 1.5 1993/07/04 14:03:03 cgd
! 35: # do the right thing, so things aren't built in /usr/src/sys
! 36: #
! 37: # Revision 1.4 1993/06/18 08:03:14 cgd
! 38: # install floppy boot block, too.
! 39: #
! 40: # Revision 1.3 1993/06/08 03:36:39 deraadt
! 41: # makes more sense if src is mounted readonly
! 42: #
! 43: # Revision 1.2 1993/04/28 08:45:51 deraadt
! 44: # Ensure the rmaouthdr shell script is executable before running it!
! 45: #
! 46: # Revision 1.1 1993/03/21 18:08:11 cgd
1.1 root 47: # after 0.2.2 "stable" patches applied
48: #
1.1.1.2 ! root 49: #
! 50: # 93/06/30 bde
! 51: # fd boot is now fast enough.
! 52: # (Safe) target fd0 and (unsafe) target wd0 to temporarily avoid
! 53: # updating /use/mdec.
! 54: #
! 55: # 93/06/29 bde
! 56: # Deleted weirdness for not-really-separate code and data segments.
! 57: # It is not necessary now that the GDT is dynamically initialized.
! 58: # table.o doesn't need to be early any more. boot.sed is not used
! 59: # any more (delete it). The shell commands that failed with status
! 60: # 0 no longer exist so the 93/06/28 fixes got deleted.
! 61: #
! 62: # Use .S extension for asm files to get (g)cc to preprocess them
! 63: # automatically.
! 64: #
! 65: # 93/06/28 bde
! 66: # Don't exit 0 from failing shell commands.
1.1 root 67: #
68: # Thu Sep 10 22:40:23 PDT 1992
69: # Ported to 386BSD by Julian Elischer
70: # [email protected]
71: #
1.1.1.2 ! root 72: # Revision 2.2 92/04/04 11:33:46 rpd
! 73: # Fabricated for MACH 3.0
! 74: # [92/03/30 mg32]
! 75: #
! 76: wd0:
! 77: dd if=boot of=biosboot count=1
! 78: dd if=boot of=bootbios skip=1
! 79: disklabel -r -w wd0 nec5655 newboot biosboot bootbios
! 80: rm biosboot bootbios
! 81:
! 82: NOPROG= noprog
! 83: NOMAN= noman
1.1 root 84:
1.1.1.2 ! root 85: CFLAGS = -O -DDO_BAD144 -I${.CURDIR}
1.1 root 86: LIBS= -lc
1.1.1.2 ! root 87: INC= -I${.CURDIR}/../..
1.1 root 88:
1.1.1.2 ! root 89: # start.o should be first
1.1 root 90: OBJS = start.o table.o boot2.o boot.o asm.o bios.o io.o disk.o sys.o
91:
1.1.1.2 ! root 92: .SUFFIXES: .S .c .o
1.1 root 93:
94: .c.o:
1.1.1.2 ! root 95: $(CC) $(CFLAGS) $(INC) -c $<
1.1 root 96:
1.1.1.2 ! root 97: .S.o:
! 98: $(CC) $(CFLAGS) -c $<
1.1 root 99:
1.1.1.2 ! root 100: boot: $(OBJS)
1.1 root 101: $(LD) -N -T 0 -o boot $(OBJS) $(LIBS)
102: cp boot boot.sym
103: @strip boot
1.1.1.2 ! root 104: @sh ${.CURDIR}/rmaouthdr boot boot.tmp
1.1 root 105: @mv -f boot.tmp boot
106: @ls -l boot
107:
108: biosboot: boot
109: dd if=boot of=biosboot count=1
110:
111: bootbios: boot
112: dd if=boot of=bootbios skip=1
113:
114: /usr/mdec/bootsd: bootbios
115: cp bootbios /usr/mdec/bootsd
116:
117: /usr/mdec/sdboot: biosboot
118: cp biosboot /usr/mdec/sdboot
119:
120: /usr/mdec/bootwd: /usr/mdec/bootsd
121: rm -f /usr/mdec/bootwd
122: ln /usr/mdec/bootsd /usr/mdec/bootwd
123:
124: /usr/mdec/wdboot: /usr/mdec/sdboot
125: rm -f /usr/mdec/wdboot
126: ln /usr/mdec/sdboot /usr/mdec/wdboot
127:
128: /usr/mdec/bootfd: /usr/mdec/bootsd
129: rm -f /usr/mdec/bootfd
130: ln /usr/mdec/bootsd /usr/mdec/bootfd
131:
132: /usr/mdec/fdboot: /usr/mdec/sdboot
133: rm -f /usr/mdec/fdboot
134: ln /usr/mdec/sdboot /usr/mdec/fdboot
135:
136: sd: /usr/mdec/bootsd /usr/mdec/sdboot
137: wd: /usr/mdec/bootwd /usr/mdec/wdboot
138: fd: /usr/mdec/bootfd /usr/mdec/fdboot
139:
1.1.1.2 ! root 140: all: biosboot bootbios
1.1 root 141:
1.1.1.2 ! root 142: fd0:
! 143: dd if=boot of=biosboot count=1
! 144: dd if=boot of=bootbios skip=1
! 145: disklabel -r -w fd0 floppy bootflpy biosboot bootbios
! 146: rm biosboot bootbios
1.1 root 147:
1.1.1.2 ! root 148: install: wd sd fd
1.1 root 149:
1.1.1.2 ! root 150: clean cleandir:
1.1 root 151: /bin/rm -f *.o *.d boot bootbios biosboot boot.sym
152:
1.1.1.2 ! root 153: .include <bsd.prog.mk>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.