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

From: Joe Lawrence
Date: Thu Jul 18 2019 - 16:18:38 EST


On 7/17/19 1:21 AM, Masahiro Yamada wrote:
Hi Masahiro,

I'm following this patchset changes as they will affect the klp-convert
series [1] that the livepatching folks have been working on...

Empty files .tmp_versions/*.livepatch are touched
to keep track of 'LIVEPATCH_* := y', right?


Pretty much. From that patchset I think the rework would need to modify..

- [PATCH v4 02/10] kbuild: Support for Symbols.list creation: creates a Symbols.list file of kernel and module symbols, but *not* including any from LIVEPATCH_* modules.

- [PATCH v4 05/10] modpost: Integrate klp-convert: if a LIVEPATCH_* module has changed, call a newly introduced klp-convert script on it.

- [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules: find any LIVEPATCH_* mod, add it to a livepatchmods file, then pass that file to modpost

Perhaps, adding a new field
to *.mod files might be cleaner.

I can look into that. By "field" you mean a new row in the file?

Regards,

-- Joe