summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-yocto.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r--meta/classes/kernel-yocto.bbclass17
1 files changed, 11 insertions, 6 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 8479b395cd..70521a4fb3 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -131,17 +131,22 @@ do_kernel_configme() {
131 echo "ERROR. Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}" 131 echo "ERROR. Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}"
132 exit 1 132 exit 1
133 fi 133 fi
134 134
135 echo "# Global settings from linux recipe" >> ${B}/.config 135 echo "# Global settings from linux recipe" >> ${B}/.config
136 echo "CONFIG_LOCALVERSION="\"${LINUX_VERSION_EXTENSION}\" >> ${B}/.config 136 echo "CONFIG_LOCALVERSION="\"${LINUX_VERSION_EXTENSION}\" >> ${B}/.config
137} 137}
138 138
139do_kernel_configcheck() { 139python do_kernel_configcheck() {
140 echo "[INFO] validating kernel configuration" 140 import bb, re, string, sys, commands
141 cd ${B}/..
142 kconf_check ${B}/.config ${B} ${S} ${B} ${LINUX_VERSION} ${KMACHINE}-${LINUX_KERNEL_TYPE}
143}
144 141
142 bb.plain("NOTE: validating kernel configuration")
143
144 pathprefix = "export PATH=%s; " % bb.data.getVar('PATH', d, True)
145 cmd = bb.data.expand("cd ${B}/..; kconf_check -${LINUX_KERNEL_TYPE}-config-${LINUX_VERSION} ${B} ${S} ${B} ${KBRANCH}",d )
146 ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd))
147
148 bb.plain( "%s" % result )
149}
145 150
146# Ensure that the branches (BSP and meta) are on the locatios specified by 151# Ensure that the branches (BSP and meta) are on the locatios specified by
147# their SRCREV values. If they are NOT on the right commits, the branches 152# their SRCREV values. If they are NOT on the right commits, the branches