summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-12-15 09:11:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-12-15 10:18:30 +0100
commita3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97 (patch)
tree7a9076c1a20df00baeadca9a07d4c1f5cd0611e2 /lib
parentcaa5cec7b1c93d660aa89d24eb160ab18e4eb628 (diff)
downloadbarebox-a3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97.tar.gz
barebox-a3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97.tar.xz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/bus.c2
-rw-r--r--lib/crc32.c4
-rw-r--r--lib/driver.c12
-rw-r--r--lib/libgen.c2
-rw-r--r--lib/make_directory.c6
-rw-r--r--lib/parameter.c2
-rw-r--r--lib/recursive_action.c4
7 files changed, 16 insertions, 16 deletions
diff --git a/lib/bus.c b/lib/bus.c
index ac90b49a82..e0dd9ea58e 100644
--- a/lib/bus.c
+++ b/lib/bus.c
@@ -1,5 +1,5 @@
/*
- * bus.c - U-Boot driver model
+ * bus.c - barebox driver model
*
* Copyright (c) 2009 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
*
diff --git a/lib/crc32.c b/lib/crc32.c
index 9a2f8f5f56..2ed2df04c2 100644
--- a/lib/crc32.c
+++ b/lib/crc32.c
@@ -8,7 +8,7 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#ifdef __U_BOOT__ /* Shut down "ANSI does not permit..." warnings */
+#ifdef __BAREBOX__ /* Shut down "ANSI does not permit..." warnings */
#include <common.h> /* to get command definitions like CFG_CMD_JFFS2 */
#endif
@@ -149,7 +149,7 @@ ulong crc32(ulong crc, const unsigned char *buf, uint len)
} while (--len);
return crc ^ 0xffffffffL;
}
-#ifdef __U_BOOT__
+#ifdef __BAREBOX__
EXPORT_SYMBOL(crc32);
#endif
diff --git a/lib/driver.c b/lib/driver.c
index 67c7b0f517..b3115de592 100644
--- a/lib/driver.c
+++ b/lib/driver.c
@@ -1,5 +1,5 @@
/*
- * driver.c - U-Boot driver model
+ * driver.c - barebox driver model
*
* Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
*
@@ -22,7 +22,7 @@
/**
* @file
- * @brief U-Boot's driver model, and devinfo command
+ * @brief barebox's driver model, and devinfo command
*/
#include <common.h>
@@ -334,11 +334,11 @@ static const __maybe_unused char cmd_devinfo_help[] =
"drivers. If called with a device path as argument devinfo shows more detailed\n"
"information about this device and its parameters.\n";
-U_BOOT_CMD_START(devinfo)
+BAREBOX_CMD_START(devinfo)
.cmd = do_devinfo,
.usage = "display info about devices and drivers",
- U_BOOT_CMD_HELP(cmd_devinfo_help)
-U_BOOT_CMD_END
+ BAREBOX_CMD_HELP(cmd_devinfo_help)
+BAREBOX_CMD_END
#endif
@@ -353,7 +353,7 @@ U_BOOT_CMD_END
*
* Example from an MPC5200 based system:
@verbatim
- uboot:/ devinfo /dev/eth0
+ barebox:/ devinfo /dev/eth0
base : 0x1002b000
size : 0x00000000
driver: fec_mpc5xxx
diff --git a/lib/libgen.c b/lib/libgen.c
index 8cd0b41969..e1093f16d8 100644
--- a/lib/libgen.c
+++ b/lib/libgen.c
@@ -1,5 +1,5 @@
/*
- * libgen.c - some libgen functions needed for U-Boot
+ * libgen.c - some libgen functions needed for barebox
*
* See file CREDITS for list of people who contributed to this
* project.
diff --git a/lib/make_directory.c b/lib/make_directory.c
index afbf84e6ab..274bc146cf 100644
--- a/lib/make_directory.c
+++ b/lib/make_directory.c
@@ -1,7 +1,7 @@
#include <string.h>
#include <errno.h>
-#ifdef __U_BOOT__
+#ifdef __BAREBOX__
#include <fs.h>
#include <malloc.h>
#include <common.h>
@@ -33,7 +33,7 @@ int make_directory(const char *dir)
/* If we failed for any other reason than the directory
* already exists, output a diagnostic and return -1.*/
-#ifdef __U_BOOT__
+#ifdef __BAREBOX__
if (errno != -EEXIST)
#else
if (errno != EEXIST)
@@ -52,6 +52,6 @@ out:
free(path);
return errno;
}
-#ifdef __U_BOOT__
+#ifdef __BAREBOX__
EXPORT_SYMBOL(make_directory);
#endif
diff --git a/lib/parameter.c b/lib/parameter.c
index 1f683b2684..6b32207cd5 100644
--- a/lib/parameter.c
+++ b/lib/parameter.c
@@ -135,7 +135,7 @@ int dev_add_param(struct device_d *dev, struct param_d *newparam)
@section params_devices Devices can have several parameters.
In case of a network device this may be the IP address, networking mask or
-similar and users need access to these parameters. In U-Boot this is solved
+similar and users need access to these parameters. In barebox this is solved
with device paramters. Device parameters are always strings, although there
are functions to interpret them as something else. 'hush' users can access
parameters as a local variable which have a dot (.) in them. So setting the
diff --git a/lib/recursive_action.c b/lib/recursive_action.c
index b86445d662..1ef758df61 100644
--- a/lib/recursive_action.c
+++ b/lib/recursive_action.c
@@ -6,7 +6,7 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#ifdef __U_BOOT__
+#ifdef __BAREBOX__
#include <common.h>
#include <fs.h>
@@ -129,6 +129,6 @@ done_nak_warn:
return 0;
}
-#ifdef __U_BOOT__
+#ifdef __BAREBOX__
EXPORT_SYMBOL(recursive_action);
#endif