aboutsummaryrefslogtreecommitdiffstats
path: root/classes/fsl-vivante-kernel-driver-handler.bbclass
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-12-10 14:14:35 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-19 15:03:24 -0300
commit992a522b08143886d35007f774d3a24f98c1b841 (patch)
tree5a9a2c4e70cce9c6ad20162883108e4f61cbb42a /classes/fsl-vivante-kernel-driver-handler.bbclass
parentee8b9ad49aecf54b21a3e068f21b9dd0088d074c (diff)
downloadmeta-freescale-992a522b08143886d35007f774d3a24f98c1b841.tar.gz
meta-freescale-992a522b08143886d35007f774d3a24f98c1b841.tar.bz2
meta-freescale-992a522b08143886d35007f774d3a24f98c1b841.zip
fsl-vivante-kernel-driver-handler.bbclass: Postpone defconfig changes
The defconfig changes should be done later in the process so the .config file is generated, using any other mean, and mangled to respect the distribution setting regarding the module use or not. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes/fsl-vivante-kernel-driver-handler.bbclass')
-rw-r--r--classes/fsl-vivante-kernel-driver-handler.bbclass14
1 files changed, 6 insertions, 8 deletions
diff --git a/classes/fsl-vivante-kernel-driver-handler.bbclass b/classes/fsl-vivante-kernel-driver-handler.bbclass
index 740638ac..cdd64506 100644
--- a/classes/fsl-vivante-kernel-driver-handler.bbclass
+++ b/classes/fsl-vivante-kernel-driver-handler.bbclass
@@ -49,17 +49,15 @@ python fsl_vivante_kernel_driver_handler () {
addhandler fsl_vivante_kernel_driver_handler
fsl_vivante_kernel_driver_handler[eventmask] = "bb.event.RecipePreFinalise"
-do_configure_prepend () {
+do_configure_append () {
if [ "${MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT}" = "1" ]; then
- fsl_viv_handler_defconfig="${WORKDIR}/defconfig"
- if [ -e ${B}/.config ]; then
- fsl_viv_handler_defconfig="${B}/.config"
- fi
- sed -i "/CONFIG_MXC_GPU_VIV[ =]/d" $fsl_viv_handler_defconfig
+ config="${B}/.config"
+
+ sed -i "/CONFIG_MXC_GPU_VIV[ =]/d" $config
if [ "${MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE}" = "1" ]; then
- echo "# CONFIG_MXC_GPU_VIV is not set" >> $fsl_viv_handler_defconfig
+ echo "# CONFIG_MXC_GPU_VIV is not set" >> $config
else
- echo "CONFIG_MXC_GPU_VIV=y" >> $fsl_viv_handler_defconfig
+ echo "CONFIG_MXC_GPU_VIV=y" >> $config
fi
fi
}