Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] imx-kobs: add new package
Date: Mon, 21 Sep 2015 19:23:15 +0200	[thread overview]
Message-ID: <56003D03.1040500@mind.be> (raw)
In-Reply-To: <1442839899-18044-2-git-send-email-gary.bisson@boundarydevices.com>

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 <gary.bisson@boundarydevices.com>
> ---
>  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 <gary.bisson@boundarydevices.com>
> +---
> + 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 <sys/types.h>
> + #include <sys/ioctl.h>
> + 
> ++// 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 <stddef.h>
> ++#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

  reply	other threads:[~2015-09-21 17:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21 12:51 [Buildroot] [PATCH 0/2] Add imx-kobs package Gary Bisson
2015-09-21 12:51 ` [Buildroot] [PATCH 1/2] imx-kobs: add new package Gary Bisson
2015-09-21 17:23   ` Arnout Vandecappelle [this message]
2015-09-22 17:02     ` Gary Bisson
2015-09-21 12:51 ` [Buildroot] [PATCH 2/2] kobs-ng: remove obsolete package Gary Bisson
2015-09-21 17:23   ` Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56003D03.1040500@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox