lkml.org 
[lkml]   [2014]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [U-Boot] [RFC] kbuild.h: workaround for llvm IAS
Hi Jeroen,


On Tue, 24 Jun 2014 21:36:06 +0200
Jeroen Hofstee <jeroen@myspectrum.nl> wrote:

> >> KBuild (ab)uses the asm statement to write to a file and
> >> llvm integrated as chokes about these invalid asm statements.
> >> Workaround it by making it look like valid asm code.
> >>
> >> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> > I think Linux has the same problem.
> >
> > Are you willing to this patch to linux-kbuild ML?
> > Or fixing U-Boot only?
> I don't mind in general, but it is just noise for them (cc-ing them to
> create some). For u-boot (ARM) you actually get a valid binary with
> this patch after clang support has landed, for linux you just get other
> errors as far as I tried (native only), patch below.
>
> However in linux there seem more spots relying on the format, e.g.
> arch/ia64/kvm/Makefile
> arch/ia64/kernel/Makefile
> arch/um/Makefile
>
> So if anything, I think this should be made a general rules first
> in the makefiles. It seems stupid to potentially break something
> while it gains nothing.
>
> So yes, u-boot only afaic, or does that make your syncing more difficult?

I don't think syncing would be difficult.

BTW, do you know how they resolve this build error in other projects,
for example, in llvmlinux ?
http://llvm.linuxfoundation.org/index.php/Main_Page

Linux folks merged Clang support into the top Makefile, but not into ./Kbuild.
I don't know why.


Best Regards
Masahiro Yamada



\
 
 \ /
  Last update: 2014-06-27 09:21    [W:0.073 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site