• Andrew Morton's avatar
    [PATCH] kbuild: fix modpost when used with O= · 4a116813
    Andrew Morton authored
    From: Sam Ravnborg <sam@ravnborg.org>
    
    modpost or to be more specific sumversion.c was not behaving correct when
    used with O= and MODULE_VERSION was used.  Previously it failed to use
    local .h when calculation the md-sum in case of a O= build.
    
    The following patch introduces the following:
    
    - A generic get_next_line()
    
    - Check that the topmost part of the directory matches
    
    - Using strrch when checking for file with suffix .o
    
    - Use NOFAIL for allocations in sumversion
    
    - Avoid memory leak in new_module
    
    The generic get_next_line will pay off when Andreas implmentation of
    storing symbol addresses in a seperate file is introduced.
    4a116813
modpost.c 13.4 KB