Source: efitools Version: 1.9.2-3 Severity: normal X-Debbugs-Cc: wuruil...@loongson.cn
Dear Maintainer, Please support the loong64 arch. The patch is provided in the attachment for your reference. wuruilong -- System Information: Debian Release: trixie/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: loong64 (loongarch64) Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect
Description: <short summary of the patch> TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . efitools (1.9.2-3) unstable; urgency=medium . [ Bo YU ] * Add patch to allow building on riscv64. Closes: #1012849 . * Team upload Author: Steve McIntyre <93...@debian.org> Bug-Debian: https://bugs.debian.org/1012849 --- The information above should follow the Patch Tagging Guidelines, please checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>) Bug: <upstream-bugtracker-url> Bug-Debian: https://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: (no|not-needed|<patch-forwarded-url>) Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>) Reviewed-By: <name and email of someone who approved/reviewed the patch> Last-Update: 2024-01-05 --- efitools-1.9.2.orig/Make.rules +++ efitools-1.9.2/Make.rules @@ -12,6 +12,8 @@ else ifeq ($(ARCH),riscv64) ARCH3264 = else ifeq ($(ARCH),arm) ARCH3264 = +else ifeq ($(ARCH),loongarch64) +ARCH3264 = else $(error unknown architecture $(ARCH)) endif @@ -62,6 +64,11 @@ ifeq ($(ARCH),riscv64) LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a FORMAT = -O binary endif + +ifeq ($(ARCH),loongarch64) + LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a + FORMAT = -O binary +endif %.efi: %.so $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym \