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

Commit e4b4305c authored by Jackeagle's avatar Jackeagle
Browse files

Add parallel worker threads to OTA generation

Use -t $(nproc) flag for ota_from_target_files to utilize all CPU cores
during payload generation phase.
parent 2d443a98
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -443,7 +443,7 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then


        # Generate OTA zip
        # Generate OTA zip
        echo ">> [$(date)] Generating OTA zip from target-files-package"
        echo ">> [$(date)] Generating OTA zip from target-files-package"
        ota_from_target_files --backup=true "${SIGN_KEY[@]}" "$OUT/$TARGET_FILES" \
        ota_from_target_files --backup=true -t $(nproc) "${SIGN_KEY[@]}" "$OUT/$TARGET_FILES" \
          "$OUT/$E_VERSION"
          "$OUT/$E_VERSION"


        if [ ! -f "$OUT/$E_VERSION" ]; then
        if [ ! -f "$OUT/$E_VERSION" ]; then