]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-qoriq_4.4: merge config fragments support make config
authorChunrong Guo <chunrong.guo@nxp.com>
Thu, 9 Nov 2017 04:11:17 +0000 (12:11 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 10 Nov 2017 15:57:12 +0000 (13:57 -0200)
*Sometimes kernel configure option is missing if merge kernel config  with merge_config.sh
so merge config fragments support make config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-kernel/linux/linux-qoriq_4.4.bb

index 72177a35412ab0ae26e5fae54c402d6a46a34c81..55c616a5a49219937b8967eb46814ae3ab3109c4 100644 (file)
@@ -30,19 +30,20 @@ DELTA_KERNEL_DEFCONFIG_prepend_qoriq-arm64 = "lsdk.config "
 DELTA_KERNEL_DEFCONFIG_prepend_fsl-lsch2-32b = "multi_v7_lpae.config lsdk.config multi_v8.config "
 DELTA_KERNEL_DEFCONFIG_prepend_ls102xa = "multi_v7_lpae.config lsdk.config "
 
+do_merge_delta_config[dirs] = "${B}"
+
 do_merge_delta_config() {
-    # copy desired defconfig so we pick it up for the real kernel_do_configure
-    cp ${KERNEL_DEFCONFIG} .config
+    # create config with make config
+    oe_runmake  -C ${S} O=${B} ${KERNEL_DEFCONFIG}
     
     # add config fragments
     for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
-        if [ -f "${deltacfg}" ]; then
-            ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
+        if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then
+            oe_runmake  -C ${S} O=${B} ${deltacfg}
         elif [ -f "${WORKDIR}/${deltacfg}" ]; then
             ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg}
-        elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then
-            ${S}/scripts/kconfig/merge_config.sh -m .config \
-                ${S}/arch/${ARCH}/configs/${deltacfg}
+        elif [ -f "${deltacfg}" ]; then
+            ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
         fi
     done
     cp .config ${WORKDIR}/defconfig