public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH] Compile external modules with dist-kernel
@ 2023-08-23  0:39 Azamat H. Hackimov
  2023-09-03 20:03 ` Andreas K. Huettel
  0 siblings, 1 reply; 2+ messages in thread
From: Azamat H. Hackimov @ 2023-08-23  0:39 UTC (permalink / raw
  To: gentoo-catalyst; +Cc: Azamat H. Hackimov

If boot/kernel/${kernel}/packages is defined, force build external module packages for dist-kernels.

Also don't unmerge kernel after merging as it may needed for building process, just deselect. Later it will be unmerged by depclean process.
---
 targets/support/kmerge.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
index c5beddc9..7114ff91 100755
--- a/targets/support/kmerge.sh
+++ b/targets/support/kmerge.sh
@@ -152,6 +152,11 @@ if [[ -n ${clst_KERNCACHE} ]]; then
 fi
 
 if [[ ${distkernel} = "yes" ]] ; then
+  # Build external kernel modules
+  if [[ -n ${kernel_merge} ]]; then
+    run_merge ${kernel_merge}
+  fi
+
   # Kernel already built, let's run dracut to make initramfs
   distkernel_source_path=$(equery -Cq f ${ksource} | grep "/usr/src/linux-" -m1)
   distkernel_image_path=$(distkmerge_get_image_path)
@@ -201,6 +206,6 @@ if [[ -n ${clst_KERNCACHE} && ! ${cached_kernel_found} ]]; then
 fi
 
 if [[ ! ${cached_kernel_found} ]]; then
-	run_merge -C "${ksource}"
+	run_merge --deselect "${ksource}"
 	rm /usr/src/linux
 fi
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [gentoo-catalyst] [PATCH] Compile external modules with dist-kernel
  2023-08-23  0:39 [gentoo-catalyst] [PATCH] Compile external modules with dist-kernel Azamat H. Hackimov
@ 2023-09-03 20:03 ` Andreas K. Huettel
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas K. Huettel @ 2023-09-03 20:03 UTC (permalink / raw
  To: gentoo-catalyst; +Cc: Azamat H. Hackimov, Azamat H. Hackimov

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

Thanks, pushed! -a

Am Mittwoch, 23. August 2023, 02:39:03 CEST schrieb Azamat H. Hackimov:
> If boot/kernel/${kernel}/packages is defined, force build external module packages for dist-kernels.
> 
> Also don't unmerge kernel after merging as it may needed for building process, just deselect. Later it will be unmerged by depclean process.
> ---
>  targets/support/kmerge.sh | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
> index c5beddc9..7114ff91 100755
> --- a/targets/support/kmerge.sh
> +++ b/targets/support/kmerge.sh
> @@ -152,6 +152,11 @@ if [[ -n ${clst_KERNCACHE} ]]; then
>  fi
>  
>  if [[ ${distkernel} = "yes" ]] ; then
> +  # Build external kernel modules
> +  if [[ -n ${kernel_merge} ]]; then
> +    run_merge ${kernel_merge}
> +  fi
> +
>    # Kernel already built, let's run dracut to make initramfs
>    distkernel_source_path=$(equery -Cq f ${ksource} | grep "/usr/src/linux-" -m1)
>    distkernel_image_path=$(distkmerge_get_image_path)
> @@ -201,6 +206,6 @@ if [[ -n ${clst_KERNCACHE} && ! ${cached_kernel_found} ]]; then
>  fi
>  
>  if [[ ! ${cached_kernel_found} ]]; then
> -	run_merge -C "${ksource}"
> +	run_merge --deselect "${ksource}"
>  	rm /usr/src/linux
>  fi
> 


-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-03 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-23  0:39 [gentoo-catalyst] [PATCH] Compile external modules with dist-kernel Azamat H. Hackimov
2023-09-03 20:03 ` Andreas K. Huettel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox