Skip to content

Commit c42597d

Browse files
committed
Exclude end-of-support boards from armbian-images.json
Load .eos board configs so their support level is known, then skip them during JSON generation so EOS boards no longer appear in the download index.
1 parent e5e7ebc commit c42597d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

scripts/generate-armbian-images-json.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ while IFS= read -r cfg; do
8585
fi
8686
done < <(
8787
find "$BOARD_DIR" -maxdepth 1 -type f \
88-
\( -name "*.conf" -o -name "*.csc" -o -name "*.wip" -o -name "*.tvb" \) \
88+
\( -name "*.conf" -o -name "*.csc" -o -name "*.wip" -o -name "*.tvb" -o -name "*.eos" \) \
8989
| sort
9090
)
9191

@@ -580,6 +580,9 @@ cat "$tmpdir/a.txt" "$tmpdir/bcd.txt" >"$feed"
580580
[[ -z "$BOARD" ]] && continue
581581
BOARD_SLUG="${BOARD,,}"
582582

583+
# Skip end-of-support boards
584+
[[ "${BOARD_SUPPORT_MAP[$BOARD_SLUG]:-}" == "eos" ]] && continue
585+
583586
REPO="$(get_download_repository "$URL")"
584587
[[ -z "$REPO" ]] && continue
585588

@@ -757,6 +760,11 @@ cat "$tmpdir/a.txt" "$tmpdir/bcd.txt" >"$feed"
757760
reusable_promoted=true
758761
fi
759762

763+
# Skip end-of-support reusable boards
764+
if [[ "${reusable_support,,}" == "eos" ]]; then
765+
continue
766+
fi
767+
760768
# Output for reusable board
761769
echo "${reusable_slug}|${reusable_name}|${reusable_vendor}|${reusable_support}|${reusable_c_name}|${reusable_c_web}|${reusable_c_logo}|${VER}|${FILE_URL}|${reusable_asc}|${reusable_sha}|${reusable_tor}|${reusable_redi_url}|${reusable_redi_url}.asc|${reusable_redi_url}.sha|${reusable_redi_url}.torrent|${IMAGE_SIZE}|${DATE}|${DISTRO}|${BRANCH}|${VARIANT}|${APP}|${reusable_promoted}|${REPO}|${FILE_EXTENSION}|${KERNEL_VERSION}|${reusable_plat}|${reusable_plat_expired}|${reusable_plat_until}"
762770
fi

0 commit comments

Comments
 (0)