Re: [PATCH TRIVIAL v2] Avoid conflict with host definitions when cross-compiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Michal,


2015-08-20 20:31 GMT+09:00 Michal Marek <mmarek@xxxxxxxx>:
> On 2015-08-14 12:52, Pavel Fedin wrote:
>> Certain platforms (e. g. BSD-based ones) define some ELF constants
>> according to host. This patch fixes problems with cross-building
>> Linux kernel on these platforms (e. g. building ARM 32-bit version
>> on x86-64 host).
>>
>> Signed-off-by: Pavel Fedin <p.fedin@xxxxxxxxxxx>
>
> Thanks, applied to kbuild.git#kbuild. But it seems that
> arch/x86/tools/relocs needs the same fix.
>
> Michal


I am not happy with getting weird code to work around issues on
non-Linux systems.

Is it justified to make efforts to build Linux
on other systems than Linux?


Documentation/Changes implies that already running a Linux system is
the requirement:

  Again, keep in mind that this list assumes you are already functionally
  running a Linux kernel.



I work on U-boot, which allows to be built on non-Linux systems.

This is what happened in U-boot community.

In order to build U-boot on non-Linux OSes,
GNU-extensions are forbidden even if they are cool.

After all, such patches are here and there.

http://patchwork.ozlabs.org/patch/395588/
http://patchwork.ozlabs.org/patch/397453/
http://patchwork.ozlabs.org/patch/378773/



Actually, 99% developers work on Linux systems, i.e. they only build
on Linux systems
and send patches.
1% developers send work-around patches to build on other OSes.

Nobody can cover all systems, such as Cygwin, BSD, Mac-OS, etc.

After a long run, mysterious code is sprinkled,
which nobody can judge if it is correct or not.



-- 
Best Regards
Masahiro Yamada
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux