Fix candidate build metadata and runtime safeguards
Offline project checks / check (push) Canceled after 0s

Repair kernel patch formatting and refresh kernel/camera package revisions and checksums. Integrate battery guard into generated images, correct charging controls and emergency shutdown handling, and reject invalid camera authentication configuration.

Extend recipe validation and regression coverage, and update build and installation documentation. Kernel, camera and image compilation remain pending on the build server.
This commit is contained in:
shenlei
2026-11-09 10:49:22 +09:00
parent 23989f4a18
commit 4f3fe1f94b
19 changed files with 298 additions and 100 deletions
+6 -2
View File
@@ -21,6 +21,8 @@ HELPERS = {
'scripts/phone-poweroff.py': 'usr/local/sbin/platina-poweroff',
'scripts/phone-power-chord.py': 'usr/local/sbin/platina-power-chord',
'scripts/phone-power-chord.openrc': 'etc/init.d/platina-power-chord',
'scripts/phone-battery-guard.py': 'usr/local/sbin/platina-battery-guard',
'scripts/phone-battery-guard.openrc': 'etc/init.d/platina-battery-guard',
'scripts/phone-headless.start': 'etc/local.d/platina-headless.start',
'scripts/phone-usb-power.py': 'usr/local/sbin/platina-usb-power',
'scripts/phone-usb-power-dispatcher.sh': 'etc/NetworkManager/dispatcher.d/90-platina-usb-power',
@@ -40,7 +42,8 @@ def layout(version):
modes[base + '/' + sub + name] = 0o644
links = {'usr/local/share/platina/current': 'releases/' + version,
'etc/platina-release': '../usr/local/share/platina/current/version',
'etc/runlevels/default/platina-power-chord': '../../init.d/platina-power-chord'}
'etc/runlevels/default/platina-power-chord': '../../init.d/platina-power-chord',
'etc/runlevels/default/platina-battery-guard': '../../init.d/platina-battery-guard'}
return base, modes, links
@@ -88,7 +91,8 @@ def audit_contents(manifest, read):
if len(raw) != display['raw_bytes'] or hashlib.sha256(raw).hexdigest() != display['raw_sha256']:
raise ValueError('Screen decoded checksum mismatch')
return {'version': version, 'runtime_files': len(modes), 'screens_verified': 2,
'power_chord_active': True, 'usb_poweroff_requires_unplug': True}
'power_chord_active': True, 'battery_guard_active': True,
'usb_poweroff_requires_unplug': True}
def audit(root):