• Andrew Morton's avatar
    [PATCH] kbuild: fix usage with directories containing '.o' · 2e83d38a
    Andrew Morton authored
    From: Sam Ravnborg <sam@ravnborg.org>
    
    From: Daniel Mack <daniel@zonque.org>, me
    
    modpost unconditionally searched for ".o" assuming this is always the
    suffix of the module.  This fails in two cases:
    
    a) when building external modules where any directory include ".o" in
       the name.  One example is a directory named: .../cvs.alsa.org/...
    
    b) when someone names a kernel directory so it contains ".o".  One
       example is drivers/scsi/aic.ok/...
    
    case b) was triggered by renaming the directory for aic7xxx, and modifying
    Makefile and Kconfig.  This caused make modules to fail.
    2e83d38a
modpost.c 12.9 KB