Skip to content

Commit

Permalink
kbuild: Use KCONFIG_CONFIG in buildtar
Browse files Browse the repository at this point in the history
Previously, .config was used in buildtar script regardless of the value of
KCONFIG_CONFIG.

Signed-off-by: Nicolas Porcel <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
Nicop06 authored and masahir0y committed Sep 2, 2017
1 parent de8cf95 commit cfd6373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/package/buildtar
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ mkdir -p -- "${tmpdir}/boot"
#
# Try to install modules
#
if grep -q '^CONFIG_MODULES=y' "${objtree}/.config"; then
if grep -q '^CONFIG_MODULES=y' "${KCONFIG_CONFIG}"; then
make ARCH="${ARCH}" O="${objtree}" KBUILD_SRC= INSTALL_MOD_PATH="${tmpdir}" modules_install
fi

Expand All @@ -65,7 +65,7 @@ fi
# Install basic kernel files
#
cp -v -- "${objtree}/System.map" "${tmpdir}/boot/System.map-${KERNELRELEASE}"
cp -v -- "${objtree}/.config" "${tmpdir}/boot/config-${KERNELRELEASE}"
cp -v -- "${KCONFIG_CONFIG}" "${tmpdir}/boot/config-${KERNELRELEASE}"
cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"


Expand Down

0 comments on commit cfd6373

Please sign in to comment.