DOS: Difference between revisions

From flashrom
Jump to navigation Jump to search
(Created page with "To cross-compile on Linux for DOS: # Get RPMs of the cross compiler from the DJGPP site and install them: *djcross-binutils-2.19.1-10ap.i386.rpm *djcross-gcc-4.3.2-8ap.i686.rpm ...")
 
(Replaced content with "{{#externalredirect: https://www.flashrom.org/dev_guide/building_from_source.html#djgpp-dos }}")
Tag: Replaced
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
To cross-compile on Linux for DOS:
{{#externalredirect: https://www.flashrom.org/dev_guide/building_from_source.html#djgpp-dos }}
 
# Get RPMs of the cross compiler from the DJGPP site and install them:
*djcross-binutils-2.19.1-10ap.i386.rpm
*djcross-gcc-4.3.2-8ap.i686.rpm
*djcrx-2.04pre_20090725-13ap.i386.rpm
 
# Download pciutils 3.1.5 and apply http://assembler.cz/flashrom/pciutils.patch
# Download and compile http://assembler.cz/flashrom/libgetopt/
# Compile pciutils, see README.DJGPP for instructions.
# Enter the flashrom directory.
# ../libpci should contain pciutils source and binaries.
# ../libgetopt should contain getopt.a from libgetopt.
# Run either (change settings where appropriate)
make CC=i586-pc-msdosdjgpp-gcc STRIP=i586-pc-msdosdjgpp-strip OS_ARCH=DOS
or (above settings hardcoded)
make djgpp-dos
You might have to add WARNERROR=no to the make command line.
#To run flashrom.exe, download and unpack
http://homer.rice.edu/~sandmann/cwsdpmi/csdpmi7b.zip and make sure CWSDPMI.EXE is in the current directory.

Latest revision as of 09:15, 26 May 2024