[Buildroot] [PATCH] add pre-build script

Spenser Gilliland spenser at gillilanding.com
Thu Feb 14 16:28:24 UTC 2013


On Thu, Feb 14, 2013 at 1:56 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Spenser Gilliland,
>
> On Wed, 13 Feb 2013 19:04:30 -0600, Spenser Gilliland wrote:
>
>> I have a use case for this.  In Microblaze builds, it would be nice to
>> generate optimal cflags from the dts/mhs for use in all software.
>> This could be accomplished by a pre script.
>
> Do you have the example of pre-build script that does this? Changing
> the CFLAGS requires changing some internal Buildroot make variables, so
> I'm not sure how you're doing this from a pre-build script.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com

I'm not doing this with the specific implementation posted.  I'm just
saying it would be a nice feature to have.  Many device trees specify
processor/arch features and optimized cflags can be constructed from
this data.

I currently do this outside of buildroot and just provide
BR2_TARGET_OPTIMIZATION on the make command line from the buildscripts
for the hardware.

It would be nice to have buildroot completely self contained and not
require the software developers to download the additional hardware
files.

Spenser

-- 
Spenser Gilliland
Computer Engineer
Doctoral Candidate


More information about the buildroot mailing list