I see there is a patchPhase line like this: sed -e 's@/lib/modules/`uname -r`/build@'$MODULES_BUILD_DIR@ \\ -i configure I think there should not be "uname -r", but a name taken from "${kernel}", already in that expression. Thanks, Lluís.