diff options
author | Gary Bisson <gary.bisson@boundarydevices.com> | 2015-09-23 15:39:26 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-09-30 22:06:47 +0200 |
commit | ff3e2d69a94392a444eeaf988f8a054d43b354cc (patch) | |
tree | 5d1fa45767aca872c54c6852209b88cad7b1fde7 /package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch | |
parent | 8f1c4c49a2ab0fc9e6cf73370f4483e253e5ac2d (diff) | |
download | buildroot-ff3e2d69a94392a444eeaf988f8a054d43b354cc.tar.gz buildroot-ff3e2d69a94392a444eeaf988f8a054d43b354cc.zip |
imx-kobs: add new package
Based on the Yocto 3.14.28-1.0.0_ga update:
https://github.com/Freescale/meta-fsl-arm/commit/6c44744
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch')
-rw-r--r-- | package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch b/package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch new file mode 100644 index 0000000000..ce123de9cc --- /dev/null +++ b/package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch @@ -0,0 +1,39 @@ +[PATCH] Fix musl build + +Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> +--- + src/mtd.c | 1 + + src/mtd.h | 5 +++++ + 2 files changed, 6 insertions(+) + +diff --git a/src/mtd.c b/src/mtd.c +index 1edc441..6d2264c 100644 +--- a/src/mtd.c ++++ b/src/mtd.c +@@ -31,6 +31,7 @@ + #include <fcntl.h> + #include <ctype.h> + #include <errno.h> ++#include <stddef.h> + #include <sys/types.h> + #include <sys/ioctl.h> + +diff --git a/src/mtd.h b/src/mtd.h +index bd21add..debfc84 100644 +--- a/src/mtd.h ++++ b/src/mtd.h +@@ -31,6 +31,11 @@ + #include "BootControlBlocks.h" + #include "rom_nand_hamming_code_ecc.h" + ++// musl library doesn't define loff_t ++#if !defined(__GLIBC__) && !defined(__UCLIBC__) ++#define loff_t off_t ++#endif ++ + //------------------------------------------------------------------------------ + // Re-definitions of true and false, because the standard ones aren't good + // enough? +-- +2.5.1 + |