Re: [patch] RFC: Namespace-collision between SIM710 and 53C7,8XX

Richard Hirst (richard@sleepie.demon.co.uk)
Wed, 20 Oct 1999 21:55:23 +0100


On Tue, Oct 19, 1999 at 10:20:30AM +0200, Arjan van de Ven wrote:
> One more request:
> Could you put a line like
>
> /* This file is generated by script_asm.pl from sim710.scr */
>
> as the first line of the output, so that people looking at the file know
> that they are looking at a generated file and also know the name of the
> source?

Not so easy to add the name of the source as the script_asm.pl gets
in on stdin after processing by gcc. The following will add an
"automatically generated" line, which should be enough to prompt
people to look in the makefile.

Applies to 2.2 and 2.3.

Richard

--- linux-2.3.22/drivers/scsi/script_asm.pl- Wed Oct 20 21:50:28 1999
+++ linux-2.3.22/drivers/scsi/script_asm.pl Wed Oct 20 21:48:44 1999
@@ -896,6 +896,7 @@
open (OUTPUT, ">$output") || die "$0 : can't open $output for writing\n";
open (OUTPUTU, ">$outputu") || die "$0 : can't open $outputu for writing\n";

+print OUTPUT "/* DO NOT EDIT - Generated automatically by ".$0." */\n";
print OUTPUT "static u32 ".$prefix."SCRIPT[] = {\n";
$instructions = 0;
for ($i = 0; $i < $#code; ) {

-
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/