[U-Boot] make clean problem
Wolfgang Denk
wd at denx.de
Wed Oct 8 17:26:57 CEST 2008
Dear "Eugene O'Brien",
In message <8B3930FEA8618C44B48EB06B5D33A06E01CCE207 at satmail.Advantech.ca> you wrote:
>
> @rm -f $(obj)tools/env/{fw_printenv,fw_setenv}
>
> The reason is (after scratching my head for a few hours) that on my
> platform BASH is not the default shell. I am using Ubuntu and /bin/sh is
> linked to dash (see https://wiki.ubuntu.com/DashAsBinSh for details). As
> I am not an expert on shells, my guess is that the above construct is a
> "bashism" and not compliant to /bin/sh.
Good catch...
> There are two trivial solutions to this problem:
>
> (a) Add a line SHELL=/bin/bash somewhere in top level Makefile
> (b) Write out each individual file's path name separately in the @rm
> command line.
I think the above way to abbreviate long lists of file names that
have a long common partis pretty useful to keep the code readable, so
I tend to prefer solution (a).
But let's see what other people say...
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
"The first rule of magic is simple. Don't waste your time waving your
hands and hoping when a rock or a club will do."
- McCloctnik the Lucid
More information about the U-Boot
mailing list