don't barf if Modules.symvers doesn't exist
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 12 Jul 2004 01:28:10 +0000 (01:28 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 12 Jul 2004 01:28:10 +0000 (01:28 +0000)
m4/as-modtool.m4

index 9c417b49098a305f19ad32e530bc86a80afb697a..7d529671d99955eea87670b800c9dcae5da3bb36 100644 (file)
@@ -89,8 +89,8 @@ case \$mode in
                echo \$LINUX_LD -r -o .mods/\$target.o \$[*]
                \$LINUX_LD -r -o .mods/\$target.o \$[*]
 
-               echo "cat \$LINUX_DIR/Module.symvers \$SYMVERS_INCLUDES >.mods/symvers.tmp"
-               cat \$LINUX_DIR/Module.symvers \$SYMVERS_INCLUDES >.mods/symvers.tmp
+               echo "cat \$LINUX_DIR/Module.symvers \$SYMVERS_INCLUDES >.mods/symvers.tmp || touch .mods/symvers.tmp"
+               cat \$LINUX_DIR/Module.symvers \$SYMVERS_INCLUDES >.mods/symvers.tmp || touch .mods/symvers.tmp
 
                echo "\$LINUX_MODPOST -o .mods/\$target.o.symvers.tmp -i .mods/symvers.tmp \$target.o"
                \$LINUX_MODPOST -o .mods/\$target.o.symvers.tmp -i .mods/symvers.tmp .mods/\$target.o