[Freedos-kernel] patch: batch and make files
Hi! [Don't know what happen, but SF silently ignores/losts my letters. B-E Second day: one was saturday, second was today. Not funny. Below _repost_ of my letter with new patch from today, monday.] New updates for my patches. Because I already remove intermediate files, there present diff file not to my last patch, but to files, as patched by Bart. - BUILDALL.BAT, CLEAN.BAT: not all DELs was NULed. - CONFIG.B: comment for NASM updated by request of Bernd. :) - KERNEL\MAKEFILE: not all individual rules was present (asmsupt.asm), not all dependencies was present (eg, segs.inc for irqstack.asm). - KERNEL\NLS_LOAD.C: removed. PS: config.h also may be removed, because it is dummy (for this only required to remove reference in globals.h). When (and if!) it will be required, it may be added back. PS2: KERNEL\NLS\001-437.HC is desynced with KERNEL\NLS_HC.ASM. PS3: header files in globals.h and init-mode.h included in different order. PS4: repeat for my previous question: why to duplicate clean and clobber? Another one: who make files status.me, *.cod, *.las? --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
[Freedos-kernel] patch: batch and make files (diff file)
---BeginMessage--- diff -ruNp 0old/build.bat 0new/build.bat --- 0old/build.bat 2004-03-27 01:42:32.0 + +++ 0new/build.bat 2004-04-03 10:16:14.0 + @@ -3,18 +3,22 @@ :- batch file to build everything :- $Id$ +:--- :- Syntax: BUILD [-r] [fat32|fat16] [msc|wc|tc|tcpp] [86|186|386] :- option case is significant !! +:--- -if %1 == -r call clobber -if %1 == -r shift +set XERROR=1 +if %XERROR% == goto noenv -set XERROR= +if %1 == -r call clobber.bat +if %1 == -r shift if not exist config.bat echo You must copy CONFIG.B to CONFIG.BAT and edit it to reflect your setup! if not exist config.bat goto abort -call config +call config.bat +if %LAST% == goto noenv :--- :- following is command line handling @@ -41,7 +45,8 @@ if not %1 == goto loop_commandline if %COMPILER% == echo you MUST define a COMPILER variable in CONFIG.BAT if %COMPILER% == goto abort -call default +call defaults.bat +if %LAST% == goto noenv :--- :- finally - we are going to compile @@ -51,50 +56,51 @@ echo. echo Process UTILS ++ echo. cd utils -%MAKE% production +call %MAKE% production if errorlevel 1 goto abort-cd echo. echo Process LIB echo. cd ..\lib -%MAKE% +call %MAKE% if errorlevel 1 goto abort-cd echo. echo Process DRIVERS echo. cd ..\drivers -%MAKE% production +call %MAKE% production if errorlevel 1 goto abort-cd echo. echo Process BOOT +++ echo. cd ..\boot -%MAKE% production +call %MAKE% production if errorlevel 1 goto abort-cd echo. echo Process SYS echo. cd ..\sys -%MAKE% production +call %MAKE% production if errorlevel 1 goto abort-cd echo. echo Process KERNEL + echo. cd ..\kernel -%MAKE% production +call %MAKE% production if errorlevel 1 goto abort-cd cd .. -:- if you like, put some finalizing commands (like copy to floppy) -:- into build2.bat +:- if you like, put finalizing commands (like copy to floppy) into build2.bat + +set XERROR= -if exist build2.bat call build2 +if exist build2.bat call build2.bat echo. echo Processing is done. @@ -104,9 +110,9 @@ goto end :abort-cd cd .. +:noenv :abort echo Compilation was aborted! -set XERROR=1 :end -default clearset +defaults.bat clearset diff -ruNp 0old/buildall.bat 0new/buildall.bat --- 0old/buildall.bat 2004-03-27 01:42:32.0 + +++ 0new/buildall.bat 2004-03-31 13:25:20.0 + @@ -3,62 +3,54 @@ :- $Id$ :-- -:- batch file to build _many_ KERNELS, hope build works +:- batch file to build _many_ KERNELS, hope build works. :- takes 3 minutes on my(TE) Win2K/P700. your milage may vary :-) :-- if %1 == $SUMMARY goto summary -set onerror=if not %%XERROR%% == goto daswarwohlnix +call config.bat +if %LAST% == goto end :* MSCL kernels -call config.bat +if %MSCL8_BASE% == goto no_ms + call build.bat -r msc 386 fat16 +if %XERROR% == call build.bat -r msc 186 fat16 +if %XERROR% == call build.bat -r msc 86 fat16 +if %XERROR% == call build.bat -r msc 386 fat32 +if %XERROR% == call build.bat -r msc 186 fat32 +if %XERROR% == call build.bat -r msc 86 fat32 -if %MS_BASE% == goto no_ms -call build -r msc 386 fat16 -%ONERROR% -call build -r msc 186 fat16 -%ONERROR% -call build -r msc 86 fat16 -%ONERROR% -call build -r msc 386 fat32 -%ONERROR% -call build -r msc 186 fat32 -%ONERROR% -call build -r msc 86 fat32 -%ONERROR% +if not %XERROR% == goto daswarwohlnix :no_ms :* TC 2.01 kernels if %TC2_BASE% == goto no_tc -call build -r tc 186 fat16 -%ONERROR% -call build -r tc86 fat16 -%ONERROR% -call build -r tc 186 fat32 -%ONERROR% -call build -r tc86 fat32 -%ONERROR% + call build.bat -r tc 186 fat16 +if %XERROR% == call build.bat -r tc 86 fat16 +if %XERROR% == call build.bat -r tc 186 fat32 +if %XERROR% == call build.bat -r tc 86 fat32 + +if not %XERROR% == goto daswarwohlnix :no_tc :* (Open) Watcom kernels if %WATCOM% == goto no_wc -call build -r wc386 fat32 -%ONERROR% -call build -r wc386 fat16 -%ONERROR% -call build -r wc 86 fat32 -%ONERROR% -call build -r wc 86 fat16 -%ONERROR% + call build.bat -r wc 386 fat32 +if %XERROR% == call build.bat -r wc 386 fat16 +if %XERROR% == call build.bat -r wc 86 fat32
[Freedos-kernel] patch: batch and make files (description)
Hi! [Don't know what happen, but SF silently ignores/losts my letters. B-E Second day: one was saturday, second was today. Not funny. Below _repost_ of my letter with new patch from today, monday.] New updates for my patches. Because I already remove intermediate files, there present diff file not to my last patch, but to files, as patched by Bart. - buildall.bat, clean.bat: not all DELs was NULed. - config.b: comment for NASM updated by request of Bernd. :) - kernel\makefile: not all individual rules was present (asmsupt.asm), not all dependencies was present (eg, segs.inc for irqstack.asm). - kernel\nls_load.c: removed. PS: config.h also may be removed, because it is dummy (for this only required to remove reference in globals.h). When (and if!) it will be required, it may be added back. PS2: kernel\nls\001-437.hc is desynced with kernel\nls_hc.asm. PS3: header files in globals.h and init-mode.h included in different order. PS4: repeat for my previous question: why to duplicate clean and clobber? Another one: who make files status.me, *.cod, *.las? --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] patch: batch and make files (description)
At least one of your emails was trapped by the SF mail system until I was able to free it this morning. Emails may not be over 40k in length, or else they are held until the list owner (me) accepts or rejects them (a manual process.) -jh Arkady V.Belousov wrote: Hi! [Don't know what happen, but SF silently ignores/losts my letters. B-E Second day: one was saturday, second was today. Not funny. Below _repost_ of my letter with new patch from today, monday.] New updates for my patches. Because I already remove intermediate files, there present diff file not to my last patch, but to files, as patched by Bart. - buildall.bat, clean.bat: not all DELs was NULed. - config.b: comment for NASM updated by request of Bernd. :) - kernel\makefile: not all individual rules was present (asmsupt.asm), not all dependencies was present (eg, segs.inc for irqstack.asm). - kernel\nls_load.c: removed. PS: config.h also may be removed, because it is dummy (for this only required to remove reference in globals.h). When (and if!) it will be required, it may be added back. PS2: kernel\nls\001-437.hc is desynced with kernel\nls_hc.asm. PS3: header files in globals.h and init-mode.h included in different order. PS4: repeat for my previous question: why to duplicate clean and clobber? Another one: who make files status.me, *.cod, *.las? -- _ This email message has been automatically encrypted using ROT-26. --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
[Freedos-kernel] patch: batch and make files
Hi! [Don't know what happen, but SF silently ignores/losts my letters. B-E Second day: one was saturday, second was today. Not funny. Below _repost_ of my letter with new patch from today, monday.] New updates for my patches. Because I already remove intermediate files, there present diff file not to my last patch, but to files, as patched by Bart. - buildall.bat, clean.bat: not all DELs was NULed. - config.b: comment for NASM updated by request of Bernd. :) - kernel\makefile: not all individual rules was present (asmsupt.asm), not all dependencies was present (eg, segs.inc for irqstack.asm). - kernel\nls_load.c: removed. PS: config.h also may be removed, because it is dummy (for this only required to remove reference in globals.h). When (and if!) it will be required, it may be added back. PS2: kernel\nls\001-437.hc is desynced with kernel\nls_hc.asm. PS3: header files in globals.h and init-mode.h included in different order. PS4: repeat for my previous question: why to duplicate clean and clobber? Another one: who make files status.me, *.cod, *.las? --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
[Freedos-kernel] handle 4 defaulting to PRN???
Hi, in the FAQ, somebody claims that file handle 4 should default to PRN: http://fd-doc.sourceforge.net/faq/cgi-bin/viewfaq.cgi?faq=incoming/224 Any idea why this would work at all? And why it works in MS but not in FreeDOS? Used language is C. Eric. --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] handle 4 defaulting to PRN???
Hi, in the FAQ, somebody claims that file handle 4 should default to PRN: http://fd-doc.sourceforge.net/faq/cgi-bin/viewfaq.cgi?faq=incoming/224 Any idea why this would work at all? And why it works in MS but not in FreeDOS? Used language is C. Look at the definitions in stdio.h - stdaux is _iob[3], and stdprn is _iob[4] (Borland uses _streams instead of __iob). The order of these devices in different in MS-DOS and FreeDOS: MS-DOS: CON, AUX, PRN, CLOCK$, A:-D:, COM1, LPT1, LPT2, LPT3, CONFIG$, COM2, COM3, COM4 FreeDOS: CON, PRN, AUX, LPT1, LPT2, COM1, COM2, COM3, COM4, CLOCK$, A:-D: Fortunately, fixing this is very easy. It's enough to swap the corresponding entries in io.asm. Do I need to provide a patch for this? Lucho --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] handle 4 defaulting to PRN???
MS-DOS: CON, AUX, PRN, CLOCK$, A:-D:, COM1, LPT1, LPT2, LPT3, CONFIG$, COM2, COM3, COM4 FreeDOS: CON, PRN, AUX, LPT1, LPT2, COM1, COM2, COM3, COM4, CLOCK$, A:-D: Fortunately, fixing this is very easy. It's enough to swap the corresponding entries in io.asm. Do I need to provide a patch for this? Here it is, below. Now stdaux and stdprn should work as in MS-DOS. Lucho --- io.asm 2003-06-15 16:21:26.0 +0200 +++ io.asm 2004-04-05 20:08:32.0 +0200 @@ -81,33 +81,33 @@ ; global _con_dev _con_devequ $ -dw _prn_dev,LGROUP +dw _aux_dev,LGROUP dw 8013h ; con device (stdin stdout) dw GenStrategy dw ConIntr db 'CON ' ; -; Generic prn device that can be redirected via mode -; -global _prn_dev -_prn_devdw _aux_dev,LGROUP -dw 0A040h -dw GenStrategy -dw PrnIntr -db 'PRN ' - -; ; Generic aux device that can be redirected via mode ; global _aux_dev -_aux_devdw _Lpt1Dev,LGROUP +_aux_devdw _prn_dev,LGROUP dw 8000h dw GenStrategy dw AuxIntr db 'AUX ' ; +; Generic prn device that can be redirected via mode +; +global _prn_dev +_prn_devdw _Lpt1Dev,LGROUP +dw 0A040h +dw GenStrategy +dw PrnIntr +db 'PRN ' + +; ; Printer device drivers ; _Lpt1Devdw _Lpt2Dev,LGROUP --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] handle 4 defaulting to PRN???
Fortunately, fixing this is very easy. It's enough to swap the corresponding entries in io.asm. Do I need to provide a patch for this? Here it is, below. Now stdaux and stdprn should work as in MS-DOS. As always, a patched CVS kernel binary (FAT32, 80386, BC 4.52, aPack) is available in my ROMDSK binary package that can be downloaded at http://linux.tu-varna.acad.bg/~lig/romdsk/romd-bin.rar Lucho --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] handle 4 defaulting to PRN???
Erwin Veermans schreef: Forbidden You don't have permission to access /~lig/romdsk/romd-bin.rar on this server. What am I doing wrong, or should I send some cigars first ? ;-) confirmed. do you compile from source or always work with binaries like I did? latest binary from Jeremy took a while so in a few spare hours on a Sunday afternoon I decided to finally learn how to compile. Bernd --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] handle 4 defaulting to PRN???
Forbidden You don't have permission to access /~lig/romdsk/romd-bin.rar on this server. confirmed. do you compile from source or always work with binaries like I did? Usually I work with the official kernel release (binary). But when time goes by and some interesting patches float by, I grab the daily (used to be nightly ?) kernel tar and compile it with OW. But now I was interested to see what Lucho's combination produced (386, BC, Apack) in terms of size. Erwin latest binary from Jeremy took a while so in a few spare hours on a Sunday afternoon I decided to finally learn how to compile. Bernd --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] handle 4 defaulting to PRN???
Hi Eric, Eric Auer escribió: Hi, in the FAQ, somebody claims that file handle 4 should default to PRN: In my undersanding, handle 4 is stdprn (the other three being stdin, stdout, and stdaux, always using C's notation). So it shoulds sensible that it should point to PRN anyway, isn't it? Aitor --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel