All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/faddr2line: fix CROSS_COMPILE unset error
@ 2017-12-06  1:30 Liu, Changcheng
  2017-12-06 19:16 ` Richard Weinberger
  0 siblings, 1 reply; 2+ messages in thread
From: Liu, Changcheng @ 2017-12-06  1:30 UTC (permalink / raw)
  To: tglx, gregkh, pombredanne, neilb, richard.weinberger
  Cc: linux-kernel, akpm, changcheng.liu

faddr2line hit var unbound error When CROSS_COMPILE
isn't set since nounset option is set in bash script.

Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
Reported-by: Richard Weinberger <richard.weinberger@gmail.com>

diff --git a/scripts/faddr2line b/scripts/faddr2line
index 39e07d8..7721d5b 100755
--- a/scripts/faddr2line
+++ b/scripts/faddr2line
@@ -44,10 +44,10 @@
 set -o errexit
 set -o nounset
 
-READELF="${CROSS_COMPILE}readelf"
-ADDR2LINE="${CROSS_COMPILE}addr2line"
-SIZE="${CROSS_COMPILE}size"
-NM="${CROSS_COMPILE}nm"
+READELF="${CROSS_COMPILE:-}readelf"
+ADDR2LINE="${CROSS_COMPILE:-}addr2line"
+SIZE="${CROSS_COMPILE:-}size"
+NM="${CROSS_COMPILE:-}nm"
 
 command -v awk >/dev/null 2>&1 || die "awk isn't installed"
 command -v ${READELF} >/dev/null 2>&1 || die "readelf isn't installed"
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] scripts/faddr2line: fix CROSS_COMPILE unset error
  2017-12-06  1:30 [PATCH] scripts/faddr2line: fix CROSS_COMPILE unset error Liu, Changcheng
@ 2017-12-06 19:16 ` Richard Weinberger
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Weinberger @ 2017-12-06 19:16 UTC (permalink / raw)
  To: Liu, Changcheng, linux-kernel; +Cc: tglx, gregkh, pombredanne, neilb, akpm

Am Mittwoch, 6. Dezember 2017, 02:30:22 CET schrieb Liu, Changcheng:
> faddr2line hit var unbound error When CROSS_COMPILE
> isn't set since nounset option is set in bash script.
> 
> Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
> Reported-by: Richard Weinberger <richard.weinberger@gmail.com>
> 
> diff --git a/scripts/faddr2line b/scripts/faddr2line
> index 39e07d8..7721d5b 100755
> --- a/scripts/faddr2line
> +++ b/scripts/faddr2line
> @@ -44,10 +44,10 @@
>  set -o errexit
>  set -o nounset
> 
> -READELF="${CROSS_COMPILE}readelf"
> -ADDR2LINE="${CROSS_COMPILE}addr2line"
> -SIZE="${CROSS_COMPILE}size"
> -NM="${CROSS_COMPILE}nm"
> +READELF="${CROSS_COMPILE:-}readelf"
> +ADDR2LINE="${CROSS_COMPILE:-}addr2line"
> +SIZE="${CROSS_COMPILE:-}size"
> +NM="${CROSS_COMPILE:-}nm"
> 
>  command -v awk >/dev/null 2>&1 || die "awk isn't installed"
>  command -v ${READELF} >/dev/null 2>&1 || die "readelf isn't installed"

Fixes: 95a879825419 ("scripts/faddr2line: extend usage on generic arch")
Reviewed-by: Richard Weinberger <richard@nod.at>

Thanks,
//richard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-06 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06  1:30 [PATCH] scripts/faddr2line: fix CROSS_COMPILE unset error Liu, Changcheng
2017-12-06 19:16 ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.