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

Commit e78e740a authored by Jackeagle's avatar Jackeagle Committed by Jackeagle
Browse files

build.sh: Introduce conditional REPO_GROUPS variable to dynamically manage repo groups.

- Starting from Android 14 since ELF check is enforced, vendor repos require its device repos.
- If android_version_major is 14 or above then, REPO_GROUPS includes muppets for the specific device.
parent 8be7d58d
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -172,7 +172,16 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then
    git checkout default.xml
    cd ../..
  fi
  yes | repo init $REPO_INIT_PARAM -u "$REPO" -b "${TAG_PREFIX}${BRANCH_NAME}"

  # Set the REPO_GROUPS variable based on the android_version_major
  if [ "$android_version_major" -ge 14 ]; then
    REPO_GROUPS="-g default,-darwin,-muppets,muppets_$DEVICE"
  else
    REPO_GROUPS=""
  fi

  # Repo init source
  yes | repo init $REPO_INIT_PARAM -u "$REPO" -b "${TAG_PREFIX}${BRANCH_NAME}" $REPO_GROUPS

  if [ "$REPO_CUSTOM_MANIFEST" != false ]; then
    wget -O .repo/manifests/default.xml $REPO_CUSTOM_MANIFEST