summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2023-08-22 10:09:52 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2023-08-22 17:17:31 +0200
commit36705df6b7f3df7d913bc5dcc7299d14d9cd5b9f (patch)
treecedf874978dd291115e7a20ee758593132b45e98 /classes
parent1ed5e0041a950758b7f9cfc774fc1dad11db08cc (diff)
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 <max.krummenacher@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/toradex-kernel-deploy-config.bbclass8
1 files changed, 8 insertions, 0 deletions
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}
+}