2010-12-03 20:03:19

by Mark Hounschell

[permalink] [raw]
Subject: kernel tree "diff -urN" anomaly?

I start with two clean identical 2.6.36.1 kernel trees (different names
of coarse). I build one of them. I then do a "make clean mrproper" in
the tree I built. Why then does the diff command in the subject line
find the following files changed?

drivers/gpu/drm/radeon/evergreen_reg_safe.h
drivers/gpu/drm/radeon/r100_reg_safe.h
drivers/gpu/drm/radeon/r200_reg_safe.h
drivers/gpu/drm/radeon/r300_reg_safe.h
divers/gpu/drm/radeon/r420_reg_safe.h
drivers/gpu/drm/radeon/r600_reg_safe.h
drivers/gpu/drm/radeon/rn50_reg_safe.h
drivers/gpu/drm/radeon/rs600_reg_safe.h
drivers/gpu/drm/radeon/rv515_reg_safe.h

Thanks
Mark


2010-12-03 20:47:13

by Sam Ravnborg

[permalink] [raw]
Subject: Re: kernel tree "diff -urN" anomaly?

On Fri, Dec 03, 2010 at 02:49:03PM -0500, Mark Hounschell wrote:
> I start with two clean identical 2.6.36.1 kernel trees (different names
> of coarse). I build one of them. I then do a "make clean mrproper" in
> the tree I built. Why then does the diff command in the subject line
> find the following files changed?
>
> drivers/gpu/drm/radeon/evergreen_reg_safe.h
> drivers/gpu/drm/radeon/r100_reg_safe.h
> drivers/gpu/drm/radeon/r200_reg_safe.h
> drivers/gpu/drm/radeon/r300_reg_safe.h
> divers/gpu/drm/radeon/r420_reg_safe.h
> drivers/gpu/drm/radeon/r600_reg_safe.h
> drivers/gpu/drm/radeon/rn50_reg_safe.h
> drivers/gpu/drm/radeon/rs600_reg_safe.h
> drivers/gpu/drm/radeon/rv515_reg_safe.h

Files are generated during the build.
So after you have build your kernel the files are present.
And the Makefile is missing logic to delete the files during "make clean".

Sam

2010-12-03 21:03:32

by Mark Hounschell

[permalink] [raw]
Subject: Re: kernel tree "diff -urN" anomaly?

On 12/03/2010 03:47 PM, Sam Ravnborg wrote:
> On Fri, Dec 03, 2010 at 02:49:03PM -0500, Mark Hounschell wrote:
>> I start with two clean identical 2.6.36.1 kernel trees (different names
>> of coarse). I build one of them. I then do a "make clean mrproper" in
>> the tree I built. Why then does the diff command in the subject line
>> find the following files changed?
>>
>> drivers/gpu/drm/radeon/evergreen_reg_safe.h
>> drivers/gpu/drm/radeon/r100_reg_safe.h
>> drivers/gpu/drm/radeon/r200_reg_safe.h
>> drivers/gpu/drm/radeon/r300_reg_safe.h
>> divers/gpu/drm/radeon/r420_reg_safe.h
>> drivers/gpu/drm/radeon/r600_reg_safe.h
>> drivers/gpu/drm/radeon/rn50_reg_safe.h
>> drivers/gpu/drm/radeon/rs600_reg_safe.h
>> drivers/gpu/drm/radeon/rv515_reg_safe.h
>
> Files are generated during the build.
> So after you have build your kernel the files are present.
> And the Makefile is missing logic to delete the files during "make clean".
>

OK, broken Makefile then

Thanks
Mark