Initial RK1 media-center image project

This commit is contained in:
2026-08-17 18:42:29 +00:00
commit 5fe41e79e9
81 changed files with 5725 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Source-locked replacement for Armbian's rkbin-tools extension. The upstream
# extension follows branch:master, which makes otherwise pinned builds drift.
function fetch_sources_tools__rkbin_tools() {
: "${RK1_MEDIA_RKBIN_URL:?source-lock.env did not set RK1_MEDIA_RKBIN_URL}"
: "${RK1_MEDIA_RKBIN_COMMIT:?source-lock.env did not set RK1_MEDIA_RKBIN_COMMIT}"
fetch_from_repo "${RK1_MEDIA_RKBIN_URL}" "rkbin-tools" "commit:${RK1_MEDIA_RKBIN_COMMIT}"
}
function build_host_tools__install_rkbin_tools() {
cd "${SRC}/cache/sources/rkbin-tools" || exit
if [[ ! -f .commit_id || "$(improved_git rev-parse @ 2>/dev/null)" != "$(< .commit_id)" || ! -f /usr/local/bin/loaderimage ]]; then
display_alert "Installing" "source-locked rkbin tools" "info"
mkdir -p /usr/local/bin/
install -m 0755 tools/loaderimage /usr/local/bin/
install -m 0755 tools/trust_merger /usr/local/bin/
improved_git rev-parse @ 2>/dev/null > .commit_id
fi
}