[U-Boot-Users] [PATCH] 5/9: general
Wolfgang Denk
wd at denx.de
Thu Mar 6 14:14:15 CET 2003
In message <20030306123421.GR16290 at pengutronix.de> you wrote:
>
> - compiler run breaks when inca-ip_sw.o is included. Somebody might want
> to find the real reason...
My fault. The file will show up in CVS soon.
> - mkimage should work when being called from _everywhere_...
Where is the problem?
> diff -urN -x CVS -x ptx-patches -x logfile -x logfile1 u-boot/tools/mkimage.c u-boot-ptx/tools/mkimage.c
> --- u-boot/tools/mkimage.c 2002-12-19 09:19:19.000000000 +0100
> +++ u-boot-ptx/tools/mkimage.c 2002-12-19 09:22:12.000000000 +0100
> @@ -17,6 +17,7 @@
> #include <sys/stat.h>
> #include <time.h>
> #include <unistd.h>
> +#include <libgen.h>
>
> #if defined(__BEOS__) || defined(__NetBSD__) || defined(__APPLE__)
> #include <inttypes.h>
> @@ -156,7 +157,7 @@
> unsigned char *ptr;
> char *name = "";
>
> - cmdname = *argv;
> + cmdname = basename(*argv);
cmdname is used only in error messages, and I _want_ it to print
argv[0], nut just the basenamen.
Rejected.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
The price of curiosity is a terminal experience.
- Terry Pratchett, _The Dark Side of the Sun_
More information about the U-Boot
mailing list