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