aboutsummaryrefslogtreecommitdiffstats
path: root/classes/fsl-kernel-localversion.bbclass
AgeCommit message (Collapse)Author
2022-08-01classes: fsl-kernel-localversion: fix usage with devtoolFrancesco Valla
Make fsl-kernel-localversion devtool-compatible, avoiding to depend on ${WORKDIR}/defconfig to be present. Two approaches are taken: - for recipes inheriting kernel-yocto, LINUX_VERSION_EXTENSION is set to LOCALVERSION; in this way, the do_kernel_configme task will use it to set CONFIG_LOCALVERSION once the .config file is generated; - for recipes not inheriting kernel-yocto, CONFIG_LOCALVERSION is simply appended to the .config file contained inside the build directory. The do_kernel_localversion is being made executed after do_kernel_configme rather than do_kernel_metadata; in this way, modifications are applied after the config-by-fragments step has already been performed. Signed-off-by: Francesco Valla <valla.francesco@gmail.com> (cherry picked from commit 5d96d634568636aa41faf72356c47f0d04532c87)
2021-04-17classes: fsl-kernel-localversion: Fix config fragments applyOtavio Salvador
We have to ensure the task run do_kernel_metadata so the config fragments can be applied properly. Refs: #707. Fixes: #733. Fixes: 49299998 ("classes: fsl-kernel-localversion: Fix task dependency") Fixes: c7e23876 ("linux-imx.inc: inherit kernel-yocto class") Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> (cherry picked from commit 5943060c8ea892054f2d995d398e21bcb2237543)
2021-04-10classes: fsl-kernel-localversion: Fix task dependencyOtavio Salvador
We need to do any change to the generated `.config` file after it is finished to be modified. In the case of `kernel-yocto` class being in use, we need to do it after `kernel_configme` task. Fixes: c7e23876 ("linux-imx.inc: inherit kernel-yocto class") Fixes: #707. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Change-Id: I7d32b47595dff269defdc5b3f98aa0b9d89b603a (cherry picked from commit 492999986124b5e960d0e21fc81d341458d6c5ad)
2020-11-11fsl-kernel-localversion.bbclass: add preconfigure after do_kernel_metadataMing Liu
do_preconfigure task should run after do_kernel_metadata, or else there might be no ${WORKDIR}/defconfig present when KBUILD_DEFCONFIG is being set rather than defconfig added in SRC_URI. Signed-off-by: Ming Liu <liu.ming50@gmail.com> (cherry picked from commit c25cd3a6366d3a4bd3b1b4d3da0115a600a4e9a9)
2018-04-26fsl-kernel-localversion.bbclass: Allow disabling SCMVERSIONJan Vermaete
Do not add the short git hash to the kernel name when SCMVERSION is not set. Change-Id: I15bf597eab3a811846f3bb28a95b0f8f8a393483 Signed-off-by: Jan Vermaete <jver@oip.be> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-04-30fsl-kernel-localversion: Add preconfigure dependency on do_unpackMats Karrman
Even if 'externalsrc' is used, SRC_URI may specify a 'defconfig'. However as the use of 'externalsrc' will do away with the do_patch task, do_preconfigure is in risk of being run before the defconfig is copied to the build directory. This patch adds a second dependency on 'do_unpack' that makes sure this does not happen. Signed-off-by: Mats Karrman <mats.dev.list@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-08-12fsl-kernel-localversion: Make sure build dir exist before create .configFabio Berton
Create directory ${B} before do_preconfigure task creates file ${B}/.config Fix error: ../fsl-community-bsp/build/tmp/work/imx6slevk-poky-linux-gnueabi/linux-fslc-imx/ 4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0/temp/run.do_preconfigure.16220: line 109: ../fsl-community-bsp/build/tmp/work/imx6slevk-poky-linux-gnueabi/ linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0/build/.config: No such file or directory Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-06-27fsl-kernel-localversion: Configure kernel in a separate taskAdrian Dudau
As it is implemented right now this class overwrites the .config file making it impossible for any other layer to configure the kernel in a .bbappend to the kernel recipe. By doing it in a separate task before do_configure we ensure that recipe .bbappends can make further kernel configurations in do_configure_prepend. Signed-off-by: Adrian Dudau <adrian.dudau@enea.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-07-16Move meta-fsl-arm content to layer rootOtavio Salvador
The meta-fsl-arm is going to be used as the base for this layer. It contains a clean history and allowing a more granullar set of changes. This commit is just a rename of all contents of meta-fsl-arm subdirectory to this layer's root, subsequent changes are based on top of that. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>