Skip to content

Commit

Permalink
generate 84p artifiacts with KERNEL_VERSION=BS
Browse files Browse the repository at this point in the history
  • Loading branch information
Noam Preil committed Oct 10, 2020
1 parent b1dd7f4 commit 7fc6e59
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
29 changes: 22 additions & 7 deletions .build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ packages:
sources:
- https://github.com/KnightOS/kernel
- https://github.com/KnightOS/scas
artifacts:
- kernel/bin/TI84p/00.bin
- kernel/bin/TI84p/01.bin
- kernel/bin/TI84p/02.bin
- kernel/bin/TI84p/00.sym
- kernel/bin/TI84p/01.sym
- kernel/bin/TI84p/02.sym
- kernel/bin/TI84p/00.h
- kernel/bin/TI84p/01.h
- kernel/bin/TI84p/02.h
- kernel/bin/TI84p/00.inc
- kernel/bin/TI84p/01.inc
- kernel/bin/TI84p/02.inc
- kernel/bin/TI84p/boot.bin
- kernel/bin/TI84p/privileged.bin
environment:
project: kernel
tasks:
Expand All @@ -21,23 +36,23 @@ tasks:
- ti73: |
cd ${project}
make TI73
make clean
- ti83p: |
cd ${project}
make clean
make TI83p
make clean
- ti83pse: |
cd ${project}
make clean
make TI83pSE
- ti84p: |
cd ${project}
make clean
make TI84p
- ti84pse: |
cd ${project}
make clean
make TI84pSE
make clean
- ti84pcse: |
cd ${project}
make clean
make TI84pCSE
make clean
- ti84p: |
cd ${project}
make TI84p
21 changes: 6 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ ASFLAGS=-v
#ASFLAGS=--encoding "Windows-1252"
.DEFAULT_GOAL=TI84pSE
PLATFORM:=TI84pSE
TAG:=$(shell git describe --abbrev=0 --dirty=+)
#TAG:=$(shell git describe --abbrev=0 --dirty=+)
OUTDIR=bin/

KERNEL_VERSION = -DKERNEL_VERSION=$(TAG)
KERNEL_VERSION = -DKERNEL_VERSION=BS
#$(TAG)

# Platforms:
# Variables (all in hex):
Expand Down Expand Up @@ -112,20 +113,10 @@ baserom:
mkdir -p $(BINDIR)
mkrom $(BINDIR)kernel.rom $(LENGTH) /dev/null:0x00

$(OUTDIR)$(PLATFORM)/00.bin: src/00/*.asm include/constants.asm src/00/jumptable.config
$(OUTDIR)$(PLATFORM)/%.bin: src/%/*.asm include/constants.asm src/%/jumptable.config
@mkdir -p $(BINDIR)
$(AS) $(ASFLAGS) $(DEFINES) --include "$(INCLUDE);src/00/" --symbols $(BINDIR)00.sym --listing $(BINDIR)00.list src/00/base.asm $(BINDIR)00.bin
patchrom src/00/jumptable.config $(BINDIR)kernel.rom 00 < $(BINDIR)00.sym > $(BINDIR)00.inc

$(OUTDIR)$(PLATFORM)/01.bin: $(OUTDIR)$(PLATFORM)/00.bin src/01/*.asm include/constants.asm src/01/jumptable.config
@mkdir -p $(BINDIR)
$(AS) $(ASFLAGS) $(DEFINES) --include "$(INCLUDE);src/01/" --symbols $(BINDIR)01.sym --listing $(BINDIR)01.list src/01/base.asm $(BINDIR)01.bin
patchrom src/01/jumptable.config $(BINDIR)kernel.rom 01 < $(BINDIR)01.sym > $(BINDIR)01.inc

$(OUTDIR)$(PLATFORM)/02.bin: $(OUTDIR)$(PLATFORM)/00.bin src/02/*.asm include/constants.asm src/02/jumptable.config
@mkdir -p $(BINDIR)
$(AS) $(ASFLAGS) $(DEFINES) --include "$(INCLUDE);src/02/" --symbols $(BINDIR)02.sym --listing $(BINDIR)02.list src/02/base.asm $(BINDIR)02.bin
patchrom src/02/jumptable.config $(BINDIR)kernel.rom 02 < $(BINDIR)02.sym > $(BINDIR)02.inc
$(AS) $(ASFLAGS) $(DEFINES) --include "$(INCLUDE);src/$*/" --symbols $(BINDIR)$*.sym --listing $(BINDIR)$*.list src/$*/base.asm $(BINDIR)$*.bin
patchrom src/$*/jumptable.config $(BINDIR)kernel.rom $* < $(BINDIR)$*.sym > $(BINDIR)$*.inc

$(OUTDIR)$(PLATFORM)/privileged.bin: src/privileged/*.asm include/constants.asm $(OUTDIR)$(PLATFORM)/00.bin
@mkdir -p $(BINDIR)
Expand Down

0 comments on commit 7fc6e59

Please sign in to comment.