On Mon, 16 Mar 2015 21:02:28 +0000 (UTC) Topolinux <[email protected]> wrote:
> You wrote about cross-compiling flashrom for Windows, maybe that is more easy > than compiling on a Windows system, which could be one solution. > By reading http://flashrom.org/Windows page seems to me cross-compiling on > Linux for Windows is more complicated though. > If it isn't too much trouble could you please describe how do the job? > I mean a description of your MinGW installation and the exact commands issued. > Instructions on the site say > $ cd flashrom > $ make > are enough in order to compile under Windows. > Instead on Linux for Windows you need > $ make CC=i586-mingw32msvc-gcc CPPFLAGS="-I.../libusb-headers/ > -I.../libftdi-headers/" LDFLAGS="-L.../libusb-static/ -L.../libftdi-static/" > If it could be possible to see a real life example I think it would be of > much help. > Another thing. > In your example you compile with "i686" option while in the instructions on > the flashrom Windows site it's used the "i586". > Compiling by > $ cd flashrom > $ make > there isn't any of the two options, so which option will be used in order to > compile? I have updated the section in the wiki but it does not include more information than I gave you in my previous email. You are right that the compile command for cross-compiling is more complicated (of course it is... all build systems default to a native build usually, so to get a non-native build one have to supply some arguments :). With the last flashrom release I have simplified the required parameter(s) though, see the wiki: http://flashrom.org/Windows#Building_.28cross-compiling.29_flashrom_on_Linux_for_Windows_using_MinGW The command itself is also no indication of the difficulty to set up the build environment... most work should already be done before issuing that command! -- Kind regards/Mit freundlichen Grüßen, Stefan Tauner _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
