[U-Boot] [PATCH 2/2] x86: Allow 32-bit toolchain to compile 64-bit U-Boot

Andy Shevchenko andy.shevchenko at gmail.com
Sun Jul 23 12:51:27 UTC 2017


On Sun, Jul 23, 2017 at 1:48 PM, Bin Meng <bmeng.cn at gmail.com> wrote:
> On Sun, Jul 23, 2017 at 6:36 PM, Andy Shevchenko
> <andy.shevchenko at gmail.com> wrote:
>> On Sun, Jul 23, 2017 at 1:26 PM, Bin Meng <bmeng.cn at gmail.com> wrote:
>>> On Sun, Jul 23, 2017 at 6:07 PM, Andy Shevchenko
>>> <andy.shevchenko at gmail.com> wrote:

>>> Sure. Reword it as "Allow toolchains that are pre-configured to build
>>> 32-bit codes to compile 64-bit U-Boot"?
>>
>> Hmm... The flag you are adding does enforce or allow?
>> So, if -m64 will still allow to compile 32-bit code, then it's
>> allowing, otherwise it's enforcing.
>> Or I miss something?
>
> -m64 will only be passed to compiler when building source files that
> are part of 64-bit U-Boot. For 32-bit U-Boot, it is still -m32.

Yes, what I'm trying to understand is
1. U-Boot is compiled _either_ 64-bit, _or_ 32-bit binary -- correct?
2. If above is correct then -m64 _enforces_ to compile it as 64-bit -- correct?

Or I'm mistaken with the last and -m64 just adds a _preference_ to
compile as 64-bit?

-- 
With Best Regards,
Andy Shevchenko


More information about the U-Boot mailing list