win-pvdrivers

view doc/BUILDING_mingw.txt @ 371:f7fa99be363d

update mingw build doc and add diff of w32api changes needed.
author Andy Grover <andy.grover@oracle.com>
date Wed Jul 09 00:35:41 2008 -0700 (2008-07-09)
parents 961762808bab
children f001a0f08c17
line source
1 This driver is buildable using MinGW32. This may be preferable due to licensing
2 reasons to using the Microsoft WDK/DDK.
4 These instructions are for building the driver on a Linux Ubuntu system, using
5 the mingw32msvc cross-compiler.
7 1. sudo apt-get install mingw mingw-binutils mingw-runtime
9 2. mingw-runtime headers need to be modified. Download the latest w32api-src.tar.gz
10 package from mingw.sf.net.
12 3. Untar to a directory.
14 4. Use Mercurial and type:
15 "hg clone http://xenbits.xensource.com/ext/win-pvdrivers.hg"
17 5. Apply the patch "w32api.diff" in the mingw directory to the untarred w32api
18 source: "cd w32api-<version>;patch -p1 < ~/hg/win-pvdrivers.hg/mingw/w32api.diff"
20 6. Type: "./configure i586-mingw32-msvc;make"
22 7. Change to the win-pvdrivers.hg/xenpci dir.
24 8. Modify the W32API_PATH at the top of makefile.mingw to point to the lib/ddk
25 directory of the w32api package compiled above.
27 9. Type: "make -f makefile.mingw"
29 10. Building the shutdown monitor is not supported (maybe using Mono is an option
30 here?)
32 11. This is still an extremely alpha build method, so this will give you a
33 .sys file but you're on your own for the rest!