From af33b41925603fff603aa3aff432e901dc30de5c Mon Sep 17 00:00:00 2001 From: Harry Moulton Date: Mon, 14 Mar 2022 16:25:01 +0000 Subject: [PATCH] arm-bsp/linux-yocto: backport remove redundant kernel hacking Backport of 7fc51c7c from master which removes some redundant code to reduce the size of the resulting corstone1000 binary. Signed-off-by: Harry Moulton Signed-off-by: Jon Mason --- .../linux/linux-arm-platforms.inc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc index 49f92ced..73c52f72 100644 --- a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc +++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc @@ -143,24 +143,6 @@ SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \ # corstone1000 has limited flash memory constraints KERNEL_EXTRA_FEATURES:corstone1000 = "" KERNEL_FEATURES:corstone1000 = "" -# No need to include the kernel image in the rootfs -# So, let's delete the package doing that and uninstalling the initial -# kernel binary. -# The kernel binary needed is the initramfs bundle - -FILES:kernel-image-image:corstone1000="" - -# Uninstalling the initial kernel binary - -do_install:append:corstone1000() { - if [ -e "${D}/${KERNEL_IMAGEDEST}/$imageType-${KERNEL_VERSION}" ]; then - rm ${D}/${KERNEL_IMAGEDEST}/$imageType-${KERNEL_VERSION} - fi - - if [ -e "${D}/${KERNEL_IMAGEDEST}/$imageType" ]; then - rm ${D}/${KERNEL_IMAGEDEST}/$imageType - fi -} # # FVP BASE KMACHINE