At Thu, 04 Dec 2003 11:35:32 +0100 (MET),
Clemens Ladisch wrote:
> 
> 
> Is there a reason that the makefile rule below prevents creating .ver
> files if there is a .c file with exports in the kernel with the same
> name?  (this happens for ac97_codec.c and sb_common.c)

this is to avoid conflict of definitions in kernel's ver files, which
happens with linux-2.5.x before the new module-tools and suse
kernels.

the attached patch should fix the rebuild problem.


Takashi
Index: alsa-driver/Rules.make
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/Rules.make,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- alsa-driver/Rules.make      11 Nov 2003 13:09:46 -0000      1.32
+++ alsa-driver/Rules.make      4 Dec 2003 10:52:47 -0000       1.33
@@ -273,6 +273,7 @@
                | $(GENKSYMS) $(genksyms_smp_prefix) > [EMAIL PROTECTED]; \
                if [ -r $@ ] && cmp -s $@ [EMAIL PROTECTED]; then echo $@ is 
unchanged; rm -f [EMAIL PROTECTED]; \
                else echo mv [EMAIL PROTECTED] $@; mv -f [EMAIL PROTECTED] $@; fi; \
+               elif [ ! -r $@ ]; then touch $@; \
                fi; \
        fi; touch $(MODINCL)/$(MODPREFIX)$*.stamp
 

Reply via email to