All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] make clean problem
@ 2008-10-08 13:52 Eugene O'Brien
  2008-10-08 15:26 ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Eugene O'Brien @ 2008-10-08 13:52 UTC (permalink / raw)
  To: u-boot

Hello,

I just stumbled on a problem with the make clean command in U-Boot. When
executing make clean I noticed that some programmes that should have
been deleted were not deleted. These were the programmes to be deleted
with instructions such as:

@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.

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.

What is best course of action? Choosing (a) means that we are specifying
BASH as a requirement for the U-Boot HOST environment. If this is
already the case then solution (a) is perhaps the best and limits U-Boot
regression testing to one shell type. Otherwise if we want to be
compatible with /bin/sh then I believe solution (b) is preferable.

Regards,
Eugene O'Brien

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

end of thread, other threads:[~2008-10-08 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 13:52 [U-Boot] make clean problem Eugene O'Brien
2008-10-08 15:26 ` Wolfgang Denk
2008-10-08 18:08   ` Jerry Van Baren
2008-10-08 19:13     ` Wolfgang Denk
     [not found]       ` <d66caabb0810081414y21152e4cw67a268d385dde4b7@mail.gmail.com>
2008-10-08 21:16         ` Graeme Russ
2008-10-08 22:09           ` Wolfgang Denk

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.