[Freedos-kernel] Kernel build system

2011-04-22 Thread Ibidem
I tried building SVN revision 1569, successfully this time (TC 2 in
dosemu).
But the support for Linux cross-builds did suggest a few things:
1  Could freedos-sys-perl go somewhere in the kernel tree, and could it
just use the standard bootsectors as found therein?
The bootsectors have been updated a few times since it was written.
2.  It's possible to make a blank floppy image like so in Linux:
mkfs.msdos -C bootfd.img 1440
Then mtools could write the kernel, etc over:
mcopy -i bootfd.img kernel.sys ::kernel.sys
etc.
Then install the boot sector.
Could this be added as a make target (make image/make 144)
This would come in particularly handy for automatically preparing OEM
or similar images, or running a buildserver.

Ibidem


--
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
___
Freedos-kernel mailing list
Freedos-kernel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


[Freedos-kernel] Kernel working, not SYS

2011-03-31 Thread Ibidem
I tried building svn revision 1560 with Turbo C 2 and a 16-bit nasm
0.9x (FAT32/186).  It started building, but then when build.bat hit
SYS, I got this:

Error sys.c 629: Expression syntax in function initOptions

I REM'd out SYS (I have a working install and grub4dos), built the
kernel, rebooted, loaded the kernel via grub4dos, and ran a few tests:
SELFOWNT.COM (succeeds, with both messages).
No significant regressions in functionality (VDE/TC/TCC/EDIT/Arachne
work).
HX untested.

SHARE still compiles fine.
The relevant lines in sys.c (starting at 629):

  if (!argv[drivearg][1] || (argv[drivearg][1]==':'  !argv[drivearg][2])) 
// if 1st arg drive 
{
if (!argv[argno][1] || (argv[argno][1]==':'
 !argv[argno][2])) // if 2nd arg drive {
  srcarg = drivearg; /* set source path */
  drivearg = argno;  /* set destination drive */

So the issue is buried a bit...

Ibidem


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Freedos-kernel mailing list
Freedos-kernel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-kernel