Skip to content

Commit 327a24a

Browse files
jmalakPerditionC
authored andcommitted
build: add ptchsize as native build for cross-compilation
ptchsize is build tool (used by FREECOM build) and also DOS target tool now in tools (DOS tools included in distribution) is DOS version in utils (host native tools used by FREECOM build) is host OS version
1 parent e1fe8a0 commit 327a24a

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

build.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ cd ..
179179
echo.
180180
echo Patching heap size to 6KB
181181
echo.
182-
tools\ptchsize.exe command.com +6KB
183-
tools\ptchsize.exe %CMD_NAME% +6KB
182+
utils\ptchsize.exe command.com +6KB
183+
utils\ptchsize.exe %CMD_NAME% +6KB
184184

185185
if %WITH_UPX%x == x goto alldone
186186
if exist command.upx del command.upx >nul

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ cd ..
198198
echo
199199
echo Patching heap size to 6KB
200200
echo
201-
tools/ptchsize.exe command.com +6KB
201+
utils/ptchsize.exe command.com +6KB
202202

203203
if [ $WITH_UPX = "yes" ]; then
204204
rm -f command.upx

mkdist.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ set XMS_SWAP=Yes
6969
dmake || quit
7070
%_DBG setdos /y1 %+ %_DBG echo on
7171
if not exist com.com goto ende
72-
iff not exist tools\ptchsize.exe then
72+
iff not exist utils\ptchsize.exe then
7373
echo no PTCHSIZE
7474
goto ende
7575
endiff
76-
tools\ptchsize.exe com.com +7KB
76+
utils\ptchsize.exe com.com +7KB
7777
if errorlevel 1 goto ende
7878
move com.com packages\xmsswap.std\command.com
7979
copy /b shell\com.exe +infores + criter\criter + criter\criter1 packages\localize.std\xmsswap.cln
@@ -97,11 +97,11 @@ ren /q config.h.backup config.h || cancel 21
9797

9898
if not x%err == x cancel %err
9999
if not exist com.com goto ende
100-
iff not exist tools\ptchsize.exe then
100+
iff not exist utils\ptchsize.exe then
101101
echo no PTCHSIZE
102102
goto ende
103103
endiff
104-
tools\ptchsize.exe com.com +6KB
104+
utils\ptchsize.exe com.com +6KB
105105
if errorlevel 1 goto ende
106106
move com.com packages\plainedt.std\command.com
107107
if exist com.com goto ende
@@ -119,11 +119,11 @@ if not exist com.com goto ende
119119
copy /b shell\com.exe +infores + criter\criter + criter\criter1 command.cln
120120
ren com.com command.com
121121
if exist com.com goto ende
122-
iff not exist tools\ptchsize.exe then
122+
iff not exist utils\ptchsize.exe then
123123
echo no PTCHSIZE
124124
goto ende
125125
endiff
126-
tools\ptchsize.exe command.com +6KB
126+
utils\ptchsize.exe command.com +6KB
127127
if errorlevel 1 goto ende
128128

129129
for %file in (tools\kssf.com tools\vspawn.com tools\ptchldrv.exe tools\ptchsize.exe) (if exist %file copy %file packages\plainedt.std\ %+ if exist %file move %file packages\binary.std\ %+ if exist %file goto ende)

utils/makefile.mak

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ CFG_DEPENDENCIES = makefile.mak
33
TOP=..
44
!include "$(TOP)/config.mak"
55

6-
all: $(CFG) mktools.exe mkctxt.exe chunk.exe mkinfres.exe
6+
all: $(CFG) mktools.exe mkctxt.exe chunk.exe mkinfres.exe ptchsize.exe
77

8-
mktools.exe : ../config.h
8+
mktools.exe : mktools.c ../config.h
9+
ptchsize.exe : ptchsize.c ../tools/ptchsize.c

utils/ptchsize.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
Redirection file to enable native host build of ptchsize utility
3+
*/
4+
#include "../tools/ptchsize.c"

0 commit comments

Comments
 (0)