Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1513326 > unrolled thread
| Started by | Wei Yang <richard.weiyang@gmail.com> |
|---|---|
| First post | 2016-11-01 17:00 +0100 |
| Last post | 2016-11-01 17:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] kbuild: add %/built-in.o target in top Makefile Wei Yang <richard.weiyang@gmail.com> - 2016-11-01 17:00 +0100
| From | Wei Yang <richard.weiyang@gmail.com> |
|---|---|
| Date | 2016-11-01 17:00 +0100 |
| Subject | Re: [PATCH] kbuild: add %/built-in.o target in top Makefile |
| Message-ID | <syJDI-29m-29@gated-at.bofh.it> |
Hi, hope someone like this :-) On Mon, Oct 24, 2016 at 12:45:11PM +0000, Wei Yang wrote: >Current kbuild just supports building built-in.o in second directory level >individually. There is no rule to build those built-in.o targets below >third directory level. > >Even current kbuild system could achieve this with rule "%/", while this >not only builds built-in targes but also lib target, extra target and >module objects. > >This patch adds the "%/built-in.o" rule so that each built-in.o in the >kernel tree could be the build target, which looks more consistent for the >kbuild system. > >Signed-off-by: Wei Yang <richard.weiyang@gmail.com> >--- > Makefile | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Makefile b/Makefile >index addb235..546998e 100644 >--- a/Makefile >+++ b/Makefile >@@ -1627,6 +1627,8 @@ endif > $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) > %.symtypes: %.c prepare scripts FORCE > $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) >+%/built-in.o: prepare scripts >+ $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) > > # Modules > /: prepare scripts FORCE >-- >2.5.0 -- Wei Yang Help you, Help me
Back to top | Article view | linux.kernel
csiph-web