summaryrefslogtreecommitdiff
path: root/Config.in
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-10-27 11:47:52 +0200
committerFelix Fietkau <nbd@nbd.name>2021-11-01 16:37:52 +0100
commit2d5b83197a2035b95efdd954f086f099b67ae139 (patch)
tree199e31c2fc02fdfcf94ebb739744d732da28f68a /Config.in
parenta44e4aaef9e5418929f0f3df6ee5ba5643c2751e (diff)
downloadopenwrt-2d5b83197a2035b95efdd954f086f099b67ae139.tar.gz
build: add HOST_OS_LINUX and HOST_OS_MACOS config symbols
This can be used to simplify host os tests in various places Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index 546e8249cc..65b6dd86aa 100644
--- a/Config.in
+++ b/Config.in
@@ -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"