[PATCH] 2.2.x Detect old version of genksyms -- modified

Steve Dodd (dirk@loth.demon.co.uk)
Thu, 7 Jan 1999 20:06:25 +0000


--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii

Hi all,

Michael Elizabeth Chastain suggested a change to my patch to make the error
message a bit more detailed, and I've implemented it.

As it is only a handful of lines and seems fairly fool-proof might I suggest
its inclusion? I reckon anything that helps reduce the number of false bug
reports & 'RTFM' responses on linux-kernel might be helpful.. it helps the
user as well, of course :) Anyone have any comments? Alan? Linus?

Cheers,
Steve

PS The lag time on linux-kernel-digest seems quite long - is it much better
on the main list?

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="2.2.0-pre4-genksyms.patch"

--- vanilla/Makefile Sun Jan 3 17:23:00 1999
+++ linux/Makefile Thu Jan 7 19:55:46 1999
@@ -397,7 +397,7 @@
sums:
find . -type f -print | sort | xargs sum > .SUMS

-dep-files: scripts/mkdep archdep include/linux/version.h
+dep-files: scripts/mkdep archdep include/linux/version.h new-genksyms
scripts/mkdep init/*.c > .depend
scripts/mkdep `find $(FINDHPATH) -follow -name \*.h ! -name modversions.h -print` > .hdepend
# set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i fastdep ;done
@@ -407,7 +407,19 @@
MODVERFILE :=

ifdef CONFIG_MODVERSIONS
+
MODVERFILE := $(TOPDIR)/include/linux/modversions.h
+
+new-genksyms:
+ @$(GENKSYMS) -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) </dev/null \
+ 2>/dev/null || ( echo -e "\nYou need a new version of the genksyms\
+ program, which is part of\nthe modutils package. Please read the file\
+ Documentation/Changes\nfor more information.\n"; exit 1 )
+
+else
+
+new-genksyms:
+
endif

depend dep: dep-files $(MODVERFILE)

--AhhlLboLdkugWU4S--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/