Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1628574
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 0/2] kbuild: use relative path from $(srctree) instead of __FILE__ |
| Date | 2017-04-21 23:00 +0200 |
| Message-ID | <tyNOO-1YA-5@gated-at.bofh.it> (permalink) |
| References | <tyM6l-1aE-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, 2017-04-22 at 04:03 +0900, Masahiro Yamada wrote: > Kbuild works in objtree, not in srctree. So, __FILE__ is prefixed > with $(srctree)/ for out-of-tree build. > > It would be nice to see the same log regardless > in-tree, or out-of-tree build. > > 1/2 adds a new macro KBUILD_FILE. This points the relative path > of the file we are building. This is intended to replace __FILE__. > > 2/2 replaces __FILE__ in bug.h as an example. This will improve > the output of WARN_ON() etc. Good idea. Perhaps a lot of the in-tree __FILE__ uses should be KBUILD_BASENAME or another new type like KBUILD_PRETTY_FILE
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC PATCH 0/2] kbuild: use relative path from $(srctree) instead of __FILE__ Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-04-21 21:10 +0200 [RFC PATCH 2/2] bug.h: replace __FILE__ with KBUILD_FILE for shorter names in log Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-04-21 21:10 +0200 Re: [RFC PATCH 0/2] kbuild: use relative path from $(srctree) instead of __FILE__ Geert Uytterhoeven <geert@linux-m68k.org> - 2017-04-21 21:50 +0200 Re: [RFC PATCH 0/2] kbuild: use relative path from $(srctree) instead of __FILE__ Joe Perches <joe@perches.com> - 2017-04-21 23:00 +0200
csiph-web