1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-08 06:28:23 +01:00

remove unused kernel image

This commit is contained in:
DanyLE 2023-08-01 15:33:24 +02:00
parent 985a0bed60
commit d220929d4b

View File

@ -22,8 +22,8 @@ IMAGE_ROOTFS_EXTRA_SPACE = "0"
# Use the same restriction as initramfs-module-install
COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
ROOTFS_POSTPROCESS_COMMAND += "clobber_unused"
IMAGE_PREPROCESS_COMMAND += "clobber_unused;"
clobber_unused () {
rm ${IMAGE_ROOTFS}/boot/*
rm -rf ${IMAGE_ROOTFS}/boot/*
}