mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 17:26:36 +01:00
grub2: Add loongarch64 as grub target
(From OE-Core rev: 40b75e0559ccfea533eba1beeec2d73954672f83) Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
be8263f9af
commit
e4f6eff971
@@ -30,6 +30,8 @@ python __anonymous () {
|
||||
grubtarget = 'riscv64'
|
||||
elif re.match('riscv32', target):
|
||||
grubtarget = 'riscv32'
|
||||
elif re.match('loongarch64', target):
|
||||
grubtarget = 'loongarch64'
|
||||
else:
|
||||
raise bb.parse.SkipRecipe("grub-efi is incompatible with target %s" % target)
|
||||
grubimage = prefix + d.getVar("EFI_BOOT_IMAGE")
|
||||
|
||||
@@ -31,7 +31,7 @@ CVE_STATUS[CVE-2023-4693] = "cpe-incorrect: Fixed in version 2.12 already"
|
||||
|
||||
DEPENDS = "flex-native bison-native gettext-native"
|
||||
|
||||
GRUB_COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|riscv.*)-(linux.*|freebsd.*)'
|
||||
GRUB_COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|loongarch64.*|riscv.*)-(linux.*|freebsd.*)'
|
||||
COMPATIBLE_HOST = "${GRUB_COMPATIBLE_HOST}"
|
||||
# Grub doesn't support hard float toolchain and won't be able to forcefully
|
||||
# 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',
|
||||
|
||||
GRUBPLATFORM:arm = "efi"
|
||||
GRUBPLATFORM:aarch64 = "efi"
|
||||
GRUBPLATFORM:loongarch64 = "efi"
|
||||
GRUBPLATFORM:riscv32 = "efi"
|
||||
GRUBPLATFORM:riscv64 = "efi"
|
||||
GRUBPLATFORM ??= "pc"
|
||||
|
||||
Reference in New Issue
Block a user