[coreboot] [PATCHES]: coreboot-v2 on win32 / mingw

Patrick Georgi patrick at georgi-clan.de
Sat Nov 21 13:51:37 CET 2009


Hi,

attached patches make the emulation/qemu-x86 target build with kconfig 
on mingw.
It also requires python in the path (for sconfig), and other boards 
might fail unless perl is around.

Specifically:

20091121-1-cbfstool-on-win32:
* The LZMA code in cbfstool used a Win2003+ flag. It's merely an advice 
and our workloads aren't very large, so kill this, to make the tree work 
on Windows XP.
* Implement ntohl/htonl. Less overhead than importing winsock2 (which 
would actually call functions for them, too, instead of defining them)

20091121-2-kconfig-on-win32:
Basically what already happened in serialice:
* work around the uname use
* a copy of libregex, for cases where libc doesn't provide it
* before rename()ing files, unlink the target. Win32 wants it that way 
(losing atomicity)
* Makefile support for building and linking in libregex if necessary 
(ie. on mingw)

20091121-3-romcc-on-win32:
Basically what already happened in serialice:
* Use fopen/fseek/ftell/fread/fclose instead of open/stat/read/close
* Handle \{CR}{LF} properly
* Handle absolute paths on Win32 (X:\ or X:/ prefixes) properly
* Don't free() block, as it's read sometimes later. Windows guards 
against this

20091121-4-build_opt_tbl-on-win32:
* Implement a crude mkstemp implementation for win32. Good enough to 
have multiple such files open in parallel, not good enough if security 
is relevant.
* Unlink targets before renaming files. Loses atomicity, but makes it 
work on win32

20091121-5-xcompile-on-win32:
* Alternative handling for mktemp(1) (fixed filename)
* Drop use of dd(1)

20091121-6-use-relative-paths-in-ldscript-and-crt0_includes:
* Use relative paths in ldscript.ld and crt0_includes.h

20091121-7-toplevel-Makefile-on-win32:
* Handle CRLF in the awk snippet that generates ldoptions
* Remove old code that was replaced by awk script a _long_ time ago
* Add stack size linker option for romcc on mingw and cygwin

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>


Patrick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20091121-1-cbfstool-on-win32
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091121/1523cf87/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20091121-2-kconfig-on-win32
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091121/1523cf87/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20091121-3-romcc-on-win32
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091121/1523cf87/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20091121-4-build_opt_tbl-on-win32
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091121/1523cf87/attachment-0003.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20091121-5-xcompile-on-win32
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091121/1523cf87/attachment-0004.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20091121-6-use-relative-paths-in-ldscript-and-crt0_includes
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091121/1523cf87/attachment-0005.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20091121-7-toplevel-Makefile-on-win32
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091121/1523cf87/attachment-0006.ksh>


More information about the coreboot mailing list