On Mon, May 26, 2014 at 11:21 PM, Justin Cormack
<[email protected]> wrote:
> On Mon, May 26, 2014 at 1:29 PM, Antti Kantee <[email protected]> wrote:
>> On 25/05/14 16:49, Justin Cormack wrote:
>>>> Dunno, it sounds like a lot more work for us to provide some -m/-n
>>>> grammar instead of just allowing to specify compiler flags.  It's also
>>>> more work for the users, since they can't quite be sure if -m/-n params
>>>> map to the compiler flags they know (and I do assume that anyone who
>>>> wants to compile for earmv7hf knows what they're doing ;)
>>>
>>> True. How about rather than -F CFLAGS=... accepting all the -m options
>>> like -mpcu=... -mabi= -marm -mtune= and passing them to the
>>> appropriate CFLAGS/AFLAGS/LDFLAGS (most can just go to all three).
>>
>> If there's something that should go to all of C/A/CPP/LDFLAGS, maybe we
>> can just add a shortcut -F ALLFLAGS which does that.  Once again, I'm
>> hesitant to add too much "smartness" into the script, because
>> "smartness" seems to invariably do the wrong thing.
>>
>
> normally you want AFLAGS=CFLAGS so added ACFLAGS
>
> First version in the flags branch
> https://github.com/rumpkernel/buildrump.sh/tree/flags
>
> So you can eg do a build:
>
> ./buildrump.sh -F ACFLAGS='-m32 -march=i586' -F LDFLAGS='-m32'  fullbuild
>
> There is an issue with travis and argument expansion to deal with...

OK fixed that, I think its looking sane.

There are some interactions between -32 and other flags, eg you cant do
./buildrump.sh -32 -F CFLAGS='-march=i586' you need to use -m32 in
flags too - not sure this is worth fixing, I think the behaviour is
not unexpected. I think it fixes all my cross build and mips issues
too.

Justin

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users

Reply via email to