cleanup userspace/libs/

This commit is contained in:
Adeeb Shihadeh
2026-04-30 18:32:52 -07:00
parent b368d26168
commit 0dce41bbde
26 changed files with 4 additions and 4 deletions
+4 -3
View File
@@ -37,7 +37,9 @@ RUN --mount=type=cache,target=/root/.ccache,id=modemmanager,sharing=shared \
FROM agnos-compiler AS agnos-compiler-power-burn
RUN apt-get update && apt-get install -yq --no-install-recommends \
opencl-c-headers
COPY ./userspace/libs/* /usr/lib/aarch64-linux-gnu/
COPY ./userspace/root/usr/lib/aarch64-linux-gnu/libOpenCL.so* /usr/lib/aarch64-linux-gnu/
COPY ./userspace/root/usr/lib/aarch64-linux-gnu/libcutils.so* /usr/lib/aarch64-linux-gnu/
COPY ./userspace/root/usr/lib/aarch64-linux-gnu/liblog.so* /usr/lib/aarch64-linux-gnu/
COPY ./userspace/power_burn/power_burn_max.c /tmp/agnos/
RUN gcc -O2 -o /tmp/power_burn_max /tmp/agnos/power_burn_max.c \
-lOpenCL -lpthread -ldl
@@ -131,8 +133,7 @@ RUN rm -rf /root/.config && ln -s /home/$USERNAME/.config /root/.config
RUN chmod 644 /etc/logrotate.conf
RUN touch -r /lib/systemd/systemd /etc/fstab
# populate /usr
COPY ./userspace/libs/* /usr/lib/aarch64-linux-gnu/
# Install kernel headers
COPY ./output/linux-headers/include/ /usr/include/
COPY --from=agnos-compiler-power-burn /tmp/power_burn_max /home/$USERNAME/power_burn_max
-1
View File
@@ -1 +0,0 @@
libOpenCL.so.1.0.0