Source: efitools Version: 1.9.2-3 Severity: wishlist Tags: ftbfs patch User: debian-loonga...@lists.debian.org Usertags: loong64
Dear maintainers, Compiling efitools package failed on my local loong64 rootfs environment. I have added build support for loongarch in efitools package. Please consider the patch I attached. Your opinions are welcome. Thanks, Dandan Zhang
Description: Add build support for loongarch64 Last-Update: 2024-04-17 --- efitools-1.9.2.orig/Make.rules +++ efitools-1.9.2/Make.rules @@ -10,6 +10,8 @@ else ifeq ($(ARCH),aarch64) ARCH3264 = else ifeq ($(ARCH),riscv64) ARCH3264 = +else ifeq ($(ARCH),loongarch64) +ARCH3264 = else ifeq ($(ARCH),arm) ARCH3264 = else @@ -63,6 +65,10 @@ ifeq ($(ARCH),riscv64) FORMAT = -O binary endif +ifeq ($(ARCH),loongarch64) + LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a +endif + %.efi: %.so $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \