!22 add support for loongarch64

From: @dpdwaj 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
This commit is contained in:
openeuler-ci-bot 2024-04-23 07:55:04 +00:00 committed by Gitee
commit f080e2c5b0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 91352497429d404e3c4f4af45cd0b1985d82a923 Mon Sep 17 00:00:00 2001
From: Pengda Dou <doupengda@loongson.cn>
Date: Tue, 23 Apr 2024 15:25:25 +0800
Subject: [PATCH] toolbox-0.0.99.5 add support for loongarch64
---
src/meson.build | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/meson.build b/src/meson.build
index 098c692..f7c9b95 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -52,6 +52,8 @@ elif cpu_family == 'x86_64' and endian == 'little'
dynamic_linker = '/lib64/ld-linux-x86-64.so.2'
elif cpu_family == 'riscv64' and endian == 'little'
dynamic_linker = '/lib/ld-linux-riscv64-lp64d.so.1'
+elif cpu_family == 'loongarch64' and endian == 'little'
+ dynamic_linker = '/lib64/ld-linux-loongarch-lp64d.so.1'
else
host_machine_description = cpu_family + ' (' + endian + ' endian)'
error('Please specify dynamic linker for:', host_machine_description)
--
2.38.1

View File

@ -5,7 +5,7 @@ Version: 0.0.99.5
%global goipath github.com/containers/%{name}
Release: 3
Release: 4
Summary: Tool for interactive command line environments on Linux
License: Apache-2.0
@ -13,6 +13,7 @@ URL: https://github.com/containers/toolbox
Source0: toolbox-0.0.99.5-vendored.tar.xz
Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz
Patch0: 0001-toolbox-0.0.99.5-add-support-for-loongarch64.patch
BuildRequires: golang >= 1.20 meson >= 0.58.0
BuildRequires: pkgconfig(bash-completion) systemd
@ -44,6 +45,7 @@ The toolbox-tests package contains system tests for toolbox.
%prep
%setup -q
%patch0 -p1
GOBUILDDIR="$(pwd)/_build"
GOSOURCEDIR="$(pwd)"
@ -105,6 +107,9 @@ fi
%{_datadir}/%{name}
%changelog
* Tue Apr 23 2024 Pengda Dou <doupengda@loongson.cn> - 0.0.99.5-4
- add support for loongarch64
* Wed Apr 10 2024 shafeipaozi <sunbo.oerv@isrc.iscas.ac.cn> - 0.0.99.5-3
- fix riscv spec