fix build error for loongarch64

This commit is contained in:
Wenlong Zhang 2023-05-20 09:32:15 +08:00
parent 5805d063a7
commit 9a831e4841
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 0e5a785ae7867e8191dc380cd63efeb6695ff254 Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Thu, 25 May 2023 06:45:22 +0000
Subject: [PATCH] add loongarch64 support for acpica-tools
---
source/include/platform/aclinux.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/include/platform/aclinux.h b/source/include/platform/aclinux.h
index 69eb962..52a3293 100644
--- a/source/include/platform/aclinux.h
+++ b/source/include/platform/aclinux.h
@@ -217,7 +217,7 @@
#if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\
defined(__aarch64__) || defined(__PPC64__) ||\
defined(__s390x__) ||\
- (defined(__riscv) && (defined(__LP64__) || defined(_LP64)))
+ (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) || defined(__loongarch64)
#define ACPI_MACHINE_WIDTH 64
#define COMPILER_DEPENDENT_INT64 long
#define COMPILER_DEPENDENT_UINT64 unsigned long
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: acpica-tools
Version: 20210604
Release: 1
Release: 2
Summary: Tools for OS-independent reference implementation of ACPI
License: GPLv2
@ -14,6 +14,7 @@ Patch0001: cve-2017-13693.patch
Patch0002: cve-2017-13694.patch
Patch0003: cve-2017-13695.patch
Patch0004: openEuler-harden.patch
Patch0005: 0001-add-loongarch64-support-for-acpica-tools.patch
BuildRequires: bison patchutils flex gcc
Provides: acpixtract >= 20120913-7 iasl = %{version}-%{release} acpidump >= 20100513-5
@ -85,6 +86,9 @@ fi
%{_docdir}/*
%changelog
* Mon May 8 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 20210604-2
- add loongarch64 support
* Wed Dec 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 20210604-1
- Upgrade to version 20210604