Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Support of iMX6 hardware ?
Date: Fri, 7 Dec 2012 09:14:26 +0100	[thread overview]
Message-ID: <20121207091426.316173d6@skate> (raw)
In-Reply-To: <50C198AD.8030703@wanadoo.fr>

Dear Thierry Bultel,

On Fri, 07 Dec 2012 08:20:13 +0100, Thierry Bultel wrote:

> As soon as I have something working, I will obviously submit
> a patch for it.

Great!

> Thanks for the tip.
> I have (at least) 2 packages to build.
> 
> - The first one was the imx6-lib, that I have added under the Graphics
> section, as a generic-package, and
> 
> define IMX6_LIB_BUILD_CMDS
>       $(MAKE) -C $(@D) all PLATFORM=IMX6Q
> CROSS_COMPILE=$(TARGET_CROSS) INCLUDE=$(INCLUDE)
> endef

Sounds good. We'll do a complete review when you post the entire patch,
but it sounds ok in principle.

> The second one is the xdriver_xf86-video-imx
> It is built as an autotools-package
> But since the 'configure' intrisincs are not really my favorite food,
> I am looking how to add the needed INCLUDE to the CFLAGS that are
> automatically given to it.
> Could you please advise me on how to do it in the cleanest way ?

Depends on whether you need to pass this environment variables at
configure time or at build time.

For configure time:

<foobar>_CONF_ENV = \
	INCLUDE="blabla" \
	CFLAGS="$(TARGET_CFLAGS) -blabla"

For build time:

<foobar>_MAKE_ENV = \
	INCLUDE="blabla" \
	CFLAGS="$(TARGET_CFLAGS) -blabla"

See also
http://buildroot.org/downloads/manual/manual.html#_infrastructure_for_autotools_based_packages

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2012-12-07  8:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-06  9:14 [Buildroot] Support of iMX6 hardware ? Thierry Bultel
2012-12-06 11:48 ` Thomas Petazzoni
2012-12-06 15:35   ` Peter Korsgaard
2012-12-07  7:20   ` Thierry Bultel
2012-12-07  8:14     ` Thomas Petazzoni [this message]
2012-12-07  8:35       ` Samuel Martin
2012-12-07  8:38         ` Thomas Petazzoni
2012-12-07  8:55           ` Samuel Martin
2012-12-07  9:02             ` Thomas Petazzoni

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=20121207091426.316173d6@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --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