Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bad6a409 authored by Nicolas Palix's avatar Nicolas Palix Committed by Michal Marek
Browse files

Coccinelle: Fix patch output when coccicheck is used with M= and C=



When the M variable is used, the -patch option should be given
to spatch. This patch fixes the case where C is used.

Signed-off-by: default avatarNicolas Palix <nicolas.palix@imag.fr>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent ed621cc4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -29,10 +29,14 @@ else
    if [ "$KBUILD_EXTMOD" = "" ] ; then
        OPTIONS="-dir $srctree $COCCIINCLUDE"
    else
        OPTIONS="-dir $KBUILD_EXTMOD -patch $srctree $COCCIINCLUDE"
        OPTIONS="-dir $KBUILD_EXTMOD $COCCIINCLUDE"
    fi
fi

if [ "$KBUILD_EXTMOD" != "" ] ; then
    OPTIONS="-patch $srctree $OPTIONS"
fi

if [ ! -x "$SPATCH" ]; then
    echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
    exit 1