[Buildroot] Support of iMX6 hardware ?
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Dec 7 08:14:26 UTC 2012
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
More information about the buildroot
mailing list