[PATCH] 2.5.38+bk: modversions.h generation

From: Alex Riesen (Alexander.Riesen@synopsys.com)
Date: Thu Sep 26 2002 - 03:43:49 EST


Hi,

The .ver to #include part can be simplified a bit,
if we can assume everyone uses GNU find.

--- linus.linux-2.5/Makefile 2002-09-23 20:01:26.000000000 +0200
+++ v2.5.38+bk/Makefile 2002-09-26 10:34:10.000000000 +0200
@@ -437,9 +437,7 @@
            echo "#define _LINUX_MODVERSIONS_H"; \
            echo "#include <linux/modsetver.h>"; \
            cd .tmp_export-objs >/dev/null; \
- for f in `find modules -name \*.ver -print | sort`; do \
- echo "#include <linux/$${f}>"; \
- done; \
+ find modules -name \*.ver -printf "#include <linux/%p>\\n" | sort; \
            echo "#endif"; \
         ) > $@.tmp; \
         $(update-if-changed)

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



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:26 EST