diff mbox series

[2/2] kbuild: buildtar: always make modules_install

Message ID 20231121115855.111358-2-pvorel@suse.cz (mailing list archive)
State New, archived
Headers show
Series [1/2] kbuild: builddeb: Remove unused $dirs | expand

Commit Message

Petr Vorel Nov. 21, 2023, 11:58 a.m. UTC
From: Petr Vorel <petr.vorel@gmail.com>

It is done for the same reasons as 4243afdb9326 does it for builddeb:
always runs make modules to install modules.builtin* files, which are
needed for e.g. initramfs-tools or LTP testing tool.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 scripts/package/buildtar | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Masahiro Yamada Nov. 24, 2023, 1:54 p.m. UTC | #1
On Tue, Nov 21, 2023 at 8:59 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> From: Petr Vorel <petr.vorel@gmail.com>
>
> It is done for the same reasons as 4243afdb9326 does it for builddeb:
> always runs make modules to install modules.builtin* files, which are
> needed for e.g. initramfs-tools or LTP testing tool.
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---


Applied to linux-kbuild.


>  scripts/package/buildtar | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/scripts/package/buildtar b/scripts/package/buildtar
> index 8ac075dd0e9c..72c91a1b832f 100755
> --- a/scripts/package/buildtar
> +++ b/scripts/package/buildtar
> @@ -37,11 +37,9 @@ fi
>
>
>  #
> -# Try to install modules
> +# Install modules
>  #
> -if grep -q '^CONFIG_MODULES=y' include/config/auto.conf; then
> -       make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_MOD_PATH="${tmpdir}" modules_install
> -fi
> +make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_MOD_PATH="${tmpdir}" modules_install
>
>
>  #
> --
> 2.42.0
>
diff mbox series

Patch

diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index 8ac075dd0e9c..72c91a1b832f 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -37,11 +37,9 @@  fi
 
 
 #
-# Try to install modules
+# Install modules
 #
-if grep -q '^CONFIG_MODULES=y' include/config/auto.conf; then
-	make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_MOD_PATH="${tmpdir}" modules_install
-fi
+make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_MOD_PATH="${tmpdir}" modules_install
 
 
 #