From b91928e6f024fc4fb10f96978a821242eb5ce247 Mon Sep 17 00:00:00 2001 From: Baikal Electronics Date: Wed, 28 Sep 2022 23:12:09 +0300 Subject: [PATCH] Remove kernel related binaries in directory on cleanall --- meta-baikal/recipes-kernel/linux/linux-baikal.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-baikal/recipes-kernel/linux/linux-baikal.inc b/meta-baikal/recipes-kernel/linux/linux-baikal.inc index 547dda4..37fa718 100644 --- a/meta-baikal/recipes-kernel/linux/linux-baikal.inc +++ b/meta-baikal/recipes-kernel/linux/linux-baikal.inc @@ -44,9 +44,13 @@ do_devshell:prepend() { do_extsrc_clean () { if [ -d ${BAIKAL_IMAGES} ]; then + cd ${BAIKAL_IMAGES} + rm -rf ${UBOOT_SIGN_KEYDIR} + rm -f *vmlinux* *System.map u* *.dtb for imageType in ${KERNEL_IMAGETYPES} ; do - rm -f ${BAIKAL_IMAGES}/${MACHINE}.$imageType + rm -f ${MACHINE}.$imageType done + cd - fi oe_runmake -C ${S} mrproper -- 2.39.5