[Buildroot] [PATCH 1/1] Fix config.mak.uname to allow cross-compilation

Mauro Condarelli mc5686 at mclink.it
Sun May 22 20:40:04 UTC 2016


Thanks Thomas,
comments below.

Il 22/05/2016 22:29, Thomas Petazzoni ha scritto:
> Hello,
>
> Thanks for your contribution.
>
> On Sun, 22 May 2016 22:24:03 +0200, Mauro Condarelli wrote:
>> Current implementation imperatively sets variables from "uname" output.
>> This breaks cross-compilation because uname is run on host while target
>> configuration may be different.
>>
>> Make current behavior a non-imperative default, so it's possible to
>> force different values setting make variables.
>>
>> To cross-compile it will be necessary to explicitly set the various
>> uname_X variables to values compatible with target.
>> No change is needed with normal host compilation.
>> Patch is trivial.
>>
>> Signed-off-by: Mauro Condarelli <mc5686 at mclink.it>
>> ---
>>   config.mak.uname | 12 ++++++------
>>   1 file changed, 6 insertions(+), 6 deletions(-)
> This patch cannot be applied, as it is a patch against Git directly,
> while you should send patches against Buildroot. I.e, a patch that adds
> a patch.
I know.
My patchset for BuildRoot is in "[Buildroot] [PATCH v2] Fix for GIT cross-compilation."
and includes this patch.
I sent this upstream and it's CC: here only FYI.

Sorry if I broke any rules.
Please advise.

>
> Best regards,
>
> Thomas
Regards
Mauro


More information about the buildroot mailing list