From 870b73cb12a554d43f135c49eb67875aaeea86ed Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 12 Jul 2015 09:22:58 +0200 Subject: [PATCH] image-rauc-slot-rescue: Remove some more files from it * We never need the BTS firmware. We never want to do GSM from within rescue image * Remove various udev hardware dbs. I think we couldn't care less about identifying peripheral devices by name and such. --- recipes-core/images/image-rauc-slot-rescue.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/recipes-core/images/image-rauc-slot-rescue.bb b/recipes-core/images/image-rauc-slot-rescue.bb index b811377..dfd7e52 100644 --- a/recipes-core/images/image-rauc-slot-rescue.bb +++ b/recipes-core/images/image-rauc-slot-rescue.bb @@ -49,3 +49,15 @@ IMAGE_FSTYPES_sysmocom-idu = "cpio.xz" IMAGE_FSTYPES_sysmobts-v2 = "ubi" BAD_RECOMMENDATIONS += "busybox-syslog" + + +shrink_rescue() { + # In case of the sysmoBTS.. remove files + rm -rf ${IMAGE_ROOTFS}/lib/firmware/sysmobts* + + # Who cares about udev? + rm -rf ${IMAGE_ROOTFS}/lib/udev/hwdb.d/* + rm -rf ${IMAGE_ROOTFS}/etc/udev/hwdb.bin +} + +IMAGE_PREPROCESS_COMMAND += "shrink_rescue; "