2.1.1[89] doesn't build if there are no modules

Robert L Krawitz (rlk@tiac.net)
Tue, 31 Dec 1996 10:39:02 -0500


I turn on modules in my kernel build, but I don't normally use them.
That causes make dep to blow out (at least with bash 2.0) because
'*.ver' gets expanded to '*.ver' if there aren't actually any .ver
files.

diff -u -r1.1.1.2 Rules.make
--- Rules.make 1996/12/02 01:21:12 1.1.1.2
+++ Rules.make 1996/12/31 15:36:47
@@ -161,7 +161,7 @@
echo "#ifndef _set_ver";\
echo "#define _set_ver(sym,vers) sym ## _R ## vers";\
echo "#endif";\
- cd $(TOPDIR)/include/linux/modules; for f in *.ver;\
+ cd $(TOPDIR)/include/linux/modules; for f in `ls | grep '\.ver$$'`;\
do echo "#include <linux/modules/$${f}>"; done; \
echo "#undef CONFIG_MODVERSIONS";\
echo "#endif") \

-- 
Robert Krawitz <rlk@tiac.net>		http://www.tiac.net/users/rlk/

Member of the League for Programming Freedom -- mail lpf@uunet.uu.net Tall Clubs International -- http://www.tall.org/ or 1-800-521-2512