diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/toradex-kernel-deploy-config.bbclass | 8 |
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} +} |