Re: [aic7xxx] Spurious recompile with defconfig

Justin T. Gibbs (
Mon, 30 Dec 2002 18:12:49 -0700

>> When compiling aic7xxx in 2.5.53 with defconfig the kernel always
>> recompiles because dependency for reg_print.c is not
>> per default in the aic7xxx Makefile.
>> Simple correction is to make PRETTY_PRINT dependend on BUILD_FIRMWARE.
> There must be some other problem in the Makefile. You can turn on
> reg pretty printing without having to build the firmware as there is
> a "shipped" version of that file. I'll see if I can figure out why the
> re-build is occurring.

The real problem here is that make choses the wrong path for getting
to reg_print.o and, since "intermediate files" were used, those files
are removed once the target is made (See "Chained Rules" in the gmake
info file). From the "make -d" output, for some reason make decides

.o <- .s <- .c <- .c_shipped

is better than

.o <- .c <- .c_shipped

I can't see, from a cursory investigation of the 2.5.X Makefiles
why this happens, but it is certainly anoying. The info pages
indicate that the removal can be avoided by listing these files
as prerequisites to .SECONDARY, but I could only get that to work
by leaving the prerequisites empty (all files are marked secondary).
Of course this is just a workaround for incorrect behavior.
Perhaps someone with more knowledge of the 2.5.X build system could
look into this? That way we can restore the original (and correct)
behvior of the driver's Kconfig files.


- 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