Browse Source

added diff build option

patch
curt mayer 6 years ago
parent
commit
f8c4ee1183
  1. 15
      Source/HBIOS/Build.sh
  2. 7
      Source/HBIOS/Makefile

15
Source/HBIOS/Build.sh

@ -5,6 +5,19 @@ set -e
CPMCP=../../Tools/`uname`/cpmcp
timestamp=$(date +%Y-%m-%d)
#timestamp="2020-02-24"
if [ $1 == '-d' ] ; then
shift
diffdir=$1
shift
if [ -f $diffdir/build.inc ] ; then
timestamp=$(grep TIMESTAMP $diffdir/build.inc | awk '{print $3}' | tr -d '\015"')
echo diff build using $timestamp
fi
fi
# positional arguments
platform=$1
config=$2
@ -45,8 +58,6 @@ else
fi
Apps=(assign fdu format mode osldr rtc survey syscopy sysgen talk timer xm inttest)
timestamp=$(date +%Y-%m-%d)
#timestamp="2020-02-24"
blankfile=Blank${romsize}KB.dat
romdiskfile=RomDisk.tmp

7
Source/HBIOS/Makefile

@ -31,6 +31,11 @@ DEST = ../../Binary
TOOLS =../../Tools
OTHERS = *.img *.rom *.com *.bin *.z80 cpm.sys zsys.sys Build.inc
include $(TOOLS)/Makefile.inc
ifeq ($(DIFFMAKE),1)
DIFFBUILD := -d $(DIFFTO)/Source/HBIOS
endif
DIFFPATH = $(DIFFTO)/Binary
@ -39,7 +44,7 @@ ROMSIZE=512
N8_std.rom: ROMSIZE=512
%.rom:
bash Build.sh $(shell echo $* | tr '_' ' ') $(ROMSIZE)
bash Build.sh $(DIFFBUILD) $(shell echo $* | tr '_' ' ') $(ROMSIZE)
#ZETA2_std.rom:
# bash Build.sh ZETA2 std 512

Loading…
Cancel
Save