• Randy Dunlap's avatar
    scripts/patch-kernel: use EXTRAVERSION · a2c665b0
    Randy Dunlap authored
    Update 'scripts/patch-kernel' to support EXTRAVERSION.
    Update usage message text.
    Fix some whitespace.
    Handle command line arg3 (stop-version) more carefully.
    No changes to -ac patch updates.
    
    EXTRAVERSION handling:
    any leading '.' and any trailing modifier (beginning with any
    punctuation, like "-ac" or "_kexec" or "+mm") are stripped,
    trying to get down to just a number.
    Then 'patch-kernel' increments EXTRAVERSION as long as it can
    apply "patch-V.P.S.X*".  When that file isn't found, it resets
    EXTRAVERSION to "" and increments SUBLEVEL (as before this patch).
    
    Works for me.
    Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
    a2c665b0
patch-kernel 7.43 KB