From c39548a74a9ce3d2f9c0c51b3df9dad52efd21c8 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 8 Nov 2012 10:13:30 +0000 Subject: [PATCH] Add u-boot tools. This is needed for buiding Haiku for ARM. --- .../patches/u-boot-tools-2012.10.patch | 120 ++++++++++++++++++ .../u-boot-tools/u-boot-tools-2012.10.bep | 20 +++ 2 files changed, 140 insertions(+) create mode 100644 dev-embedded/u-boot-tools/patches/u-boot-tools-2012.10.patch create mode 100644 dev-embedded/u-boot-tools/u-boot-tools-2012.10.bep diff --git a/dev-embedded/u-boot-tools/patches/u-boot-tools-2012.10.patch b/dev-embedded/u-boot-tools/patches/u-boot-tools-2012.10.patch new file mode 100644 index 000000000..fc0aff4d6 --- /dev/null +++ b/dev-embedded/u-boot-tools/patches/u-boot-tools-2012.10.patch @@ -0,0 +1,120 @@ +diff -ur u-boot-2012.10/common/image.c tmp/u-boot-2012.10/common/image.c +--- u-boot-2012.10/common/image.c 2012-11-08 10:52:02.774111232 +0100 ++++ tmp/u-boot-2012.10/common/image.c 2012-10-15 17:14:08.046399488 +0200 +@@ -71,7 +71,7 @@ + #include "mkimage.h" + #include + #include +-#include ++#include + #endif /* !USE_HOSTCC*/ + + static const table_entry_t uimage_arch[] = { +diff -ur u-boot-2012.10/tools/aisimage.c tmp/u-boot-2012.10/tools/aisimage.c +--- u-boot-2012.10/tools/aisimage.c 2012-11-08 10:48:20.923271168 +0100 ++++ tmp/u-boot-2012.10/tools/aisimage.c 2012-10-15 17:14:08.063176704 +0200 +@@ -26,7 +26,7 @@ + + #include "mkimage.h" + #include "aisimage.h" +-#include ++#include + + #define IS_FNC_EXEC(c) (cmd_table[c].AIS_cmd == AIS_CMD_FNLOAD) + #define WORD_ALIGN0 4 +diff -ur u-boot-2012.10/tools/default_image.c tmp/u-boot-2012.10/tools/default_image.c +--- u-boot-2012.10/tools/default_image.c 2012-11-08 10:48:39.345505792 +0100 ++++ tmp/u-boot-2012.10/tools/default_image.c 2012-10-15 17:14:08.066060288 +0200 +@@ -28,7 +28,7 @@ + */ + + #include "mkimage.h" +-#include ++#include + #include + + static image_header_t header; +diff -ur u-boot-2012.10/tools/fit_image.c tmp/u-boot-2012.10/tools/fit_image.c +--- u-boot-2012.10/tools/fit_image.c 2012-11-08 10:48:56.498860032 +0100 ++++ tmp/u-boot-2012.10/tools/fit_image.c 2012-10-15 17:14:08.000786432 +0200 +@@ -28,7 +28,7 @@ + */ + + #include "mkimage.h" +-#include ++#include + #include + + static image_header_t header; +diff -ur u-boot-2012.10/tools/imximage.c tmp/u-boot-2012.10/tools/imximage.c +--- u-boot-2012.10/tools/imximage.c 2012-11-08 10:52:34.872677376 +0100 ++++ tmp/u-boot-2012.10/tools/imximage.c 2012-10-15 17:14:08.003145728 +0200 +@@ -29,7 +29,7 @@ + #define _GNU_SOURCE + + #include "mkimage.h" +-#include ++#include + #include "imximage.h" + + /* +diff -ur u-boot-2012.10/tools/kwbimage.c tmp/u-boot-2012.10/tools/kwbimage.c +--- u-boot-2012.10/tools/kwbimage.c 2012-11-08 10:52:53.073662464 +0100 ++++ tmp/u-boot-2012.10/tools/kwbimage.c 2012-10-15 17:14:08.003407872 +0200 +@@ -26,7 +26,7 @@ + #define _GNU_SOURCE + + #include "mkimage.h" +-#include ++#include + #include "kwbimage.h" + + /* +diff -ur u-boot-2012.10/tools/mkimage.c tmp/u-boot-2012.10/tools/mkimage.c +--- u-boot-2012.10/tools/mkimage.c 2012-11-08 10:55:06.533463040 +0100 ++++ tmp/u-boot-2012.10/tools/mkimage.c 2012-10-15 17:14:08.005505024 +0200 +@@ -22,7 +22,7 @@ + */ + + #include "mkimage.h" +-#include ++#include + #include + + static void copy_file(int, const char *, int); +diff -ur u-boot-2012.10/tools/omapimage.c tmp/u-boot-2012.10/tools/omapimage.c +--- u-boot-2012.10/tools/omapimage.c 2012-11-08 10:55:39.680525824 +0100 ++++ tmp/u-boot-2012.10/tools/omapimage.c 2012-10-15 17:14:08.006291456 +0200 +@@ -34,7 +34,7 @@ + #define _GNU_SOURCE + + #include "mkimage.h" +-#include ++#include + #include "omapimage.h" + + /* Header size is CH header rounded up to 512 bytes plus GP header */ +diff -ur u-boot-2012.10/tools/pblimage.c tmp/u-boot-2012.10/tools/pblimage.c +--- u-boot-2012.10/tools/pblimage.c 2012-11-08 10:53:09.547356672 +0100 ++++ tmp/u-boot-2012.10/tools/pblimage.c 2012-10-15 17:14:08.008126464 +0200 +@@ -22,7 +22,7 @@ + #define _GNU_SOURCE + + #include "mkimage.h" +-#include ++#include + #include "pblimage.h" + + /* +diff -ur u-boot-2012.10/tools/ublimage.c tmp/u-boot-2012.10/tools/ublimage.c +--- u-boot-2012.10/tools/ublimage.c 2012-11-08 10:55:59.951844864 +0100 ++++ tmp/u-boot-2012.10/tools/ublimage.c 2012-10-15 17:14:08.009175040 +0200 +@@ -33,7 +33,7 @@ + #define _GNU_SOURCE + + #include "mkimage.h" +-#include ++#include + #include "ublimage.h" + + /* diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2012.10.bep b/dev-embedded/u-boot-tools/u-boot-tools-2012.10.bep new file mode 100644 index 000000000..5f038a90f --- /dev/null +++ b/dev-embedded/u-boot-tools/u-boot-tools-2012.10.bep @@ -0,0 +1,20 @@ +DESCRIPTION="utilities for working with Das U-Boot" +HOMEPAGE="http://www.denx.de/wiki/U-Boot/Documentation" +SRC_URI="http://ftp.denx.de/pub/u-boot/u-boot-2012.10.tar.bz2" +REVISION="1" +STATUS_HAIKU="stable" + +BUILD { + cd u-boot-2012.10 + mv include/image.h include/uimage.h + make tools +} + +INSTALL { + cd u-boot-2012.10 + cp -r /tools/mkimage /boot/common/bin/ + cp -r /tools/mkenvimage /boot/common/bin/ +} + +LICENSE="GNU GPL v2" +COPYRIGHT="2003 - 2012 U-Boot"