Fix candidate build metadata and runtime safeguards
Offline project checks / check (push) Canceled after 0s
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:
@@ -1,7 +1,7 @@
|
||||
# Headless GPU-enabled camera development build for Platina.
|
||||
pkgname=platina-libcamera
|
||||
pkgver=0.7.1
|
||||
pkgrel=31
|
||||
pkgrel=32
|
||||
pkgdesc="Headless libcamera with GPU/CPU software ISP for Platina"
|
||||
url="https://libcamera.org/"
|
||||
arch="aarch64"
|
||||
@@ -83,7 +83,7 @@ d4efc6815992d7e79b12583839f5394700c06f26c057feb2027391cfa9e12fe3bdeb4a7279dea4b1
|
||||
8938ab20e273c06ab284f825b248e0190167165290d3f54dfdeba3066754dcbca0bde16ed6e29e455e1657fea44bf3fb2e962cdc9e2e3aad0fab214fc09b339b platina_exposure.h
|
||||
d083da94fbd1dd6e7d2e41ea22767e90e9fe8fcba9c4708676683e248c4131d5fbe45a6e4fc0d84680e2f17dbf9ebda75f99dc64e45172138cacb8c24b52de71 platina_zoom.h
|
||||
c28e44e939b3f212fd275967762f67e41a831b52a82a2a512ca21f1d77093ab8a2b1e926b55f775aa42b19e4339ffcf9d66d0223106e0ed41722828c01441441 capture.cpp
|
||||
4c5a42e531579783f03cd06d444e53ca159ef7ad043aafe8b6f9344e7f347e45d6fcf52600a2c0fec71921d4ccb39ab5f66f865ee9f804a897273859fa9ea615 serve.py
|
||||
f3fa9e95a83c687cc586d2f6c1cdd8c587eb7dff26e3ff964ce650413415725857c513697e773f7c90798742c05c8452b1c4a32cbab17c8da7ee5301a8fb0df7 serve.py
|
||||
8c8951b57b88f7e0a24d2f9f2fd9a2aaf0a717c2069e4b44a89c09e4c4891d10d7ff1732b3f3ba3a71e376c30738698a25ffb37949cedb515726aedbf6477cf5 camera_mqtt.py
|
||||
19550862ce07ec281021923a22d5149d582126bf202a7b4a7214d4cd5001c8ceadc351ddcc2fe7cf7909db53e2a6e77304fc7e7c514b174b49fd6ba5843ebf79 platina-camera.openrc
|
||||
3a89c3955e01ab24478f0806df294d40cced80b8b17b9421727a176449908da38d7c1f4f9fb61d8ba193fc58b303b0665b996014ab446fab18994c1f97c486ed preview.html
|
||||
|
||||
@@ -321,21 +321,25 @@ class Audio:
|
||||
|
||||
|
||||
def load_auth(path):
|
||||
if not path or not path.exists():
|
||||
if path is None:
|
||||
return None
|
||||
try:
|
||||
data = json.loads(path.read_text())
|
||||
if not isinstance(data, dict):
|
||||
except FileNotFoundError:
|
||||
if not path.is_symlink():
|
||||
return None
|
||||
if not data.get('enabled', True):
|
||||
return None
|
||||
user = data.get('username')
|
||||
pwd = data.get('password')
|
||||
if user and pwd:
|
||||
return {'username': str(user), 'password': str(pwd)}
|
||||
except Exception:
|
||||
pass
|
||||
return None
|
||||
raise ValueError('Authentication configuration is unavailable') from None
|
||||
except (OSError, ValueError):
|
||||
raise ValueError('Authentication configuration cannot be read') from None
|
||||
if not isinstance(data, dict) or type(data.get('enabled', True)) is not bool:
|
||||
raise ValueError('Invalid authentication configuration')
|
||||
if data.get('enabled') is False:
|
||||
return None
|
||||
user, pwd = data.get('username'), data.get('password')
|
||||
if (not isinstance(user, str) or not user or ':' in user or
|
||||
not isinstance(pwd, str) or not pwd):
|
||||
raise ValueError('Authentication requires a username and password')
|
||||
return {'username': user, 'password': pwd}
|
||||
|
||||
|
||||
def make_handler(camera, shutdown, audio=None, auth=None):
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"candidate": {
|
||||
"ports": "ports/candidate",
|
||||
"kernel": "7.2.12",
|
||||
"kernel_package": "7.2.12-r12",
|
||||
"kernel_package": "7.2.12-r13",
|
||||
"device_package": "5-r31",
|
||||
"firmware_package": "2-r5"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user