kernel-build.eclass: Read user configs from ESYSROOT

Closes: https://bugs.gentoo.org/771324
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Michał Górny
2025-08-27 14:34:30 +02:00
committed by Mike Gilbert
parent f19be11fe2
commit f8a89f267d

View File

@@ -713,7 +713,7 @@ kernel-build_pkg_postinst() {
# (if applicable).
# 3. Config saved via USE=savedconfig (if applicable).
# 4. Module signing key specified via MODULES_SIGN_KEY* variables.
# 5. User-supplied configs from ${BROOT}/etc/kernel/config.d/*.config.
# 5. User-supplied configs from ${ESYSROOT}/etc/kernel/config.d/*.config.
#
# This function must be called by the ebuild in the src_prepare phase.
kernel-build_merge_configs() {
@@ -726,7 +726,7 @@ kernel-build_merge_configs() {
local shopt_save=$(shopt -p nullglob)
shopt -s nullglob
local user_configs=( "${BROOT}"/etc/kernel/config.d/*.config )
local user_configs=( "${ESYSROOT}"/etc/kernel/config.d/*.config )
eval "${shopt_save}"
local merge_configs=( "${@}" )