From e6029ccf12dbce303bb9d522e8bcb5c985e4120c Mon Sep 17 00:00:00 2001 From: Diego Sueiro Date: Thu, 7 May 2020 12:08:23 +0100 Subject: [PATCH] arm-autonomy: Don't include kernels in arm-autonomy-host images To reduce arm-autonomy-host images size we don't include the Kernel image. Change-Id: Ibcadf873fc71f3793b2824e5169a777ee8a0ece6 Issue-Id: SCM-813 Signed-off-by: Diego Sueiro Reviewed-by: Bertrand Marquis Signed-off-by: Jon Mason --- meta-arm-autonomy/README.md | 1 + meta-arm-autonomy/conf/distro/include/arm-autonomy-host.inc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/meta-arm-autonomy/README.md b/meta-arm-autonomy/README.md index 836d459a..785f278b 100644 --- a/meta-arm-autonomy/README.md +++ b/meta-arm-autonomy/README.md @@ -25,6 +25,7 @@ This layer is adding the following Yocto DISTRO_FEATURES: an autonomy host system. It is doing the following: - add 'xen' and 'ipv4' to DISTRO_FEATURES. - add xen backend drivers to linux kernel configuration. + - To reduce the root filesystem image size the kernel image is not installed. * arm-autonomy-guest: this feature activates functionalities to run as guest of an autonomy system. It is doing the following: diff --git a/meta-arm-autonomy/conf/distro/include/arm-autonomy-host.inc b/meta-arm-autonomy/conf/distro/include/arm-autonomy-host.inc index 236fbe92..bd98ae21 100644 --- a/meta-arm-autonomy/conf/distro/include/arm-autonomy-host.inc +++ b/meta-arm-autonomy/conf/distro/include/arm-autonomy-host.inc @@ -3,3 +3,7 @@ # We need to have xen and ipv4 activated DISTRO_FEATURES_append = " xen ipv4" +# Don't include kernels in standard images when building arm-autonomy-host +# If the kernel image is needed in the rootfs the following should be set from +# a bbappend: RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "${KERNEL_PACKAGE_NAME}-image" +RDEPENDS_${KERNEL_PACKAGE_NAME}-base ?= ""