mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-25 08:53:47 +08:00
d665e03298
* separate out qtwayland5 compilation
* ubuntu 22.04
* temp build system image
* remove bionic deps
* temp packages update
* update armhf packages
* back to libstdc++6
* replaced remove dqt5-default meta package with actual depss
* fix for build libqmi crashing with /usr/bin/env: 'python': No such file or directory
* mapbox-gl-native gcc11 fix
* openpilot_dependencies.sh change
* ubuntu-base 24.04 daily current
* apt install meson because PEP 668
* temp g++-11 for mapbox-gl-native
* bump capnproto to 1.0.2
* temp build only agnos-compiler-mapbox-gl-native
* Fixes for compiling mapbox-gl-native
* Fixes for compiling ffmpeg
* Build main system image again
* pyopencl from git since no 2023.1.5 release since https://github.com/inducer/pyopencl/issues/705
* Try to fix checkinstall - no success
* apt capnproto & ffmpeg since can't figure out issue with checkinstall
* Commented removed services disable
* Ubuntu 24.04 currently has arm-none-eabi/12.2.1 but just use wildcard to go to first folder
* pyclean is missing ?!
* ubuntu-latest in tests workflow
* Updated README
* Reverted internal/package_ota.py changes
* rebuilt kernel
* poetry.lock update
* Simplified build_system pipeline
* headers for capnproto
* Fix typo
* Fix for checkinstall
* Reverted apt capnproto & ffmpeg
* Some cleaning in Dockerfile
* 24.04 libwayland-client
* libffi6:armhf deb file
* Updated qtwayland
* Revert "libffi6:armhf deb file"
This reverts commit bb9cb5da95.
* libffi.so.6.0.4
* qt5-qmake qtbase5-dev qtbase5-dev-tools already in qt5-default
* Removed qtwayland old files
* checkinstall temp fix
* QStandardPaths: wrong permissions on runtime directory /var/tmp/weston, 0770 instead of 0700
* temp permissions fix makes loading build spinner show
* temp build optimization
* 24.04 new libs
* build kernel don't use tools on aarch64/arm64
* updated boot image and ko files
* cleaning
* switch to release 24.04
* wip - downgrade qt and libwayland
* polkitd-pkla package to support polkit *.pkla
* fixed issue with old qt needing libssl 1.1.1f
* remove /.dockerenv file
* more cleaning
---------
Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
48 lines
1.1 KiB
Python
Executable File
48 lines
1.1 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import time
|
|
import subprocess
|
|
|
|
def run(cmd):
|
|
subprocess.check_call(cmd, shell=True)
|
|
|
|
def timestamp_cmd(cmd):
|
|
cnt = 0
|
|
while True:
|
|
cnt += 1
|
|
print("try ", cnt)
|
|
run("sudo chmod -R 700 /var/tmp/weston/")
|
|
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
t = time.monotonic()
|
|
time.sleep(0.5)
|
|
r = proc.poll()
|
|
if r is not None:
|
|
continue
|
|
break
|
|
print("r", r)
|
|
return t
|
|
|
|
if __name__ == "__main__":
|
|
|
|
run("sudo systemctl stop weston")
|
|
run("sudo rm -rf /var/tmp/weston/wayland-0")
|
|
time.sleep(0.5)
|
|
#run("sudo systemctl restart weston-ready")
|
|
|
|
run("sudo systemctl restart weston --no-block")
|
|
st = time.monotonic()
|
|
#ts = defaultdict()
|
|
|
|
cnt = 0
|
|
while not os.path.exists("/var/tmp/weston/wayland-0"):
|
|
time.sleep(0.1)
|
|
cnt += 1
|
|
t = time.monotonic()
|
|
print(f"- socket at {t - st:.2f}s")
|
|
|
|
t = timestamp_cmd('/usr/comma/setup')
|
|
print(f"- setup works {t - st:.2f}s")
|
|
|
|
t = timestamp_cmd('cd /data/openpilot/selfdrive/ui/ && ./spinner')
|
|
print(f"- spinner works {t - st:.2f}s")
|