diff options
| -rw-r--r-- | meta/recipes-bsp/grub/grub-efi_2.12.bb | 2 | ||||
| -rw-r--r-- | meta/recipes-bsp/grub/grub2.inc | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-bsp/grub/grub-efi_2.12.bb b/meta/recipes-bsp/grub/grub-efi_2.12.bb index 7df77deca3..6dbc0ccf7f 100644 --- a/meta/recipes-bsp/grub/grub-efi_2.12.bb +++ b/meta/recipes-bsp/grub/grub-efi_2.12.bb | |||
| @@ -30,6 +30,8 @@ python __anonymous () { | |||
| 30 | grubtarget = 'riscv64' | 30 | grubtarget = 'riscv64' |
| 31 | elif re.match('riscv32', target): | 31 | elif re.match('riscv32', target): |
| 32 | grubtarget = 'riscv32' | 32 | grubtarget = 'riscv32' |
| 33 | elif re.match('loongarch64', target): | ||
| 34 | grubtarget = 'loongarch64' | ||
| 33 | else: | 35 | else: |
| 34 | raise bb.parse.SkipRecipe("grub-efi is incompatible with target %s" % target) | 36 | raise bb.parse.SkipRecipe("grub-efi is incompatible with target %s" % target) |
| 35 | grubimage = prefix + d.getVar("EFI_BOOT_IMAGE") | 37 | grubimage = prefix + d.getVar("EFI_BOOT_IMAGE") |
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc index 07b4000e04..26bcb5197e 100644 --- a/meta/recipes-bsp/grub/grub2.inc +++ b/meta/recipes-bsp/grub/grub2.inc | |||
| @@ -31,7 +31,7 @@ CVE_STATUS[CVE-2023-4693] = "cpe-incorrect: Fixed in version 2.12 already" | |||
| 31 | 31 | ||
| 32 | DEPENDS = "flex-native bison-native gettext-native" | 32 | DEPENDS = "flex-native bison-native gettext-native" |
| 33 | 33 | ||
| 34 | GRUB_COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|riscv.*)-(linux.*|freebsd.*)' | 34 | GRUB_COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|loongarch64.*|riscv.*)-(linux.*|freebsd.*)' |
| 35 | COMPATIBLE_HOST = "${GRUB_COMPATIBLE_HOST}" | 35 | COMPATIBLE_HOST = "${GRUB_COMPATIBLE_HOST}" |
| 36 | # Grub doesn't support hard float toolchain and won't be able to forcefully | 36 | # Grub doesn't support hard float toolchain and won't be able to forcefully |
| 37 | # disable it on some of the target CPUs. See 'configure.ac' for | 37 | # disable it on some of the target CPUs. See 'configure.ac' for |
| @@ -44,6 +44,7 @@ COMPATIBLE_HOST:armv7ve = "${@'null' if bb.utils.contains('TUNE_CCARGS_MFLOAT', | |||
| 44 | 44 | ||
| 45 | GRUBPLATFORM:arm = "efi" | 45 | GRUBPLATFORM:arm = "efi" |
| 46 | GRUBPLATFORM:aarch64 = "efi" | 46 | GRUBPLATFORM:aarch64 = "efi" |
| 47 | GRUBPLATFORM:loongarch64 = "efi" | ||
| 47 | GRUBPLATFORM:riscv32 = "efi" | 48 | GRUBPLATFORM:riscv32 = "efi" |
| 48 | GRUBPLATFORM:riscv64 = "efi" | 49 | GRUBPLATFORM:riscv64 = "efi" |
| 49 | GRUBPLATFORM ??= "pc" | 50 | GRUBPLATFORM ??= "pc" |
