aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package/buildtar
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-08 18:56:25 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-14 02:39:13 +0900
commit6fb7ef5a343dea78e71600314cbb5e5b7466243b (patch)
tree575fa86dae819d93652b61e7d9dfa46826d8d072 /scripts/package/buildtar
parentkbuild: deb-pkg: introduce is_enabled and if_enabled_echo to builddeb (diff)
downloadlinux-dev-6fb7ef5a343dea78e71600314cbb5e5b7466243b.tar.xz
linux-dev-6fb7ef5a343dea78e71600314cbb5e5b7466243b.zip
kbuild: pkg: grep include/config/auto.conf instead of $KCONFIG_CONFIG
This will be a little more efficient since unset CONFIG options are stripped away from auto.conf, and we can hard-code the path to auto.conf since it is never overridden. include/config/kernel.release is generated before %pkg is run. So, it is guaranteed auto.conf is up-to-date. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/package/buildtar')
-rwxr-xr-xscripts/package/buildtar2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index cfd2a4a3fe42..2f66c81e4021 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -56,7 +56,7 @@ dirs=boot
#
# Try to install modules
#
-if grep -q '^CONFIG_MODULES=y' "${KCONFIG_CONFIG}"; then
+if grep -q '^CONFIG_MODULES=y' include/config/auto.conf; then
make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_MOD_PATH="${tmpdir}" modules_install
dirs="$dirs lib"
fi