defs.mk, get-os.sh: Define OSTYPE as linux on Linux

The environment variable OSTYPE contains different values
on Linux: Linux on OpenSUSE and linux-gnu on RHEL / CentOS

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-01-30 16:22:58 +00:00
commit 8d30bbf748
2 changed files with 6 additions and 0 deletions

View file

@ -56,6 +56,7 @@ endif
GET_OS_SH ?= /bin/bash $(MOD_SCRIPT_DIR)/get-os.sh
OS ?= $(shell $(GET_OS_SH))
OS_NAME ?= $(shell $(GET_OS_SH) name)
OSTYPE ?= $(shell $(GET_OS_SH) type)
CREATE_DEVEL ?= true
#COMPILER_SUITE ?= clang

View file

@ -122,6 +122,11 @@ cmd_name()
echo ${nv%%-*}
}
cmd_type()
{
echo linux
}
# --- here we go
myname=`basename $0`