227 |
231 |
228 # We do not want people accidentally building on old systems (e.g. Linux 2.2.x, |
232 # We do not want people accidentally building on old systems (e.g. Linux 2.2.x, |
229 # Solaris 2.5.1, 2.6). |
233 # Solaris 2.5.1, 2.6). |
230 # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok. |
234 # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok. |
231 |
235 |
232 SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% |
236 SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4% |
233 OS_VERSION := $(shell uname -r) |
237 OS_VERSION := $(shell uname -r) |
234 EMPTY_IF_NOT_SUPPORTED = $(filter $(SUPPORTED_OS_VERSION),$(OS_VERSION)) |
238 EMPTY_IF_NOT_SUPPORTED = $(filter $(SUPPORTED_OS_VERSION),$(OS_VERSION)) |
235 |
239 |
236 check_os_version: |
240 check_os_version: |
237 ifeq ($(DISABLE_HOTSPOT_OS_VERSION_CHECK)$(EMPTY_IF_NOT_SUPPORTED),) |
241 ifeq ($(DISABLE_HOTSPOT_OS_VERSION_CHECK)$(EMPTY_IF_NOT_SUPPORTED),) |