2020-10-31 11:31:47 +11:00
|
|
|
# See /doc/hw/z80/ti84.txt
|
2020-05-15 01:36:10 +10:00
|
|
|
TARGET = os.bin
|
2020-10-31 11:31:47 +11:00
|
|
|
BASE = ../../..
|
2020-09-21 10:24:09 +10:00
|
|
|
CDIR = $(BASE)/cvm
|
2020-06-27 11:23:13 +10:00
|
|
|
STAGE = $(CDIR)/stage
|
2020-09-21 10:24:09 +10:00
|
|
|
BLKPACK = $(BASE)/tools/blkpack
|
2020-10-26 06:58:00 +11:00
|
|
|
EMUL = $(BASE)/emul/z80/ti84
|
2019-11-08 05:42:40 +11:00
|
|
|
MKTIUPGRADE = mktiupgrade
|
2019-11-08 03:52:29 +11:00
|
|
|
|
|
|
|
.PHONY: all
|
2020-05-08 20:50:34 +10:00
|
|
|
all: $(TARGET)
|
2020-09-21 10:24:09 +10:00
|
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
|
|
$(STAGE) blkfs < xcomp.fs > $@
|
|
|
|
|
|
|
|
$(BLKPACK):
|
|
|
|
$(MAKE) -C ../tools
|
|
|
|
|
2020-11-17 01:11:47 +11:00
|
|
|
blkfs: $(BLKPACK) $(BASE)/blk.fs blk.fs
|
2020-11-15 10:00:31 +11:00
|
|
|
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
|
2020-01-02 14:48:01 +11:00
|
|
|
|
2020-06-12 02:23:59 +10:00
|
|
|
$(STAGE):
|
2020-06-27 11:23:13 +10:00
|
|
|
$(MAKE) -C $(CDIR) stage
|
2020-06-12 02:23:59 +10:00
|
|
|
|
2020-01-03 08:59:38 +11:00
|
|
|
$(EMUL):
|
|
|
|
$(MAKE) -C ${@:%/ti84=%}
|
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|
2020-10-26 06:58:00 +11:00
|
|
|
|
2020-01-02 14:48:01 +11:00
|
|
|
os.rom: $(TARGET)
|
2020-05-16 07:25:58 +10:00
|
|
|
dd if=$(TARGET) bs=1M of=$@ conv=sync
|
2019-11-08 03:52:29 +11:00
|
|
|
|
2020-01-02 14:48:01 +11:00
|
|
|
os.8xu: os.rom
|
|
|
|
$(MKTIUPGRADE) -p -k keys/0A.key -d TI-84+ os.rom $@ 00
|
2019-11-08 05:42:40 +11:00
|
|
|
|
|
|
|
.PHONY: send
|
|
|
|
send: os.8xu
|
2020-01-01 07:07:39 +11:00
|
|
|
tilp -n --calc ti84+ --cable DirectLink os.8xu
|