summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-18 19:50:47 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-18 19:50:47 +0000
commit1252b7a51c2cc6bd3a81830544cacce0aefc0bf1 (patch)
tree46f7231a8d885b3bd21739910f346623e6d92c86 /eclass
parent64602f81dd4ecc257e8c5139f42b902d3555ea78 (diff)
gentoo auto-resync : 18:12:2023 - 19:50:47
Diffstat (limited to 'eclass')
-rw-r--r--eclass/Manifest.gzbin38947 -> 38942 bytes
-rw-r--r--eclass/dist-kernel-utils.eclass7
-rw-r--r--eclass/kernel-build.eclass12
-rw-r--r--eclass/kernel-install.eclass3
4 files changed, 16 insertions, 6 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz
index abf5dd3fd6ab..ed19647a1405 100644
--- a/eclass/Manifest.gz
+++ b/eclass/Manifest.gz
Binary files differ
diff --git a/eclass/dist-kernel-utils.eclass b/eclass/dist-kernel-utils.eclass
index 62750d1721a2..67cb802151b2 100644
--- a/eclass/dist-kernel-utils.eclass
+++ b/eclass/dist-kernel-utils.eclass
@@ -87,6 +87,13 @@ dist-kernel_get_image_path() {
echo arch/${ARCH}/boot/Image.gz
fi
;;
+ loong)
+ if [[ ${KERNEL_EFI_ZBOOT} ]]; then
+ echo arch/loongarch/boot/vmlinuz.efi
+ else
+ echo arch/loongarch/boot/vmlinux.elf
+ fi
+ ;;
arm)
echo arch/arm/boot/zImage
;;
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index 6b692dc4f9a0..7a041a8aacdf 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -203,6 +203,12 @@ kernel-build_src_configure() {
.config)
fi
+ # If this is set by USE=secureboot or user config this will have an effect
+ # on the name of the output image. Set this variable to track this setting.
+ if grep -q "CONFIG_EFI_ZBOOT=y" .config; then
+ KERNEL_EFI_ZBOOT=1
+ fi
+
mkdir -p "${WORKDIR}"/modprep || die
mv .config "${WORKDIR}"/modprep/ || die
emake O="${WORKDIR}"/modprep "${MAKEARGS[@]}" olddefconfig
@@ -456,12 +462,6 @@ kernel-build_merge_configs() {
./scripts/kconfig/merge_config.sh -m -r \
.config "${merge_configs[@]}" || die
-
- # If this is set by USE=secureboot or user config this will have an effect
- # on the name of the output image. Set this variable to track this setting.
- if grep -q "CONFIG_EFI_ZBOOT=y" .config; then
- KERNEL_EFI_ZBOOT=1
- fi
}
fi
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index 22d8ce200016..c7118a720ba6 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -167,6 +167,9 @@ kernel-install_get_qemu_arch() {
arm64)
echo aarch64
;;
+ loong)
+ echo loongarch64
+ ;;
*)
die "${FUNCNAME}: unsupported ARCH=${ARCH}"
;;