diff options
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 04a2f883b9..ad14aacd7e 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -6,6 +6,15 @@ do_patch() { | |||
6 | defconfig=${WORKDIR}/defconfig | 6 | defconfig=${WORKDIR}/defconfig |
7 | fi | 7 | fi |
8 | 8 | ||
9 | # if kernel tools are available in-tree, they are preferred | ||
10 | # and are placed on the path before any external tools. Unless | ||
11 | # the external tools flag is set, in that case we do nothing. | ||
12 | if [ -f "${S}/scripts/util/configme" ]; then | ||
13 | if [ -z "${EXTERNAL_KERNEL_TOOLS}" ]; then | ||
14 | PATH=${S}/scripts/util:${PATH} | ||
15 | fi | ||
16 | fi | ||
17 | |||
9 | kbranch=${KBRANCH} | 18 | kbranch=${KBRANCH} |
10 | if [ -n "${YOCTO_KERNEL_EXTERNAL_BRANCH}" ]; then | 19 | if [ -n "${YOCTO_KERNEL_EXTERNAL_BRANCH}" ]; then |
11 | # switch from a generic to a specific branch | 20 | # switch from a generic to a specific branch |
@@ -100,6 +109,7 @@ do_kernel_configme() { | |||
100 | fi | 109 | fi |
101 | 110 | ||
102 | cd ${S} | 111 | cd ${S} |
112 | PATH=${PATH}:${S}/scripts/util | ||
103 | configme ${configmeflags} --reconfig --output ${B} ${KBRANCH} ${KMACHINE} | 113 | configme ${configmeflags} --reconfig --output ${B} ${KBRANCH} ${KMACHINE} |
104 | if [ $? -ne 0 ]; then | 114 | if [ $? -ne 0 ]; then |
105 | echo "ERROR. Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}" | 115 | echo "ERROR. Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}" |
@@ -116,7 +126,7 @@ python do_kernel_configcheck() { | |||
116 | bb.plain("NOTE: validating kernel configuration") | 126 | bb.plain("NOTE: validating kernel configuration") |
117 | 127 | ||
118 | pathprefix = "export PATH=%s; " % d.getVar('PATH', True) | 128 | pathprefix = "export PATH=%s; " % d.getVar('PATH', True) |
119 | cmd = bb.data.expand("cd ${B}/..; kconf_check -config- ${B} ${S} ${B} ${KBRANCH}",d ) | 129 | cmd = bb.data.expand("cd ${B}/..; ${S}/scripts/util/kconf_check -config- ${B} ${S} ${B} ${KBRANCH}",d ) |
120 | ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd)) | 130 | ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd)) |
121 | 131 | ||
122 | bb.plain( "%s" % result ) | 132 | bb.plain( "%s" % result ) |