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 <arturo.buzarra@digi.com>
This commit is contained in:
parent
4e361ff449
commit
c4f2fce4d3
|
|
@ -33,6 +33,9 @@ do_install() {
|
||||||
install -d ${D}/srv/www
|
install -d ${D}/srv/www
|
||||||
cp -r ${WORKDIR}/git/connectcore-demo-example/* ${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
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||||
# Install systemd unit files
|
# Install systemd unit files
|
||||||
install -d ${D}${systemd_unitdir}/system
|
install -d ${D}${systemd_unitdir}/system
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue