mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-29 02:43:50 +08:00
cleanup userspace/libs/
This commit is contained in:
+4
-3
@@ -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 +0,0 @@
|
||||
libOpenCL.so.1.0.0
|
||||
Reference in New Issue
Block a user