From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnout Vandecappelle Date: Mon, 21 Sep 2015 19:23:15 +0200 Subject: [Buildroot] [PATCH 1/2] imx-kobs: add new package In-Reply-To: <1442839899-18044-2-git-send-email-gary.bisson@boundarydevices.com> References: <1442839899-18044-1-git-send-email-gary.bisson@boundarydevices.com> <1442839899-18044-2-git-send-email-gary.bisson@boundarydevices.com> Message-ID: <56003D03.1040500@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 21-09-15 14:51, Gary Bisson wrote: > 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 > --- > package/freescale-imx/Config.in | 1 + > .../imx-kobs/0001-Fix-musl-build.patch | 43 ++++++++++++++++++++++ > package/freescale-imx/imx-kobs/Config.in | 10 +++++ > package/freescale-imx/imx-kobs/imx-kobs.hash | 2 + > package/freescale-imx/imx-kobs/imx-kobs.mk | 12 ++++++ > 5 files changed, 68 insertions(+) > create mode 100644 package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch > create mode 100644 package/freescale-imx/imx-kobs/Config.in > create mode 100644 package/freescale-imx/imx-kobs/imx-kobs.hash > create mode 100644 package/freescale-imx/imx-kobs/imx-kobs.mk > > diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in > index dffe76f..a958dbd 100644 > --- a/package/freescale-imx/Config.in > +++ b/package/freescale-imx/Config.in > @@ -42,6 +42,7 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM > default "IMX53" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53 > default "IMX6Q" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q > > +source "package/freescale-imx/imx-kobs/Config.in" > source "package/freescale-imx/imx-lib/Config.in" > source "package/freescale-imx/imx-vpu/Config.in" > source "package/freescale-imx/firmware-imx/Config.in" > 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 0000000..4e9c72b > --- /dev/null > +++ b/package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch > @@ -0,0 +1,43 @@ > +[PATCH] Fix musl build > + > +Signed-off-by: Gary Bisson > +--- > + src/mtd.c | 5 +++++ > + src/mtd.h | 5 +++++ > + 2 files changed, 10 insertions(+) > + > +diff --git a/src/mtd.c b/src/mtd.c > +index 1edc441..2d3824e 100644 > +--- a/src/mtd.c > ++++ b/src/mtd.c > +@@ -34,6 +34,11 @@ > + #include > + #include > + > ++// musl offsetof macro is located in stddef.h > ++#if !defined(__GLIBC__) && !defined(__UCLIBC__) Since C99 (and probably C90 as well) specifies that offsetof is in stddef.h, I don't think it's necessary to do this conditionally. Regards, Arnout > ++#include > ++#endif > ++ > + #include "mtd.h" > + #include "rand.h" > + [snip] -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF