Makefile reminder to build in 2.6 when on 2.6
authorJon Smirl <jonsmirl@yahoo.com>
Fri, 24 Sep 2004 04:21:21 +0000 (04:21 +0000)
committerJon Smirl <jonsmirl@yahoo.com>
Fri, 24 Sep 2004 04:21:21 +0000 (04:21 +0000)
linux-core/Makefile
linux/Makefile

index 4133942..c82be8f 100644 (file)
@@ -172,6 +172,10 @@ endif
 
 endif
 
+ifeq ($(findstring 2.4,$(RUNNING_REL)),)
+$(error Building 2.4 version on $(RUNNING_REL))
+endif
+
 CLEANCONFIG := $(shell if cmp -s $(LINUXDIR)/.config .config; then echo y; fi)
 ifeq ($(CLEANCONFIG),y)
 CLEANFILES += $(LINUXDIR)/.config .config $(LINUXDIR)/tmp_include_depends
index 4133942..c82be8f 100644 (file)
@@ -172,6 +172,10 @@ endif
 
 endif
 
+ifeq ($(findstring 2.4,$(RUNNING_REL)),)
+$(error Building 2.4 version on $(RUNNING_REL))
+endif
+
 CLEANCONFIG := $(shell if cmp -s $(LINUXDIR)/.config .config; then echo y; fi)
 ifeq ($(CLEANCONFIG),y)
 CLEANFILES += $(LINUXDIR)/.config .config $(LINUXDIR)/tmp_include_depends