diff options
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index d555fc04b9..04a2f883b9 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -44,7 +44,8 @@ do_patch() { | |||
44 | } | 44 | } |
45 | 45 | ||
46 | do_kernel_checkout() { | 46 | do_kernel_checkout() { |
47 | if [ -d ${WORKDIR}/git/.git/refs/remotes/origin ]; then | 47 | if [ -d $ |
48 | {WORKDIR}/git/.git/refs/remotes/origin ]; then | ||
48 | echo "Fixing up git directory for ${LINUX_KERNEL_TYPE}/${KMACHINE}" | 49 | echo "Fixing up git directory for ${LINUX_KERNEL_TYPE}/${KMACHINE}" |
49 | rm -rf ${S} | 50 | rm -rf ${S} |
50 | mkdir ${S} | 51 | mkdir ${S} |
@@ -88,8 +89,18 @@ do_kernel_configme[dirs] = "${CCACHE_DIR} ${S} ${B}" | |||
88 | do_kernel_configme() { | 89 | do_kernel_configme() { |
89 | echo "[INFO] doing kernel configme" | 90 | echo "[INFO] doing kernel configme" |
90 | 91 | ||
92 | if [ -n ${KCONFIG_MODE} ]; then | ||
93 | configmeflags=${KCONFIG_MODE} | ||
94 | else | ||
95 | # If a defconfig was passed, use =n as the baseline, which is achieved | ||
96 | # via --allnoconfig | ||
97 | if [ -f ${WORKDIR}/defconfig ]; then | ||
98 | configmeflags="--allnoconfig" | ||
99 | fi | ||
100 | fi | ||
101 | |||
91 | cd ${S} | 102 | cd ${S} |
92 | configme --reconfig --output ${B} ${KBRANCH} ${KMACHINE} | 103 | configme ${configmeflags} --reconfig --output ${B} ${KBRANCH} ${KMACHINE} |
93 | if [ $? -ne 0 ]; then | 104 | if [ $? -ne 0 ]; then |
94 | echo "ERROR. Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}" | 105 | echo "ERROR. Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}" |
95 | exit 1 | 106 | exit 1 |