# Re: \[PATCH v1 3/5\] kbuild/modpost: integrate klp-convert

- From: Lukas Hruska \<hidden\>
- Date: 2024-01-25 09:44:42 
- List: live-patching
- Page: https://ratatoskr.run/live-patching/2024/01/2471415
- Thread: https://ratatoskr.run/live-patching/2023/11/2390864/t.md

```text
There is also a typo in Makefile which causes a modules.livepatch file
to be created in kernel sources even in case of building an external
module.

> diff --git a/Makefile b/Makefile
> index 2fdd8b40b7e0..459b9c9fe0a8 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1185,6 +1185,7 @@ PHONY += prepare0
>  export extmod_prefix = $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/)
>  export MODORDER := $(extmod_prefix)modules.order
>  export MODULES_NSDEPS := $(extmod_prefix)modules.nsdeps
> +export MODULES_LIVEPATCH := $(extmod-prefix)modules.livepatch

This should be `$(extmod_prefix)`.

Best Regards,
Lukas
```
