if ab_match_arch loongarch64; then
    abinfo "Applying LoongArch support patch ..."
    git config --local user.name "AOSC Maintainers"
    git config --local user.email "maintainers@aosc.io"

    git am "$SRCDIR"/autobuild/patches/*.am.loongarch64
    git submodule update --init --recursive
elif ab_match_arch arm64; then
    abinfo "Applying ARM64 support patch ..."
    git config --local user.name "AOSC Maintainers"
    git config --local user.email "maintainers@aosc.io"

    git am "$SRCDIR"/autobuild/patches/*.am.arm64
    git submodule update --init --recursive
fi
