Home > OS >  $(modules: ko: o) what is this grammar
$(modules: ko: o) what is this grammar

Time:11-16

In the kernel makefile:
_modpost: $(if $(KBUILD_MODPOST_NOFINAL) and $(modules: ko: o) and $(modules))
\ scripts \ Makefile modpost
Don't understand the $(modules: ko: o), he belongs to the variable replacement references?
But the makefile to replace references should not be $(modules: ko.=o)?

CodePudding user response:

See community primitive patch I think he is write wrong,,,

CodePudding user response:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/? H=v5.7 - rc2 & amp; Id=ea837f1c050344c3f884531a195c6e339b1a54e8 intention should be to $(modules: ko.=o)

CodePudding user response:

- _modpost: $(modules)
+ # Stop after building. O files if NOFINAL is set. The top service the compile tests quicker
+ _modpost: $(if $(KBUILD_MODPOST_NOFINAL) and $(modules: ko: o) and $(modules))
https://github.com/torvalds/linux/commit/9b9a3f20cbe0ba9269cde6fff9f9c69907e150cf#diff-742ab4bcbdb44545def9a3982e0ac3b0
Until this is deleted, the syntax should be right

CodePudding user response:

refer to the second floor MBeginner response:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/? H=v5.7 - rc2 & amp; Id=ea837f1c050344c3f884531a195c6e339b1a54e8 intention should be to $(modules: ko.=o)

But he's actually can be normal use, variable reference to replace, so long has been normal use,
  • Related