From 02018a8da14e664f1323c356ad563da3c6c42a32 Mon Sep 17 00:00:00 2001 From: Jonathan Senkerik Date: Thu, 4 Jun 2015 12:55:54 -0400 Subject: [PATCH] Fix Makefile to correctly identify RHEL 5.X. Was incorrectly identifying CentOS Linux release 7.1.1503 as RHEL5 and would fail to compile. --- Driver/enhanceio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Driver/enhanceio/Makefile b/Driver/enhanceio/Makefile index 1172783..eb95308 100644 --- a/Driver/enhanceio/Makefile +++ b/Driver/enhanceio/Makefile @@ -8,7 +8,7 @@ KERNEL_TREE ?= /lib/modules/$(KERNEL_SOURCE_VERSION)/build EXTRA_CFLAGS += -I$(KERNEL_TREE)/drivers/md -I./ -DCOMMIT_REV="\"$(COMMIT_REV)\"" EXTRA_CFLAGS += -I$(KERNEL_TREE)/include/ -I$(KERNEL_TREE)/include/linux # Check for RHEL/CentOS -RHEL5_VER ?= $(shell if [ -e /etc/redhat-release ]; then grep 5.[0-9] /etc/redhat-release; else false; fi) +RHEL5_VER ?= $(shell if [ -e /etc/redhat-release ]; then grep " 5\.[0-9]" /etc/redhat-release; else false; fi) RHEL5_SETUP := ifneq "$(RHEL5_VER)" "" RHEL5_SETUP := rhel5-setup