Skip to contentSkip to conversation

2.5.38+bk: modversions.h generation

PATCH New Alex Riesen 1 participant 1 message Sep 26, 2002 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.38+bk: modversions.h generation

Hi,

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

Makefile +1 -3
@@ -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"; \
 	) > [email protected]; \
 	$(update-if-changed)