All of lore.kernel.org
 help / color / mirror / Atom feed
* how to build a single module
@ 2023-01-01 20:06 J. R. Okajima
  2023-01-01 20:44 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: J. R. Okajima @ 2023-01-01 20:06 UTC (permalink / raw)
  To: masahiroy, mcgrof; +Cc: linux-kernel

Hello,

In linux-v6.2-rc1, "make brabra/module.ko" to build a single module
doesn't work. It compiles the C source files and produces .o, but the
final 'modpost' returns an error.

$ make fs/aufs/aufs.ko
	:::
  LD [M]  fs/aufs/aufs.o
  MODPOST Module.symvers
ERROR: modpost: fs/aufs/aufs.ko: filename must be suffixed with .o
make[2]: *** [/proj/aufs/aufs6-linux.git/scripts/Makefile.modpost:137: Module.symvers] Error 1
make[1]: *** [/proj/aufs/aufs6-linux.git/Makefile:1996: single_modules] Error 2
make: *** [/proj/aufs/aufs6-linux.git/Makefile:373: __build_one_by_one] Error 2
Command exited with non-zero status 2


Is it related to this commit?
	f65a486821cf 2022-12-14 kbuild: change module.order to list *.o instead of *.ko


J. R. Okajima

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to build a single module
  2023-01-01 20:06 how to build a single module J. R. Okajima
@ 2023-01-01 20:44 ` Randy Dunlap
  2023-01-02  2:30   ` J. R. Okajima
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2023-01-01 20:44 UTC (permalink / raw)
  To: J. R. Okajima, masahiroy, mcgrof; +Cc: linux-kernel



On 1/1/23 12:06, J. R. Okajima wrote:
> Hello,
> 
> In linux-v6.2-rc1, "make brabra/module.ko" to build a single module
> doesn't work. It compiles the C source files and produces .o, but the
> final 'modpost' returns an error.
> 
> $ make fs/aufs/aufs.ko
> 	:::
>   LD [M]  fs/aufs/aufs.o
>   MODPOST Module.symvers
> ERROR: modpost: fs/aufs/aufs.ko: filename must be suffixed with .o
> make[2]: *** [/proj/aufs/aufs6-linux.git/scripts/Makefile.modpost:137: Module.symvers] Error 1
> make[1]: *** [/proj/aufs/aufs6-linux.git/Makefile:1996: single_modules] Error 2
> make: *** [/proj/aufs/aufs6-linux.git/Makefile:373: __build_one_by_one] Error 2
> Command exited with non-zero status 2
> 
> 
> Is it related to this commit?
> 	f65a486821cf 2022-12-14 kbuild: change module.order to list *.o instead of *.ko

Hi,
Please see
  https://lore.kernel.org/linux-kbuild/CA+icZUW9MewkPJKwd4gA+pKADypseiCT0uYyVvFDTura7CzHog@mail.gmail.com/T/#t

Does that fix the problem?

-- 
~Randy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to build a single module
  2023-01-01 20:44 ` Randy Dunlap
@ 2023-01-02  2:30   ` J. R. Okajima
  0 siblings, 0 replies; 3+ messages in thread
From: J. R. Okajima @ 2023-01-02  2:30 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: masahiroy, mcgrof, linux-kernel

Randy Dunlap:
> Please see
>   https://lore.kernel.org/linux-kbuild/CA+icZUW9MewkPJKwd4gA+pKADypseiCT0uYyVvFDTura7CzHog@mail.gmail.com/T/#t
>
> Does that fix the problem?

Yes, it does.
Thanx a lot. I didn't know there is kbuild ML.

J. R. Okajima

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-02  3:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-01 20:06 how to build a single module J. R. Okajima
2023-01-01 20:44 ` Randy Dunlap
2023-01-02  2:30   ` J. R. Okajima

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.