abinfo "Patching to fix submodule hbb_common build ..."
cd "$SRCDIR"/libs/hbb_common
for i in "$SRCDIR"/autobuild/patches/*.patch.deferred.hbb_common; do
    if [[ -e $i ]]; then
        abinfo "Applying patch $i ..."
        patch -Np1 -t -i "$i"
    fi
done
