Re: [PATCH 08/11] kbuild: create *.mod with full directory path and remove MODVERDIR

2019-07-10 Thread Masahiro Yamada
On Wed, Jul 10, 2019 at 2:37 AM Nicolas Pitre wrote: > > On Tue, 9 Jul 2019, Masahiro Yamada wrote: > > > --- a/scripts/adjust_autoksyms.sh > > +++ b/scripts/adjust_autoksyms.sh > > @@ -47,13 +47,10 @@ cat > "$new_ksyms_file" << EOT > > */ > > > > EOT > > -[ "$(ls -A "$MODVERDIR")" ] && > > -fo

Re: [PATCH 08/11] kbuild: create *.mod with full directory path and remove MODVERDIR

2019-07-09 Thread Nicolas Pitre
On Tue, 9 Jul 2019, Masahiro Yamada wrote: > --- a/scripts/adjust_autoksyms.sh > +++ b/scripts/adjust_autoksyms.sh > @@ -47,13 +47,10 @@ cat > "$new_ksyms_file" << EOT > */ > > EOT > -[ "$(ls -A "$MODVERDIR")" ] && > -for mod in "$MODVERDIR"/*.mod; do > - sed -n -e '3{s/ /\n/g;/^$/!p;}' "

[PATCH 08/11] kbuild: create *.mod with full directory path and remove MODVERDIR

2019-07-08 Thread Masahiro Yamada
While descending directories, Kbuild produces objects for modules, but final *.ko files are linked in the modpost. To keep track of modules, Kbuild creates a *.mod file in $(MODVERDIR) for every module it is building. Some post-processing steps read the necessary information from *.mod files. This