building .lst files for a subdirectory

Nicholas Mc Guire der.herr at hofr.at
Wed Feb 20 05:23:49 EST 2019


Hi !

 Probably I´m just overlooking something obvious but trying
 to build .lst files in directories that have no Makefile
 is causing problems. For "normal" files its simply
 $ make path/file.lst
 but that seems to assume that there always is a Makefile in each
 directory. For some drivers this is not the case e.g.
 drivers/staging/rtlwifi/Makefile covers all the subdirectories
 directly and there are no Makefiles or Kbuild files in the
 respective subdirs. So building .lst fails:

hofrat at threadripper:~/git/linux-next$ make drivers/staging/rtlwifi/phydm/rtl_phydm.lst
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  DESCEND  objtool
scripts/Makefile.build:42: drivers/staging/rtlwifi/phydm/Makefile: No such file or directory

 And not too surprising the build instructions from Documentation/kbuild/modules.txt
 will not do the trick either:

hofrat at threadripper:~/git/linux-next/drivers/staging/rtlwifi/phydm$ make -C ~/git/linux-next M=$PWD rtl_phydm.lst
make: Entering directory '/home/hofrat/git/linux-next'
scripts/Makefile.build:42: /home/hofrat/git/linux-next/drivers/staging/rtlwifi/phydm/Makefile: No such file or directory
make[1]: *** No rule to make target '/home/hofrat/git/linux-next/drivers/staging/rtlwifi/phydm/Makefile'.  Stop.
Makefile:1704: recipe for target 'rtl_phydm.lst' failed
make: *** [rtl_phydm.lst] Error 2
make: Leaving directory '/home/hofrat/git/linux-next'

 Any hint how to build those .lst files ?

thx!
hofrat



More information about the Kernelnewbies mailing list