[Armadeus-commitlog] armadeus branch, master, updated. armadeus-7.0-348-g78d941903
Brought to you by:
sszy
|
From: Sébastien S. <ss...@us...> - 2022-10-19 15:20:31
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 78d941903ae11f78cf4769989368571f2bda53cd (commit)
from 3dab76a8a108c02fe40fe40f49b25e6da4813222 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 78d941903ae11f78cf4769989368571f2bda53cd
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Oct 19 17:16:45 2022 +0200
[BUILDROOT] 2022.02: patch to reduce imx-gpu-viv disk usage
-----------------------------------------------------------------------
Summary of changes:
...escale-imx-imx-gpu-viv-removes-uneeded-li.patch | 85 ++++++++++++++++++++++
patches/buildroot/2022.02/cleanup_buildroot.sh | 1 +
2 files changed, 86 insertions(+)
create mode 100644 patches/buildroot/2022.02/417-package-freescale-imx-imx-gpu-viv-removes-uneeded-li.patch
diff --git a/patches/buildroot/2022.02/417-package-freescale-imx-imx-gpu-viv-removes-uneeded-li.patch b/patches/buildroot/2022.02/417-package-freescale-imx-imx-gpu-viv-removes-uneeded-li.patch
new file mode 100644
index 000000000..22d84e433
--- /dev/null
+++ b/patches/buildroot/2022.02/417-package-freescale-imx-imx-gpu-viv-removes-uneeded-li.patch
@@ -0,0 +1,85 @@
+From f2bf96a97545442a7d878309fcd3277f5b716770 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?S=C3=A9bastien=20Szymanski?=
+ <seb...@ar...>
+Date: Wed, 19 Oct 2022 15:55:18 +0200
+Subject: [PATCH 1/1] package/freescale-imx/imx-gpu-viv: removes uneeded
+ library files
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+On aarch64, imx-gpu-viv package contains libraries related to
+neuronal network programming that took about 150MB of space...
+Only install libraries needed for the selected i.MX platform.
+
+Signed-off-by: Sébastien Szymanski <seb...@ar...>
+---
+ .../freescale-imx/imx-gpu-viv/imx-gpu-viv.mk | 45 +++++++++++++++++++
+ 1 file changed, 45 insertions(+)
+
+diff --git a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk
+index 3c88b8b11e..1e6e2dac1b 100644
+--- a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk
++++ b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk
+@@ -63,6 +63,50 @@ define IMX_GPU_VIV_FIXUP_PKGCONFIG
+ endef
+ endif
+
++ifeq ($(BR2_aarch64),y)
++IMX_GPU_VIV_LIBNN_FILES = libNNGPUBinary-evis2.so \
++ libNNGPUBinary-evis.so \
++ libNNGPUBinary-lite.so \
++ libNNGPUBinary-nano.so \
++ libNNGPUBinary-ulite.so \
++ libNNVXCBinary-evis2.so \
++ libNNVXCBinary-evis.so \
++ libOvx12VXCBinary-evis2.so \
++ libOvx12VXCBinary-evis.so
++
++ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y)
++define IMX_GPU_VIV_REMOVE_LIBNN_FILES
++ $(foreach lib,$(filter-out libNNGPUBinary-evis.so libNNVXCBinary-evis.so libOvx12VXCBinary-evis.so,$(IMX_GPU_VIV_LIBNN_FILES)), \
++ $(RM) -f $(@D)/gpu-core/usr/lib/$(lib)
++ )
++endef
++else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y)
++define IMX_GPU_VIV_REMOVE_LIBNN_FILES
++ $(foreach lib,$(filter-out libNNGPUBinary-lite.so,$(IMX_GPU_VIV_LIBNN_FILES)), \
++ $(RM) -f $(@D)/gpu-core/usr/lib/$(lib)
++ )
++endef
++else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM),y)
++define IMX_GPU_VIV_REMOVE_LIBNN_FILES
++ $(foreach lib,$(IMX_GPU_VIV_LIBNN_FILES), \
++ $(RM) -f $(@D)/gpu-core/usr/lib/$(lib)
++ )
++endef
++else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN),y)
++define IMX_GPU_VIV_REMOVE_LIBNN_FILES
++ $(foreach lib,$(filter-out libNNGPUBinary-ulite.so,$(IMX_GPU_VIV_LIBNN_FILES)), \
++ $(RM) -f $(@D)/gpu-core/usr/lib/$(lib)
++ )
++endef
++else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
++define IMX_GPU_VIV_REMOVE_LIBNN_FILES
++ $(foreach lib,$(filter-out libNNGPUBinary-evis2.so libNNVXCBinary-evis2.so libOvx12VXCBinary-evis2.so, $(IMX_GPU_VIV_LIBNN_FILES)), \
++ $(RM) -f $(@D)/gpu-core/usr/lib/$(lib)
++ )
++endef
++endif
++endif
++
+ # Instead of building, we fix up the inconsistencies that exist
+ # in the upstream archive here. We also remove unused backend files.
+ # Make sure these commands are idempotent.
+@@ -72,6 +116,7 @@ define IMX_GPU_VIV_BUILD_CMDS
+ $(RM) -r $(@D)/gpu-core/usr/lib/$(backend)
+ )
+ $(IMX_GPU_VIV_FIXUP_PKGCONFIG)
++ $(IMX_GPU_VIV_REMOVE_LIBNN_FILES)
+ endef
+
+ define IMX_GPU_VIV_INSTALL_STAGING_CMDS
+--
+2.37.3
+
diff --git a/patches/buildroot/2022.02/cleanup_buildroot.sh b/patches/buildroot/2022.02/cleanup_buildroot.sh
index d53cab38b..591e26962 100755
--- a/patches/buildroot/2022.02/cleanup_buildroot.sh
+++ b/patches/buildroot/2022.02/cleanup_buildroot.sh
@@ -29,6 +29,7 @@ rm -rf buildroot/package/expat/0001-Ensure-raw-tagnames-are-safe-exiting-interna
rm -rf buildroot/package/expat/expat.hash
rm -rf buildroot/package/expat/expat.mk
rm -rf buildroot/package/expect/expect.mk
+rm -rf buildroot/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk
rm -rf buildroot/package/gnokii/Config.in
rm -rf buildroot/package/gnokii/gnokii.mk
rm -rf buildroot/package/gpsd/Config.in
hooks/post-receive
--
armadeus
|