[lkml]   [2023]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjecthow to build a single module

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

 \ /
  Last update: 2023-03-26 23:24    [W:0.021 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site