[lkml]   [2001]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Cleanup kbuild for aic7xxx
On Mon, 25 Jun 2001 12:22:29 -0600, 
"Justin T. Gibbs" <> wrote:
>Keith Owens wrote:
>>(2) Generated files must not be overwritten in place.
>> When "gen" is shipped and also overwritten in place then anybody
>> who regenerates the file (for whatever reason) runs the risk of
>> spurious differences appearing in their patches. Particularly when
>> the generating process depends on tools which can vary from one
>> user to another.
>I think this is the crux of our where we disagree. The generated file
>in this case should only be overwritten by those developing the driver.
>We've already agreed that the mechanism used in 6.1.5 of the aic7xxx
>driver (always regenerage) cannot work. Therefore the predominant
>case, and in my opinion the only case you need to concern yourself with,
>is building the kernel from the vendor generated file.
>In this scenario, I would argue that overwriting the files in place
>is the correct strategy. For the developer that choses to build
>the firmware, timestamp based "up to date" behavior is correct,
>the last firmware file you've generated/tested is already in the correct
>place for generating patches, and, as a developer, you understand
>how to use your revision control software so the fact that this file
>is generated is not a concern.

I think you are missing an important point. Once the developer issues
a patch, that patch becomes part of everyone's source tree. So
_everyone_ ends up changing the generated files, at which point they
run into the timestamp and source repository problems. Overwriting in
place works for the developer but it causes problems for the rest of
the world. The rest of the world can never guarantee that their
timestamps match the developer's timestamps, in fact you can almost
guarantee that they don't.

Any timestamp check in kbuild is unreliable when generated files are
shipped and then updated in place, even if nobody except the
maintainer ever changes the generated file. Distributing a patch has
exactly the same effect on timestamps as changing the generated file.

You want timestamp checks for aic7xxx firmware, but including those
checks in kbuild will hit everyone else the moment they apply your
latest patch. We either fix the dependency problem so it works for
everyone or we remove all dependency checking on aic7xxx firmware
generation. Fixing the problem for everyone is my preferred option
because it gives better support for people working on the firmware.
Timestamps on generated and shipped files cannot reliably detect if
"base" and "gen" are in sync or not, hence the use of md5sum.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:55    [W:0.232 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site