From 36705df6b7f3df7d913bc5dcc7299d14d9cd5b9f Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 22 Aug 2023 10:09:52 +0200 Subject: toradex-kernel: move deployment of .config into class After building the kernel we want the used config being deployed. This is already implemented for the linux-toradex-mainline recipe, however the downstream vendor based kernels to not deploy the config. Move the functionality to a class and inherit that in the mainline kernel recipe to allow reusing the class in the downstream kernel recipes. Related-to: ELB-5149 Signed-off-by: Max Krummenacher --- classes/toradex-kernel-deploy-config.bbclass | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 classes/toradex-kernel-deploy-config.bbclass (limited to 'classes') diff --git a/classes/toradex-kernel-deploy-config.bbclass b/classes/toradex-kernel-deploy-config.bbclass new file mode 100644 index 0000000..644c731 --- /dev/null +++ b/classes/toradex-kernel-deploy-config.bbclass @@ -0,0 +1,8 @@ +# This deploys the actual used kernel .config file as kernel-config + +KERNEL_CONFIG_NAME ?= "${KERNEL_PACKAGE_NAME}-config-${KERNEL_ARTIFACT_NAME}" +KERNEL_CONFIG_LINK_NAME ?= "${KERNEL_PACKAGE_NAME}-config" +do_deploy:append() { + cp -a ${B}/.config ${DEPLOYDIR}/${KERNEL_CONFIG_NAME} + ln -sf ${KERNEL_CONFIG_NAME} ${DEPLOYDIR}/${KERNEL_CONFIG_LINK_NAME} +} -- cgit v1.2.3