summaryrefslogtreecommitdiffstats
path: root/include/usb_dfu_trailer.h
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 /include/usb_dfu_trailer.h
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 'include/usb_dfu_trailer.h')
-rw-r--r--include/usb_dfu_trailer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/usb_dfu_trailer.h b/include/usb_dfu_trailer.h
index 3903b85b39..2cf66a590c 100644
--- a/include/usb_dfu_trailer.h
+++ b/include/usb_dfu_trailer.h
@@ -3,9 +3,9 @@
/* trailer handling for DFU files */
-#define UBOOT_DFU_TRAILER_V1 1
-#define UBOOT_DFU_TRAILER_MAGIC 0x19731978
-struct uboot_dfu_trailer {
+#define BAREBOX_DFU_TRAILER_V1 1
+#define BAREBOX_DFU_TRAILER_MAGIC 0x19731978
+struct barebox_dfu_trailer {
u_int32_t magic;
u_int16_t version;
u_int16_t length;
@@ -16,11 +16,11 @@ struct uboot_dfu_trailer {
/* we mirror the trailer because we want it to be longer in later versions
* while keeping backwards compatibility */
-static inline void dfu_trailer_mirror(struct uboot_dfu_trailer *trailer,
+static inline void dfu_trailer_mirror(struct barebox_dfu_trailer *trailer,
unsigned char *eof)
{
int i;
- int len = sizeof(struct uboot_dfu_trailer);
+ int len = sizeof(struct barebox_dfu_trailer);
unsigned char *src = eof - len;
unsigned char *dst = (unsigned char *) trailer;