[U-Boot-Users] [PATCH] Add brackets to if condition in tools/setlocalversion
Wolfgang Denk
wd at denx.de
Fri Mar 21 01:24:34 CET 2008
In message <1206056978-17675-1-git-send-email-Tsi-Chung.Liew at freescale.com> you wrote:
> The long condition in the script causes all ColdFire platforms
> unable to compile correctly. By adding square brackets, all
> compile without error.
>
> Signed-off-by: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
> ---
> tools/setlocalversion | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/setlocalversion b/tools/setlocalversion
> index 9bbdafd..2c27291 100755
> --- a/tools/setlocalversion
> +++ b/tools/setlocalversion
> @@ -11,8 +11,8 @@ cd "${1:-.}" || usage
> # Check for git and a git repo.
> if head=`git rev-parse --verify HEAD 2>/dev/null`; then
> # Do we have an untagged version?
> - if git name-rev --tags HEAD | \
> - grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null; then
> + if [git name-rev --tags HEAD | \
> + grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null]; then
> git describe | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
> fi
Ummm... what exactly has this code, which is running natively in the
shell on your development host, to do with a ColdFire cross-compile?
Note that the very same code is used in the Linux kernel.
If this code doesn't work for you, you also cannot compile any recent
Linux kernel code?
Also, I don't understand what you do.
Unless you can provide a really good explanation why that should be
needed I will reject this patch.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Computers are not intelligent. They only think they are.
More information about the U-Boot
mailing list