confusion reduction: rename bootstrap file to boot.rim, kernel to a.out
This commit is contained in:
+3
-1
@@ -2,8 +2,10 @@
|
|||||||
/sys
|
/sys
|
||||||
/tests
|
/tests
|
||||||
|
|
||||||
|
*~
|
||||||
build/a.lst
|
build/a.lst
|
||||||
build/a.rim
|
build/a.out
|
||||||
|
build/boot.rim
|
||||||
build/image.fs
|
build/image.fs
|
||||||
build/bin
|
build/bin
|
||||||
build/n.out
|
build/n.out
|
||||||
|
|||||||
+16
-16
@@ -22,10 +22,10 @@ TESTDIR=tests
|
|||||||
BINARIES=../binaries/
|
BINARIES=../binaries/
|
||||||
|
|
||||||
|
|
||||||
all: cmd others a.ptr a.rim image.fs
|
all: cmd others a.out boot.rim image.fs
|
||||||
|
|
||||||
# Make alternative everything: no dd but . and ..
|
# Make alternative everything: no dd but . and ..
|
||||||
alt: altcmd altothers a.rim alt/a.ptr alt/image.fs
|
alt: altcmd altothers boot.rim alt/a.out alt/image.fs
|
||||||
|
|
||||||
# The run rule has no dependencies so that the system can be booted easily
|
# The run rule has no dependencies so that the system can be booted easily
|
||||||
# and frequently with make run. However, you have to manually make all first!
|
# and frequently with make run. However, you have to manually make all first!
|
||||||
@@ -41,48 +41,48 @@ dist: all alt
|
|||||||
mkdir -p $(BINARIES)/orig
|
mkdir -p $(BINARIES)/orig
|
||||||
mkdir -p $(BINARIES)/alt
|
mkdir -p $(BINARIES)/alt
|
||||||
cp image.fs $(BINARIES)/orig
|
cp image.fs $(BINARIES)/orig
|
||||||
cp a.rim $(BINARIES)/orig
|
cp boot.rim $(BINARIES)/orig
|
||||||
cp a.ptr $(BINARIES)/orig
|
cp a.out $(BINARIES)/orig
|
||||||
cp unixv0.simh $(BINARIES)/orig
|
cp unixv0.simh $(BINARIES)/orig
|
||||||
cp alt/image.fs $(BINARIES)/alt
|
cp alt/image.fs $(BINARIES)/alt
|
||||||
cp alt/a.ptr $(BINARIES)/alt
|
cp alt/a.out $(BINARIES)/alt
|
||||||
cp alt/unixv0.simh $(BINARIES)/alt
|
cp alt/unixv0.simh $(BINARIES)/alt
|
||||||
|
|
||||||
# Warm boot Unix kernel: boots into init and a login prompt
|
# Warm boot Unix kernel: boots into init and a login prompt
|
||||||
a.ptr:
|
a.out:
|
||||||
$(AS) -f ptr -o a.ptr $(SYSSRC)/sop.s $(SYSSRC)/s[1-8].s
|
$(AS) -f ptr -o a.out $(SYSSRC)/sop.s $(SYSSRC)/s[1-8].s
|
||||||
$(AS) -n -f list -o a.lst $(SYSSRC)/sop.s $(SYSSRC)/s[1-8].s
|
$(AS) -n -f list -o a.lst $(SYSSRC)/sop.s $(SYSSRC)/s[1-8].s
|
||||||
|
|
||||||
# Alternative kernel: no dd, but . and ..
|
# Alternative kernel: no dd, but . and ..
|
||||||
alt/a.ptr:
|
alt/a.out:
|
||||||
$(AS) -f ptr -o alt/a.ptr $(SYSSRC)/sop.s $(SYSSRC)/s1.s \
|
$(AS) -f ptr -o alt/a.out $(SYSSRC)/sop.s $(SYSSRC)/s1.s \
|
||||||
$(ALTSRC)/s2.s $(SYSSRC)/s[3-8].s
|
$(ALTSRC)/s2.s $(SYSSRC)/s[3-8].s
|
||||||
$(AS) -n -f list -o alt/a.lst $(SYSSRC)/sop.s $(SYSSRC)/s1.s \
|
$(AS) -n -f list -o alt/a.lst $(SYSSRC)/sop.s $(SYSSRC)/s1.s \
|
||||||
$(ALTSRC)/s2.s $(SYSSRC)/s[3-8].s
|
$(ALTSRC)/s2.s $(SYSSRC)/s[3-8].s
|
||||||
|
|
||||||
# Phil's bootstrap code
|
# Phil's bootstrap code
|
||||||
a.rim: $(SYSSRC)/sop.s $(OTHERSRC)/pbboot.s
|
boot.rim: $(SYSSRC)/sop.s $(OTHERSRC)/pbboot.s
|
||||||
$(AS) -f rim -o a.rim $(SYSSRC)/sop.s $(OTHERSRC)/pbboot.s
|
$(AS) -f rim -o boot.rim $(SYSSRC)/sop.s $(OTHERSRC)/pbboot.s
|
||||||
|
|
||||||
# Cold boot Unix kernel: attempts to build a minimal filesystem.
|
# Cold boot Unix kernel: attempts to build a minimal filesystem.
|
||||||
# Don't use this one!
|
# Don't use this one!
|
||||||
coldboot:
|
coldboot:
|
||||||
$(AS) -f rim -o a.rim $(SYSSRC)/sop.s $(SYSSRC)/s[1-9].s
|
$(AS) -f rim -o boot.rim $(SYSSRC)/sop.s $(SYSSRC)/s[1-9].s
|
||||||
$(AS) -n -f list -o a.lst $(SYSSRC)/sop.s $(SYSSRC)/s[1-9].s
|
$(AS) -n -f list -o a.lst $(SYSSRC)/sop.s $(SYSSRC)/s[1-9].s
|
||||||
|
|
||||||
# Filesystem image
|
# Filesystem image
|
||||||
image.fs: cmd others
|
image.fs: cmd others
|
||||||
$(MKFS) -k a.ptr proto
|
$(MKFS) -k a.out proto
|
||||||
$(FSCK) image.fs
|
$(FSCK) image.fs
|
||||||
|
|
||||||
# Alternate filesystem image: . and .. but no dd
|
# Alternate filesystem image: . and .. but no dd
|
||||||
alt/image.fs: altcmd altothers
|
alt/image.fs: altcmd altothers
|
||||||
$(MKFS) -1 -2 -3 -o alt/image.fs -k alt/a.ptr alt/proto
|
$(MKFS) -1 -2 -3 -o alt/image.fs -k alt/a.out alt/proto
|
||||||
$(FSCK) -3 alt/image.fs
|
$(FSCK) -3 alt/image.fs
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f a.rim image.fs a.lst n.out a.ptr
|
rm -f boot.rim image.fs a.lst n.out a.out
|
||||||
rm -f alt/image.fs alt/a.ptr alt/a.lst
|
rm -f alt/image.fs alt/a.out alt/a.lst
|
||||||
rm -rf $(BINDIR) $(TESTDIR)
|
rm -rf $(BINDIR) $(TESTDIR)
|
||||||
rm -rf $(BINARIES)
|
rm -rf $(BINARIES)
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,6 @@ set dt disa
|
|||||||
show dev
|
show dev
|
||||||
|
|
||||||
# load and run the bootstrap code
|
# load and run the bootstrap code
|
||||||
load -S a.rim
|
load -S boot.rim
|
||||||
dep pc 010000
|
dep pc 010000
|
||||||
go
|
go
|
||||||
|
|||||||
+3
-2
@@ -25,7 +25,8 @@ set dt disa
|
|||||||
# show device settings:
|
# show device settings:
|
||||||
show dev
|
show dev
|
||||||
|
|
||||||
# load and run the bootstrap code
|
# load and run the paper tape bootstrap
|
||||||
load -S a.rim
|
# (loads system from disk)
|
||||||
|
load -S boot.rim
|
||||||
dep pc 010000
|
dep pc 010000
|
||||||
go
|
go
|
||||||
|
|||||||
Reference in New Issue
Block a user