commit:     8ccaf4101e7a16a92c6654acc9d58e2238e6e689
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 17 10:38:06 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 10:38:06 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=8ccaf410

gen_determineargs.sh: determine_real_args(): Log readings

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gen_determineargs.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index 76c5b0d..7bebea1 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -244,6 +244,8 @@ determine_real_args() {
                if [ -z "${ARCH}" ]
                then
                        gen_die "Was unable to determine machine hardware name 
using 'uname -m'!"
+               else
+                       print_info 5 "Read '${ARCH}' from 'uname -m' ..."
                fi
 
                case "${ARCH}" in
@@ -276,15 +278,18 @@ determine_real_args() {
        then
                gen_die "Failed to determine CBUILD using '${build_cc} 
-dumpmachine' command!"
        else
+               print_info 5 "CBUILD set to '${CBUILD}' ..."
                CHOST="${CBUILD}"
        fi
        unset build_cc
 
-       if [ "${CMD_CROSS_COMPILE}" != '' ]
+       if [ -n "${CMD_CROSS_COMPILE}" ]
        then
                CHOST="${CMD_CROSS_COMPILE}"
        fi
 
+       print_info 5 "CHOST set to '${CHOST}' ..."
+
        # Initialize variables
        BOOTDIR=$(arch_replace "${BOOTDIR}")
        BOOTDIR=${BOOTDIR%/}    # Remove any trailing slash

Reply via email to