]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-qoriq: save the merged .config as ${WORKDIR}/defconfig
authorTing Liu <ting.liu@nxp.com>
Sat, 9 Jan 2016 06:43:00 +0000 (14:43 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:22 +0000 (15:03 -0300)
In fsl-kernel-localversion.bbclass, ${B}/.config will be regenerated
based on ${WORKDIR}/defconfig. Save the merged .config to avoid issue.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-kernel/linux/linux-qoriq.inc

index 6c925de33c6f440330630a3a7037104b46176ece..950c08c92ee1534b7c996ac4e6b1549b50f736fd 100644 (file)
@@ -23,8 +23,7 @@ DELTA_KERNEL_DEFCONFIG ?= ""
 
 do_configure_prepend() {
     # copy desired defconfig so we pick it up for the real kernel_do_configure
-    cp ${KERNEL_DEFCONFIG} ${B}/.config
-    cp ${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig
+    cp ${KERNEL_DEFCONFIG} .config
     # add config fragments
     for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
         if [ -f "${deltacfg}" ]; then
@@ -34,7 +33,7 @@ do_configure_prepend() {
                 ${S}/arch/powerpc/configs/${deltacfg}
         fi
     done
-
+    cp .config ${WORKDIR}/defconfig
 }
 
 do_install_append_qoriq-arm() {