diff options
-rw-r--r-- | Config.in | 8 | ||||
-rwxr-xr-x | config/check-uname.sh | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -13,6 +13,14 @@ config HAVE_DOT_CONFIG bool default y +HOST_OS := $(shell, uname) + +config HOST_OS_LINUX + def_bool $(shell, ./config/check-uname.sh Linux) + +config HOST_OS_MACOS + def_bool $(shell, ./config/check-uname.sh Darwin) + source "target/Config.in" source "config/Config-images.in" diff --git a/config/check-uname.sh b/config/check-uname.sh new file mode 100755 index 0000000000..1f1bf9ee07 --- /dev/null +++ b/config/check-uname.sh @@ -0,0 +1 @@ +[ "$(uname)" = "$1" ] && echo y || echo n |