Detect more host name on linux

This commit is contained in:
John Zhao 2018-03-09 14:21:41 +08:00
parent 49c964049d
commit d165b1a734
2 changed files with 8 additions and 2 deletions

View File

@ -82,8 +82,10 @@ else ifeq ($(HOST_OS),Linux)
HOST_NAME := Tegra
else ifneq ($(findstring jetsonbot,$(UNAME_A)),)
HOST_NAME := Tegra
#else ifneq ($(findstring firefly,$(UNAME_A)),)
# HOST_NAME := Firefly
else ifneq ($(findstring firefly,$(UNAME_A)),)
HOST_NAME := Firefly
else ifneq ($(findstring ubuntu,$(UNAME_A)),)
HOST_NAME := Ubuntu
endif
endif

View File

@ -71,6 +71,10 @@ elif [ "$HOST_OS" = "Linux" ]; then
_UNAME_A=$(uname -a)
if _host_contains_ "$_UNAME_A" "tegra\|jetsonbot"; then
HOST_NAME="Tegra"
elif _host_contains_ "$_UNAME_A" "firefly"; then
HOST_NAME="Firefly"
elif _host_contains_ "$_UNAME_A" "ubuntu"; then
HOST_NAME="Ubuntu"
fi
fi