From: Michel Daenzer Date: Thu, 7 Aug 2003 10:13:50 +0000 (+0000) Subject: build fix for kernels >= 2.6 X-Git-Tag: submit/1.0/20121108.012404~2258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7944efc4550416ee53e2f570f759d4e6078834b;p=profile%2Fivi%2Flibdrm.git build fix for kernels >= 2.6 --- diff --git a/linux-core/Makefile.kernel b/linux-core/Makefile.kernel index 5f79e43..e5abd4d 100644 --- a/linux-core/Makefile.kernel +++ b/linux-core/Makefile.kernel @@ -23,7 +23,7 @@ BELOW25 := $(shell if [ $(PATCHLEVEL) -lt 5 ]; then echo y; fi) # There were major build changes starting with 2.5.52 ifneq ($(BELOW25),y) -BELOW2552 := $(shell if [ $(SUBLEVEL) -lt 52 ]; then echo y; fi) +BELOW2552 := $(shell if [ $(PATCHLEVEL) -eq 5 -a $(SUBLEVEL) -lt 52 ]; then echo y; fi) else BELOW2552 := y endif diff --git a/linux/Makefile.kernel b/linux/Makefile.kernel index 5f79e43..e5abd4d 100644 --- a/linux/Makefile.kernel +++ b/linux/Makefile.kernel @@ -23,7 +23,7 @@ BELOW25 := $(shell if [ $(PATCHLEVEL) -lt 5 ]; then echo y; fi) # There were major build changes starting with 2.5.52 ifneq ($(BELOW25),y) -BELOW2552 := $(shell if [ $(SUBLEVEL) -lt 52 ]; then echo y; fi) +BELOW2552 := $(shell if [ $(PATCHLEVEL) -eq 5 -a $(SUBLEVEL) -lt 52 ]; then echo y; fi) else BELOW2552 := y endif