@@ -51,6 +51,14 @@ COPY ./userspace/compile-lpac.sh /tmp/agnos/
5151RUN --mount=type=cache,target=/root/.ccache,id=lpac,sharing=shared \
5252 /tmp/agnos/compile-lpac.sh
5353
54+ # qtwayland5
55+ FROM agnos-compiler AS agnos-compiler-qtwayland5
56+ COPY ./userspace/qtwayland/*.deb /tmp/agnos/
57+ COPY ./userspace/compile-qtwayland5.sh /tmp/agnos/
58+ COPY ./userspace/qtwayland/patch* /tmp/agnos/
59+ RUN --mount=type=cache,target=/root/.ccache,id=qtwayland5,sharing=shared \
60+ /tmp/agnos/compile-qtwayland5.sh
61+
5462# ################## #
5563# ###### Base ###### #
5664# ################## #
@@ -79,6 +87,15 @@ RUN /tmp/agnos/openpilot_dependencies.sh
7987COPY ./userspace/openpilot_python_dependencies.sh /tmp/agnos/
8088RUN /tmp/agnos/openpilot_python_dependencies.sh
8189
90+ # Install old Qt 5.12.8, libwayland 1.9.0-1 and deps
91+ COPY ./userspace/qtwayland/*.deb /tmp/agnos/
92+ RUN apt-get -o Dpkg::Options::="--force-overwrite" install -yq \
93+ /tmp/agnos/qt-5.12.8.deb \
94+ /tmp/agnos/libwayland-1.9.0-1.deb \
95+ /tmp/agnos/libicu66_66.1-2ubuntu2.1_arm64.deb \
96+ /tmp/agnos/libssl1.1_1.1.1f-1ubuntu2.22_arm64.deb \
97+ /tmp/agnos/libffi6_3.2.1-8_arm64.deb
98+
8299# ################### #
83100# ###### AGNOS ###### #
84101# ################### #
@@ -136,6 +153,12 @@ RUN source $XDG_DATA_HOME/venv/bin/activate && \
136153COPY ./userspace/install_extras.sh /tmp/agnos/
137154RUN /tmp/agnos/install_extras.sh
138155
156+ COPY --from=agnos-compiler-qtwayland5 /tmp/qtwayland5.deb /tmp/qtwayland5.deb
157+ RUN cd /tmp && apt-get -o Dpkg::Options::="--force-overwrite" install -yq --allow-downgrades ./qtwayland5.deb
158+
159+ # Patched libeglSubDriverWayland with fixed nullptr deref in CommitBuffer
160+ COPY ./userspace/files/libeglSubDriverWayland.so.patched /lib/aarch64-linux-gnu/libeglSubDriverWayland.so
161+
139162COPY ./userspace/home/ /home/$USERNAME/
140163COPY ./userspace/home/.config/ /root/.config
141164RUN chown -R $USERNAME: /home/$USERNAME/.config
@@ -171,6 +194,10 @@ COPY ./userspace/libs32/* /usr/lib/arm-linux-gnueabihf/
171194#COPY ./userspace/files/linux-headers-4.9.103+_4.9.103+-1_arm64.deb /tmp/
172195#RUN dpkg -i /tmp/linux-headers-4.9.103+_4.9.103+-1_arm64.deb
173196
197+ # Weston with hacked touch rotate and color correction
198+ COPY ./userspace/files/weston /usr/bin/weston
199+ COPY ./userspace/files/gl-renderer.so /usr/lib/arm-linux-gnueabihf/weston
200+
174201# Setup systemd services
175202COPY ./userspace/services.sh /tmp/agnos
176203RUN /tmp/agnos/services.sh
@@ -199,6 +226,9 @@ COPY ./userspace/files/avahi-override.conf /etc/systemd/system/avahi-daemon.serv
199226# Prevent polkitd memory leak from getting out of hand by restarting it every ~day
200227COPY ./userspace/files/polkit-override.conf /etc/systemd/system/polkit.service.d/override.conf
201228
229+ # Remove qt network bearer plugins
230+ RUN rm -rf /usr/lib/aarch64-linux-gnu/qt5/plugins/bearer
231+
202232# Add iptable rules to block incoming traffic on wwan0
203233COPY ./userspace/etc/iptables/rules.v4 /etc/iptables/rules.v4
204234
0 commit comments