diff --git a/Makefile.buildtests b/Makefile.buildtests
index 8bd4d801b125efd06f7abcaccbb92109cac9316d..4781c2c691255d3b619f71d7106e4cd7f9eeab55 100644
--- a/Makefile.buildtests
+++ b/Makefile.buildtests
@@ -31,8 +31,6 @@ endif
         info-buildsizes-diff info-build info-boards-supported \
         info-features-missing info-boards-features-missing
 
-OS := $(shell uname)
-
 buildtest:
 	@ \
 	BUILDTESTOK=true; \
diff --git a/Makefile.include b/Makefile.include
index c0cd6757b909ae32185f48bf8233b93a47055ad3..11f488851a44ef4595d34532018191d38719eb1b 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -21,6 +21,9 @@ COLOR_RED    :=
 COLOR_PURPLE :=
 COLOR_RESET  :=
 COLOR_ECHO   := /bin/echo
+
+OS := $(shell uname)
+
 ifeq (, ${JENKINS_URL})
   ifeq (0,  $(shell tput colors 2>&1 > /dev/null; echo $$?))
     COLOR_GREEN  := \033[1;32m