adreno split

This commit is contained in:
Justin Newberry
2023-10-23 08:42:33 -07:00
parent 2bca14de80
commit 064590c1dc
122 changed files with 275 additions and 73 deletions
+17 -20
View File
@@ -47,18 +47,16 @@ FROM agnos-compiler as agnos-compiler-mapbox-gl-native
COPY ./userspace/compile-mapbox-gl-native.sh /tmp/agnos/
RUN /tmp/agnos/compile-mapbox-gl-native.sh
FROM agnos-compiler as agnos-compiler-libglvnd
COPY ./userspace/compile-libglvnd.sh /tmp/agnos/
RUN /tmp/agnos/compile-libglvnd.sh
RUN ls /tmp/libglvnd
# ################### #
# ###### AGNOS ###### #
# ################### #
FROM agnos-base
# Hardware setup
RUN mkdir -p /tmp/agnos/debs
COPY ./userspace/debs /tmp/agnos/debs
COPY ./userspace/hardware_setup.sh /tmp/agnos
RUN /tmp/agnos/hardware_setup.sh
RUN mv /data/persist /system/ && rm -rf /data/*
# Build ModemManager
COPY ./userspace/compile-modemmanager.sh /tmp/agnos/
RUN /tmp/agnos/compile-modemmanager.sh
@@ -78,6 +76,10 @@ COPY --from=agnos-compiler-ffmpeg /tmp/ffmpeg.deb /tmp/ffmpeg.deb
RUN cd /tmp && apt-get -o Dpkg::Options::="--force-overwrite" install -yq ./ffmpeg.deb
COPY --from=agnos-compiler-mapbox-gl-native /tmp/libqmapboxgl.so /lib/aarch64-linux-gnu/libqmapboxgl.so
COPY --from=agnos-compiler-libglvnd /tmp/libglvnd.deb /tmp/libglvnd.deb
RUN cd /tmp && apt-get -o Dpkg::Options::="--force-overwrite" install -yq ./libglvnd.deb
RUN export PATH="/usr/local/pyenv/bin:/usr/local/pyenv/shims:$PATH" && \
export PYENV_ROOT="/usr/local/pyenv" && \
eval "$(pyenv init -)" && \
@@ -98,25 +100,13 @@ RUN export PATH="/usr/local/pyenv/bin:/usr/local/pyenv/shims:$PATH" && \
poetry config virtualenvs.create false --local && \
export PYOPENCL_CL_PRETEND_VERSION="2.0" && \
export POETRY_VIRTUALENVS_CREATE=false && \
MAKEFLAGS="-j$(nproc)" poetry install --no-cache --no-root && \
MAKEFLAGS="-j40" poetry install --no-cache --no-root && \
pyenv rehash
# Install nice to haves
COPY ./userspace/install_extras.sh /tmp/agnos/
RUN /tmp/agnos/install_extras.sh
# 16.04 libwayland-client + libffi6
COPY ./userspace/qtwayland/libffi.so.6 /lib/aarch64-linux-gnu/
COPY ./userspace/qtwayland/libwayland-client.so.0 /lib/aarch64-linux-gnu/libwayland-client.so.0
# Patched qtwayland that does not use EGL EXT, and outputs a fixed screen size
# Clone qtwayland submodule, checkout 5.12.9 (5.12.8 leaks timers, see https://bugreports.qt.io/browse/QTBUG-82914), apply patch, qmake, make
COPY ./userspace/qtwayland/libqwayland-egl.so /lib/aarch64-linux-gnu/qt5/plugins/platforms/libqwayland-egl.so
COPY ./userspace/qtwayland/libQt5WaylandClient.so.5.12.8 /lib/aarch64-linux-gnu/libQt5WaylandClient.so.5.12.8
# Patched libeglSubDriverWayland with fixed nullptr deref in CommitBuffer
COPY ./userspace/files/libeglSubDriverWayland.so.patched /lib/aarch64-linux-gnu/libeglSubDriverWayland.so
COPY ./userspace/home/ /home/$USERNAME/
COPY ./userspace/home/.config/ /root/.config
RUN chown -R $USERNAME: /home/$USERNAME/.config
@@ -217,6 +207,13 @@ RUN /tmptmp/readonly_setup.sh && rm -rf /tmptmp
# copy at the end, after all apt usage
COPY ./userspace/files/apt.conf /etc/apt/apt.conf
# Hardware setup
RUN mkdir -p /tmp/agnos/debs
COPY ./userspace/debs /tmp/agnos/debs
COPY ./userspace/hardware_setup.sh /tmp/agnos
RUN /tmp/agnos/hardware_setup.sh
RUN mv /data/persist /system/ && rm -rf /data/*
# Write version file
RUN echo -n "8.2" > /VERSION
+1
View File
@@ -199,6 +199,7 @@ apt-get install --no-install-recommends -yq \
libgles1 \
libgles2 \
libgles-dev \
libglvnd-dev \
libwayland-dev \
pulseaudio \
pulseaudio-utils \
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
apt update && apt install -y libxext-dev libx11-dev x11proto-gl-dev ninja-build meson
cd /tmp
git clone https://gitlab.freedesktop.org/glvnd/libglvnd.git
cd libglvnd
./autogen.sh
./configure
export MAKEFLAGS="-j$(nproc)"
make
checkinstall -yD --install=no --pkgname=libglvnd
mv libglvnd*.deb /tmp/libglvnd.deb
+2 -2
View File
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d5166e1df3e0dd5123f63541eab4923164a5003c3c4c867f35bdcbcddde4ba4
size 51109180
oid sha256:48937afbc6d05acb58e0a24269b17641399dab44cd581a5564f523fff33cec44
size 51109316
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
dpkg-deb --build src/agnos-display agnos-display_0.0.1.deb
@@ -0,0 +1,10 @@
Package: agnos-display
Version: 0.0.1
Section:
Priority: optional
Architecture: arm64
Depends:
Replaces: libopencl1, ocl-icd-libopencl1, libgsl-dev, ocl-icd-opencl-dev
Installed-Size: 161824
Maintainer: Robbe Derks robbe@comma.ai
Description: AGNOS display stuff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
libpcre.so.1.2.6
@@ -0,0 +1 @@
/usr/lib/libgralloc.so
@@ -0,0 +1 @@
libcutils.so.0.0.0
@@ -0,0 +1 @@
libhardware.so.0.0.0
@@ -0,0 +1 @@
liblog.so.0.0.0
@@ -0,0 +1 @@
liblogwrap.so.0.0.0
@@ -0,0 +1 @@
libpcre.so.1.2.6
@@ -0,0 +1 @@
libsync.so.0.0.0
@@ -0,0 +1 @@
libutils.so.0.0.0
@@ -0,0 +1 @@
/usr/lib/aarch64-linux-gnu/libOpenCL.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
{
"file_format_version" : "1.0.0",
"ICD" : {
"library_path" : "libEGL_adreno.so.0"
}
}
@@ -0,0 +1,5 @@
[Desktop Entry]
Name=Weston
Comment=The reference Wayland server
Exec=dbus-launch --exit-with-session weston
Type=Application
Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Some files were not shown because too many files have changed in this diff Show More