From b3391941dd22a5ce925b170aab085fc58a6fd78b Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Wed, 24 Jan 2024 17:48:27 +0100 Subject: [PATCH] connectcore-demo: avoid removal of board image file for the ccimx6qpsbc Commit c4f2fce4d3d58f4de37aecda7fc09099e096dc8b added logic to do_install() that saves space by removing board image files that don't match the machine name. However, the ccimx6qpsbc uses the ccimx6sbc board image file, and it was being removed from the demo, breaking the demo's landing page. Avoid this by specifying the correct filename for the ccimx6qpsbc. Signed-off-by: Gabriel Valcazar --- .../recipes-digi/dey-examples/connectcore-demo-example.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 707d26ae8..ff2034e72 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 @@ -30,12 +30,17 @@ S = "${WORKDIR}/connectcore-demo-example" inherit systemd update-rc.d +BOARD_IMAGE_FILE ?= "${MACHINE}_board.png" + +# The ccimx6qpsbc re-uses the ccimx6sbc board image +BOARD_IMAGE_FILE:ccimx6qpsbc = "ccimx6sbc_board.png" + 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 + find ${D}/srv/www/static/images/ -type f -name '*_board.png' -not -name '${BOARD_IMAGE_FILE}' -delete # Install systemd service if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then