diff options
Diffstat (limited to 'eclass/kernel-build.eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 91c962d671ab..ce87fd72acdd 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -302,7 +302,10 @@ kernel-build_src_compile() { targets+=( ctf ) fi - emake O="${WORKDIR}"/build "${MAKEARGS[@]}" "${targets[@]}" + local target + for target in "${targets[@]}" ; do + emake O="${WORKDIR}"/build "${MAKEARGS[@]}" "${target}" + done } # @FUNCTION: kernel-build_src_test @@ -325,9 +328,12 @@ kernel-build_src_test() { strip_args="--strip-unneeded" fi - emake O="${WORKDIR}"/build "${MAKEARGS[@]}" \ - INSTALL_MOD_PATH="${T}" INSTALL_MOD_STRIP="${strip_args}" \ - "${targets[@]}" + local target + for target in "${targets[@]}" ; do + emake O="${WORKDIR}"/build "${MAKEARGS[@]}" \ + INSTALL_MOD_PATH="${T}" INSTALL_MOD_STRIP="${strip_args}" \ + "${target}" + done kernel-install_test "${KV_FULL}" \ "${WORKDIR}/build/$(dist-kernel_get_image_path)" \ @@ -371,9 +377,12 @@ kernel-build_src_install() { ) fi - emake O="${WORKDIR}"/build "${MAKEARGS[@]}" \ - INSTALL_MOD_PATH="${ED}" INSTALL_MOD_STRIP="${strip_args}" \ - INSTALL_PATH="${ED}/boot" "${compress[@]}" "${targets[@]}" + local target + for target in "${targets[@]}" ; do + emake O="${WORKDIR}"/build "${MAKEARGS[@]}" \ + INSTALL_MOD_PATH="${ED}" INSTALL_MOD_STRIP="${strip_args}" \ + INSTALL_PATH="${ED}/boot" "${compress[@]}" "${target}" + done # note: we're using mv rather than doins to save space and time # install main and arch-specific headers first, and scripts |