Márton Miklós has posted comments on this change. ( https://review.coreboot.org/23865 )
Change subject: Fixed mingw detection on Windows 7 (NT-6.1) and hopefully in another non XP Windows build environments too. ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/23865/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/#/c/23865/1//COMMIT_MSG@7 PS1, Line 7: Sure: This patch utilizes a regular expression to check if we are compiling under mingw environment rather than comparing the uname output to a predefined string (MINGW32_NT-5.1). In newer Windows based mingw enviroments the uname returns different version number so the platform will not be detected properly and the compilation will fail.
I have tested it only on Windows 7 (where the uname returns INGW32_NT-6.1), however the regex should match the MINGW64 environments too see: https://regexr.com/3lgp9