X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fuboot-tools%2F0003-Fix-musl-build.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fuboot-tools%2F0003-Fix-musl-build.patch;h=7c07dafd42ae4cc18fb7cc31241aa72b346262bb;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/uboot-tools/0003-Fix-musl-build.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/uboot-tools/0003-Fix-musl-build.patch new file mode 100644 index 0000000..7c07daf --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/uboot-tools/0003-Fix-musl-build.patch @@ -0,0 +1,71 @@ +From bf738fda390787a10db0c9a4be9fcafd6707a90e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Krause?= +Date: Sat, 18 Apr 2015 08:00:46 +0200 +Subject: [PATCH 1/1] Fix musl build +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This patch fixes cross-compiling U-Boot tools with the musl C library: + * including is needed for ulong + * defining _GNU_SOURCE is needed for loff_t + +Signed-off-by: Jörg Krause +--- + include/image.h | 1 + + tools/env/fw_env.c | 2 ++ + tools/imagetool.h | 1 + + tools/proftool.c | 1 + + 4 files changed, 5 insertions(+) + +diff --git a/include/image.h b/include/image.h +index 3844be6..ac2fd6e 100644 +--- a/include/image.h ++++ b/include/image.h +@@ -18,6 +18,7 @@ + + #include "compiler.h" + #include ++#include + + /* Define this to avoid #ifdefs later on */ + struct lmb; +diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c +index 1173eea..daa02a7 100644 +--- a/tools/env/fw_env.c ++++ b/tools/env/fw_env.c +@@ -8,6 +8,8 @@ + * SPDX-License-Identifier: GPL-2.0+ + */ + ++#define _GNU_SOURCE ++ + #include + #include + #include +diff --git a/tools/imagetool.h b/tools/imagetool.h +index 3e15b4e..b7874f4 100644 +--- a/tools/imagetool.h ++++ b/tools/imagetool.h +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/tools/proftool.c b/tools/proftool.c +index 3482951..9ce7a77 100644 +--- a/tools/proftool.c ++++ b/tools/proftool.c +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + + #include + #include +-- +2.3.5