From a3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 15 Dec 2009 09:11:09 +0100 Subject: rename U-Boot-v2 project to barebox This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer --- arch/sandbox/os/common.c | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'arch/sandbox/os/common.c') diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c index e89d8a6d36..90486f889f 100644 --- a/arch/sandbox/os/common.c +++ b/arch/sandbox/os/common.c @@ -1,5 +1,5 @@ /* - * common.c - common wrapper functions between U-Boot and the host + * common.c - common wrapper functions between barebox and the host * * Copyright (c) 2007 Sascha Hauer , Pengutronix * @@ -22,10 +22,10 @@ /** * @file - * @brief Common wrapper functions between U-Boot and the host + * @brief Common wrapper functions between barebox and the host */ /* - * These are host includes. Never include any U-Boot header + * These are host includes. Never include any barebox header * files here... */ #include @@ -45,7 +45,7 @@ #include #include /* - * ...except the ones needed to connect with U-Boot + * ...except the ones needed to connect with barebox */ #include #include @@ -96,7 +96,7 @@ int linux_tstc(int fd) /* * We set the timeout here to 100us, because otherwise - * U-Boot would eat all cpu resources while waiting + * barebox would eat all cpu resources while waiting * for input. */ ret = select(fd + 1, &rfds, NULL, NULL, &tv); @@ -217,7 +217,7 @@ void flush_cache(unsigned long dummy1, unsigned long dummy2) /* why should we? */ } -extern void start_uboot(void); +extern void start_barebox(void); extern void mem_malloc_init(void *start, void *end); static int add_image(char *str, char *name) @@ -267,7 +267,7 @@ static int add_image(char *str, char *name) printf("warning: mmapping %s failed\n", file); } - ret = u_boot_register_filedev(hf); + ret = barebox_register_filedev(hf); if (ret) goto err_out; return 0; @@ -329,7 +329,7 @@ int main(int argc, char *argv[]) exit(1); } - u_boot_register_console("cout", -1, fd); + barebox_register_console("cout", -1, fd); break; case 'I': fd = open(optarg, O_RDWR); @@ -338,17 +338,17 @@ int main(int argc, char *argv[]) exit(1); } - u_boot_register_console("cin", fd, -1); + barebox_register_console("cin", fd, -1); break; default: exit(1); } } - u_boot_register_console("console", fileno(stdin), fileno(stdout)); + barebox_register_console("console", fileno(stdin), fileno(stdout)); rawmode(); - start_uboot(); + start_barebox(); /* never reached */ return 0; @@ -363,12 +363,12 @@ static void print_usage(const char *prgname) { printf( "Usage: %s [OPTIONS]\n" -"Start U-Boot.\n" +"Start barebox.\n" "Options:\n" -" -i Map a file to U-Boot. This option can be given multiple\n" +" -i Map a file to barebox. This option can be given multiple\n" " times. The files will show up as /dev/fd0 ... /dev/fdx\n" -" under U-Boot.\n" -" -e Map a file to U-Boot. With this option files are mapped as\n" +" under barebox.\n" +" -e Map a file to barebox. With this option files are mapped as\n" " /dev/env0 ... /dev/envx and thus are used as default\n" " environment. An empty file generated with dd will do to get\n" " started wth an empty environment\n" @@ -381,27 +381,27 @@ static void print_usage(const char *prgname) } /** - * @page uboot_simul U-Boot Simulator + * @page barebox_simul barebox Simulator * - * U-Boot can be run as a simulator on your host to check and debug new non + * barebox can be run as a simulator on your host to check and debug new non * hardware related features. * - * @section simu_build How to build U-Boot for simulation + * @section simu_build How to build barebox for simulation * - * @section simu_run How to run U-Boot simulator + * @section simu_run How to run barebox simulator * - * $ uboot [\] + * $ barebox [\] * * Options can be: * * -i \ * - * Map a \ to U-Boot. This option can be given multiple times. The \s - * will show up as /dev/fd0 ... /dev/fdx in the U-Boot simulator. + * Map a \ to barebox. This option can be given multiple times. The \s + * will show up as /dev/fd0 ... /dev/fdx in the barebox simulator. * * -e \ * - * Map \ to U-Boot. With this option \s are mapped as /dev/env0 ... + * Map \ to barebox. With this option \s are mapped as /dev/env0 ... * /dev/envx and thus are used as default environment. A clean file generated * with dd will do to get started with an empty environment * @@ -415,6 +415,6 @@ static void print_usage(const char *prgname) * Register \ as a console capable of doing stdin. \ can be a regular * file or a fifo. * - * @section simu_dbg How to debug U-Boot simulator + * @section simu_dbg How to debug barebox simulator * */ -- cgit v1.2.3