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

Commit 6dc1905b authored by Jackeagle's avatar Jackeagle
Browse files

build_kernel: Filter muppets repo groups during kernel sync

When proprietary_gitlab.xml exists in local manifests, add repo group
filtering to exclude unrelated muppets repos from the kernel source
sync. This prevents sync failures for vendor repos that don't have
the kernel manifest branch.
parent 5436a227
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -983,6 +983,9 @@ function build_kernel() {
        if [ -n "${REPO_VERSION}" ]; then
            repo_init_args+=("--repo-rev" "${REPO_VERSION}")
        fi
        if [ -f "${ANDROID_BUILD_TOP}/.repo/local_manifests/proprietary_gitlab.xml" ]; then
            repo_init_args+=("-g" "default,-darwin,-muppets,muppets_${LINEAGE_BUILD}")
        fi

        yes | repo init -u https://github.com/LineageOS/${target_kernel_manifest}.git ${repo_init_args[@]} || [ $? -eq 141 ]
        if [ $? -ne 0 ]; then