kbuild: Use KCONFIG_CONFIG in buildtar

Previously, .config was used in buildtar script regardless of the value of
KCONFIG_CONFIG.

Signed-off-by: Nicolas Porcel <nicolasporcel06@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

authored by

Nicolas Porcel and committed by
Masahiro Yamada
cfd63736 de8cf950

+2 -2
+2 -2
scripts/package/buildtar
··· 56 56 # 57 57 # Try to install modules 58 58 # 59 - if grep -q '^CONFIG_MODULES=y' "${objtree}/.config"; then 59 + if grep -q '^CONFIG_MODULES=y' "${KCONFIG_CONFIG}"; then 60 60 make ARCH="${ARCH}" O="${objtree}" KBUILD_SRC= INSTALL_MOD_PATH="${tmpdir}" modules_install 61 61 fi 62 62 ··· 65 65 # Install basic kernel files 66 66 # 67 67 cp -v -- "${objtree}/System.map" "${tmpdir}/boot/System.map-${KERNELRELEASE}" 68 - cp -v -- "${objtree}/.config" "${tmpdir}/boot/config-${KERNELRELEASE}" 68 + cp -v -- "${KCONFIG_CONFIG}" "${tmpdir}/boot/config-${KERNELRELEASE}" 69 69 cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}" 70 70 71 71