mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
kernel-build.eclass: fix src_test w/o CTF
Fixes: 983fe336a7
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -312,6 +312,12 @@ kernel-build_src_compile() {
|
||||
kernel-build_src_test() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local targets=( modules_install )
|
||||
|
||||
if grep -q "CONFIG_CTF=y" "${WORKDIR}/modprep/.config"; then
|
||||
targets+=( ctf_install )
|
||||
fi
|
||||
|
||||
# Use the kernel build system to strip, this ensures the modules
|
||||
# are stripped *before* they are signed or compressed.
|
||||
local strip_args
|
||||
@@ -321,7 +327,7 @@ kernel-build_src_test() {
|
||||
|
||||
emake O="${WORKDIR}"/build "${MAKEARGS[@]}" \
|
||||
INSTALL_MOD_PATH="${T}" INSTALL_MOD_STRIP="${strip_args}" \
|
||||
modules_install ctf_install
|
||||
"${targets[@]}"
|
||||
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/build/$(dist-kernel_get_image_path)" \
|
||||
|
||||
Reference in New Issue
Block a user