提交 6fb7ef5a 编写于 作者: M Masahiro Yamada

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: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 515f4c63
......@@ -13,7 +13,7 @@
set -e
is_enabled() {
grep -q "^$1=y" $KCONFIG_CONFIG
grep -q "^$1=y" include/config/auto.conf
}
if_enabled_echo() {
......
......@@ -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
......
......@@ -7,7 +7,7 @@
set -e
is_enabled() {
grep -q "^$1=y" $KCONFIG_CONFIG
grep -q "^$1=y" include/config/auto.conf
}
if_enabled_echo() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册