From 2ee1c06a7198d520403faaaa072b479340e73f7f Mon Sep 17 00:00:00 2001 From: Andrei Radulescu Date: Fri, 6 Sep 2024 20:47:51 +0300 Subject: [PATCH] remove unused gcc-arm-none-eabi architectures & bins (#346) * remove unused gcc-arm-none-eabi architectures & bins * [upload] --- Dockerfile.agnos | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile.agnos b/Dockerfile.agnos index 79f3b1b9..7f498ec9 100644 --- a/Dockerfile.agnos +++ b/Dockerfile.agnos @@ -198,10 +198,12 @@ COPY ./userspace/files/serviceproviders.xml /usr/share/mobile-broadband-provider RUN sed -i 's/hosts: files dns myhostname/hosts: files myhostname dns/g' /etc/nsswitch.conf # TODO: move this to base_setup.sh or build gcc from source -# Remove unused architectures from arm-none-eabi +# Remove unused architectures & bins from arm-none-eabi RUN cd /usr/lib/gcc/arm-none-eabi/* && \ rm -rf arm/ && \ - rm -rf thumb/nofp thumb/v6* thumb/v8* thumb/v7+fp thumb/v7-r+fp.sp + find thumb/ -maxdepth 1 -type d ! \( -name 'thumb' -o -name 'v7e-m+fp' -o -name 'v7e-m+dp' \) -exec rm -rf {} + && \ + rm cc1plus g++-mapper-server && \ + find /usr/bin -maxdepth 1 -type f -name 'arm-none-eabi-*' ! \( -name 'arm-none-eabi-gcc' -o -name 'arm-none-eabi-objcopy' -o -name 'arm-none-eabi-objdump' \) -delete # keep this last RUN ldconfig