- Extend 0012 standby optimizations with removable-SD-only MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE in sdhci-msm, proxy mem clock and BIMC XO re-parenting + 0x45000 BIT(2) early-vote clear in qcom_q6v5_mss / gcc-msm8909, 100 MHz opp-99999975 floor across qcom-msm8909.dtsi and all 6 device DTS/DTBs, disabled-by-default Bluetooth with bt_enabled persistence, NM ipv6.method=ignore + standby wlan0/disable_ipv6 muting, and post-park DSDS signal hysteresis - Add ABI-preserving system-core keypad debouncer patch 0014 (drivers/input/input.c key_debounce_ms + pm8941-pwrkey press/release chatter holdoff), replace ignored col-scan-delay-ms with col-scan-delay-us = <0x32> and raise DT debounce intervals across all 6 DTS/DTBs, configure per-target key_debounce_ms at boot and xset r rate 300 25, and add C/DTS verification in scripts/test-keypad-debouncer.py - Isolate Nokia 8000 4G (nokia-sparkler / nokia-leo) media playback from the shared 157 Hz SPK_DRV vibrator channel via dynamic Speaker-only filtering in music.so, files.so, and ringtones.so, explicit RX3/SPK mixer zeroing on Earpiece/Headphones/Bluetooth routes in sxmo_audio.sh and preview plugins, and Sparkler/Leo-only /etc/mpv/mpv.conf provisioning - Register upcoming build a1125 (ampere) in scripts/version.sh, scripts/check-rebuild.sh, AGENTS.md, and CHANGELOG.md, fix --for-rebuild pre-rebuild stale output checks in check-rebuild.sh/test-cover-dt.py, rebuild vmlinuz/DTBs/plugins and all 4 --mkinitfs target images stamped a1125 (ampere), and pin their verified SHA-256 checksums
69 lines
2.0 KiB
Bash
Executable File
69 lines
2.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# Compute and apply the Bananarchy Linux release version and codename:
|
|
# <year-letter><MM><DD>
|
|
# where <year-letter> is 'a'..'z' for (year - 2026) mod 26 (2026 = 'a'),
|
|
# followed by the two-digit local month and two-digit local day.
|
|
set -eu
|
|
|
|
BASE_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
YEAR="$(date +%Y)"
|
|
MONTH="$(date +%m)"
|
|
DAY="$(date +%d)"
|
|
|
|
LETTER_IDX=$(( ((YEAR - 2026) % 26 + 26) % 26 ))
|
|
YEAR_LETTER="$(printf "\\$(printf '%03o' $(( 97 + LETTER_IDX )))")"
|
|
VERSION="${BANANARCHY_VERSION:-${YEAR_LETTER}${MONTH}${DAY}}"
|
|
|
|
case "$VERSION" in
|
|
a1125) DEFAULT_CODENAME=ampere ;;
|
|
a1120) DEFAULT_CODENAME=cocojamboo ;;
|
|
a1114) DEFAULT_CODENAME=carbonara ;;
|
|
a1111) DEFAULT_CODENAME=lennon ;;
|
|
a1108) DEFAULT_CODENAME=dejavu ;;
|
|
a1105) DEFAULT_CODENAME=vendetta ;;
|
|
a1031) DEFAULT_CODENAME=myers ;;
|
|
a1028) DEFAULT_CODENAME=ladyjava ;;
|
|
a1027) DEFAULT_CODENAME=bonkers ;;
|
|
a1025) DEFAULT_CODENAME=argonaut ;;
|
|
*) DEFAULT_CODENAME=unknown ;;
|
|
esac
|
|
CODENAME="${BANANARCHY_CODENAME:-$DEFAULT_CODENAME}"
|
|
|
|
if [ "${1:-}" = "--print" ] || [ "${1:-}" = "-p" ]; then
|
|
printf '%s\n' "$VERSION"
|
|
exit 0
|
|
fi
|
|
if [ "${1:-}" = "--print-codename" ] || [ "${1:-}" = "-c" ]; then
|
|
printf '%s\n' "$CODENAME"
|
|
exit 0
|
|
fi
|
|
|
|
TARGET_ROOTFS="${1:-${ROOTFS_DIR:-$BASE_DIR/rootfs}}"
|
|
|
|
apply_template() {
|
|
src_tpl="$1"
|
|
dst_file="$2"
|
|
if [ -f "$src_tpl" ]; then
|
|
mkdir -p "$(dirname "$dst_file")"
|
|
sed -e "s/@BANANARCHY_VERSION@/$VERSION/g" \
|
|
-e "s/@BANANARCHY_CODENAME@/$CODENAME/g" \
|
|
"$src_tpl" > "$dst_file"
|
|
elif [ -f "$dst_file" ]; then
|
|
sed -i -E \
|
|
-e "s/@BANANARCHY_VERSION@/$VERSION/g" \
|
|
-e "s/@BANANARCHY_CODENAME@/$CODENAME/g" \
|
|
-e "s/v0\.0\.1/$VERSION/g" \
|
|
"$dst_file"
|
|
fi
|
|
}
|
|
|
|
if [ -d "$TARGET_ROOTFS" ]; then
|
|
for rel in etc/os-release usr/lib/os-release etc/issue etc/motd; do
|
|
apply_template "$BASE_DIR/overlay/rootfs/$rel" "$TARGET_ROOTFS/$rel"
|
|
done
|
|
echo "Applied Bananarchy version $VERSION ($CODENAME) to $TARGET_ROOTFS"
|
|
else
|
|
printf '%s\n' "$VERSION"
|
|
fi
|