kconfig: Use HOST_OS environment variable in Makefile

Since the root Makefile already provides a HOST_OS
environment variable that is exported by using uname,
make use of it in the Kconfig Makefile.

Change-Id: I13655a5295bbcd9f2fdfa8b6309634c1ab143f70
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2016-09-05 11:37:52 +02:00 committed by Anas Nashif
commit 8081fd3cf8

View file

@ -11,8 +11,7 @@ else
Kconfig := Kconfig
endif
UNAME := $(shell uname)
ifeq (MINGW, $(findstring MINGW, $(UNAME)))
ifeq ($(HOST_OS),MINGW)
HOST_LOADLIBES ?= -lregex
export HOST_LOADLIBES
endif