summaryrefslogtreecommitdiffstats
path: root/system/atari800_os++/omit_checksum.diff
blob: 640f6a085e59d8e0441965ab3243c882c5454044 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff -Naur osrom/makefile osrom.patched/makefile
--- osrom/makefile	2008-09-05 17:51:11.000000000 -0400
+++ osrom.patched/makefile	2009-04-17 19:58:05.000000000 -0400
@@ -23,6 +23,9 @@
 CC		=	cc
 DIR		=	osrom/
 
+ifdef OMIT_CHECKSUM
+	AFLAGS+=-DOMIT_CHECKSUM
+endif
 
 OSSOURCES	=	charmap intlmap \
 			kernel reset nmi irq diskinterf sio cio misc \
@@ -43,7 +43,7 @@
 
 rom850	:	prehandlerrom1 prehandlerrom2 reloc loader
 	@ $(ECHO) "Preparing the loader relocatable"
-	@ reloc prehandlerrom1 prehandlerrom2 relocation
+	@ ./reloc prehandlerrom1 prehandlerrom2 relocation
 	@ dd if=loader count=1 bs=256 conv=sync | cat - relocation > boot850
 	@ rm loader relocation prehandlerrom2
 	@ cp prehandlerrom1 rom850
@@ -51,7 +51,7 @@
 osrom	:	prerom checksum
 	@ $(ECHO) "Combining ROM sources..."
 	@ cp prerom osrom
-	@ checksum osrom
+	@ ./checksum osrom
 
 #
 # Use the following make target for the official os++ distribution
@@ -59,7 +59,7 @@
 osdist	:	prerom checksum
 	@ $(ECHO) "Combining ROM sources..."
 	@ cp prerom osdist
-	@ checksum osdist
+	@ ./checksum osdist
 
 prerom	:	$(OSOBJECTS) $(INCLUDES) $(OSCONFIG)
 	@ $(ECHO) "Linking..."
@@ -88,7 +88,7 @@
 %.dump	:	% bintohex
 	@ $(ECHO) "Converting" $* "to" $*.dump
 	@ echo "unsigned char" $*"[] = " >$*.dump
-	@ bintohex <$* >>$*.dump
+	@ ./bintohex <$* >>$*.dump
 
 checksum:	checksum.c
 	@ $(ECHO) "Compling the checksum program"
diff -Naur osrom/romtest.asm osrom.patched/romtest.asm
--- osrom/romtest.asm	2006-05-21 11:23:11.000000000 -0400
+++ osrom.patched/romtest.asm	2009-04-17 19:58:54.000000000 -0400
@@ -18,8 +18,17 @@
 	
 	.segment  "RomTest"
 
+	.ifdef OMIT_CHECKSUM
+	nop
+	nop
+	nop
+	nop
+	nop
+	nop
+	.else
 	jmp RomSumLo
 	jmp RomSumHi
+	.endif
 	jmp VectorInit
 	
 	;; imported for internal use only