aboutsummaryrefslogtreecommitdiff
path: root/target/mips/translate.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-07-13 14:28:57 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-07-13 14:28:57 +0100
commitf06cc5a28c2052e79291aa37fdc7fa317e0c08ca (patch)
tree016d57a8228202bd3daf35e8b881adb734dc1b9f /target/mips/translate.c
parentf0d2ead97cddf622a0478086886cc70a8ed6aeaf (diff)
configure: Never use 'uname' to identify target OSno-uname
For a very long time we have used 'uname -s' as our fallback if we don't identify the target OS using a compiler #define. This obviously doesn't work for cross-compilation, and we've had a comment suggesting we fix this in configure for a long time. Since we now have an exhaustive list of which OSes we can run on (thanks to commit 898be3e0415 making an unrecognized OS be a fatal error), we know which ones we're missing. Add check_define tests for the remaining OSes we support. The defines checked are based on ones we already use in the codebase for identifying the host OS (with the exception of GNU/kFreeBSD). We can now set bogus_os immediately rather than doing it later. We leave the comment about uname being bad untouched, since there is still a use of it for the fallback for unrecognized host CPU type. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/mips/translate.c')
0 files changed, 0 insertions, 0 deletions