From c4f2fce4d3d58f4de37aecda7fc09099e096dc8b Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Mon, 30 Jan 2023 17:01:20 +0100 Subject: [PATCH] dey-examples: connectcore-demo: remove unused images to reduce package size This commit removes unused platform images to reduce the final size in the rootfs. https://onedigi.atlassian.net/browse/DEL-8335 Signed-off-by: Arturo Buzarra --- .../recipes-digi/dey-examples/connectcore-demo-example.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example.inc b/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example.inc index d2afb0c43..023216c1f 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example.inc +++ b/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example.inc @@ -33,6 +33,9 @@ do_install() { install -d ${D}/srv/www cp -r ${WORKDIR}/git/connectcore-demo-example/* ${D}/srv/www/ + # Remove unused images + find ${D}/srv/www/static/images/ -type f -name '*_board.png' -not -name '${MACHINE}_board.png' -delete + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then # Install systemd unit files install -d ${D}${systemd_unitdir}/system