lkml.org 
[lkml]   [2009]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] kdesu broken
    Date
    > What is needed for a mistake free bisect is a 'doesn't matter as long
    > as it matches' Makefile version that survives all the way through a
    > bisect run.

    I have a wrapper script I use for kernel builds that takes care of that
    (it also supports cross building and building some out-of-tree modules).
    Some snippets from that script below.

    BISECTING=
    if [ -e .git/BISECT_LOG ]; then
    BISECTING=1
    fi
    [...]
    if [ "$BISECTING" ]; then
    # The version in the next line may need updating before a bisect
    sed -i "s/^SUBLEVEL = .*/SUBLEVEL = 31/" Makefile
    sed -i "s/^EXTRAVERSION =.*/EXTRAVERSION = -bisect/" Makefile
    fi
    [...]
    make ...
    [...]
    if [ "$BISECTING" ]; then
    # Revert Makefile to avoid errors on 'git bisect good/bad'
    git checkout Makefile
    fi

    I use the deb-pkg target and also set the .deb package version in the
    second hunk:
    KERNELDEBREVISION=$(grep "^git[- ]bisect" .git/BISECT_LOG | wc -l)

    This way I end up with a nice series of packages whose numbering matches
    the steps in .git/BISECT_LOG:
    linux-image-2.6.31-bisect_1_amd64.deb
    linux-image-2.6.31-bisect_2_amd64.deb
    linux-image-2.6.31-bisect_3_amd64.deb
    ...

    Hope that help.

    Cheers,
    FJP


    \
     
     \ /
      Last update: 2009-07-29 20:31    [W:2.373 / U:0.284 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site