[LinuxBIOS] PATCH: cygwin compilation of LinuxBIOS

Steven J. Magnani steve at digidescorp.com
Thu Sep 8 22:05:34 CEST 2005

I'm starting to merge my source tree into the mainline. Ultimately this
will include support for Intel's E7501 Xeon development kit, including
the ICH3-S southbridge and the SMSC LPC47B272 Super I/O chips. Where my
changes touch existing code, I'm sending out patches for review first.

Constructive comments welcomed!

One point about cygwin (cross-)compilation, for the record: both
cmos.options and util/newconfig/config.g must be in UNIX (\n) format.
The build fails if they are in DOS (\r\n) format. If you download the
source with something like TortoiseSVN, text files arrive in DOS format
and these particular files need to be run through dos2unix.



Modifications for building LinuxBIOS under cygwin.
Remove unnecessary #include that prevents build_opt_tbl from
cross-compiling with gcc 3.4.3.
Add wildcards to 'clean' rules so executables ending in .exe get
Added nrv2b to the list of files that are cleaned.

--- util/options/build_opt_tbl.c.orig	2005-09-08 13:36:06.156250000
+++ util/options/build_opt_tbl.c	2005-09-08 14:17:28.875000000
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdlib.h>
-#include <sys/io.h>
 #include <string.h>
 #include <ctype.h>
 #include <errno.h>
--- src/config/Config.lb.orig	2005-09-08 14:41:03.953125000 -0500
+++ src/config/Config.lb	2005-09-08 14:36:47.734375000 -0500
@@ -153,9 +153,9 @@
 	action	"rm -f linuxbios"
 	action	"rm -f ldscript.ld"
 	action	"rm -f a.out *.s *.l *.o *.E *.inc"
-	action	"rm -f TAGS tags romcc"
-	action	"rm -f docipl buildrom chips.c *chip.c linuxbios_ram*
-	action	"rm -f build_opt_tbl option_table.c crt0.S"
+	action	"rm -f TAGS tags romcc*"
+	action	"rm -f docipl buildrom* chips.c *chip.c linuxbios_ram*
+	action	"rm -f build_opt_tbl* nrv2b* option_table.c crt0.S"
 # do standard config files that the user need not specify

More information about the coreboot mailing list