Skip to content

Commit 6fb7ef5

Browse files
committed
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>
1 parent 515f4c6 commit 6fb7ef5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/package/builddeb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
set -e
1414

1515
is_enabled() {
16-
grep -q "^$1=y" $KCONFIG_CONFIG
16+
grep -q "^$1=y" include/config/auto.conf
1717
}
1818

1919
if_enabled_echo() {

scripts/package/buildtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dirs=boot
5656
#
5757
# Try to install modules
5858
#
59-
if grep -q '^CONFIG_MODULES=y' "${KCONFIG_CONFIG}"; then
59+
if grep -q '^CONFIG_MODULES=y' include/config/auto.conf; then
6060
make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_MOD_PATH="${tmpdir}" modules_install
6161
dirs="$dirs lib"
6262
fi

scripts/package/mkdebian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
set -e
88

99
is_enabled() {
10-
grep -q "^$1=y" $KCONFIG_CONFIG
10+
grep -q "^$1=y" include/config/auto.conf
1111
}
1212

1313
if_enabled_echo() {

0 commit comments

Comments
 (0)