From: Chunrong Guo Date: Thu, 9 Nov 2017 04:11:17 +0000 (+0800) Subject: linux-qoriq_4.4: merge config fragments support make config X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=d58f68c0c4bffaab61f3f4aca3a151f4df9fed22;p=meta-freescale.git linux-qoriq_4.4: merge config fragments support make config *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 Signed-off-by: Otavio Salvador --- diff --git a/recipes-kernel/linux/linux-qoriq_4.4.bb b/recipes-kernel/linux/linux-qoriq_4.4.bb index 72177a35..55c616a5 100644 --- a/recipes-kernel/linux/linux-qoriq_4.4.bb +++ b/recipes-kernel/linux/linux-qoriq_4.4.bb @@ -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