From 1fef946f045df5dd5093fcb022e1f7226f65f545 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Sun, 26 Sep 2021 22:47:55 +0800 Subject: [PATCH] arch: add loongarch64 support Signed-off-by: Liwei Ge --- 1001-blivet-anolis-add-loongarch-support.patch | 11 +++++++++++ python-blivet.spec | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 1001-blivet-anolis-add-loongarch-support.patch diff --git a/1001-blivet-anolis-add-loongarch-support.patch b/1001-blivet-anolis-add-loongarch-support.patch new file mode 100644 index 0000000..ac0972e --- /dev/null +++ b/1001-blivet-anolis-add-loongarch-support.patch @@ -0,0 +1,11 @@ +--- blivet-3.2.2/blivet/arch.py 2020-05-21 18:45:40.000000000 +0800 ++++ blivet-3.2.2.new/blivet/arch.py 2021-09-26 22:43:56.625114066 +0800 +@@ -171,6 +171,8 @@ + + return False + ++def is_loongarch(): ++ return os.uname()[4] == 'loongarch64' + + def is_aarch64(): + """ diff --git a/python-blivet.spec b/python-blivet.spec index d97460f..e49b815 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + %define is_rhel 0%{?rhel} != 0 # python3 is not available on RHEL <=7 @@ -40,6 +42,10 @@ Patch6: 0007-Do-not-set-chunk-size-for-RAID1.patch Patch7: 0008-Fix-running-tests-in-gating.patch Patch8: 0009-PO-update.patch +# Add by Anolis +Patch1001: 1001-blivet-anolis-add-loongarch-support.patch +# End + # Versions of required components (done so we make sure the buildrequires # match the requires versions of things). %global partedver 3.2 @@ -201,6 +207,9 @@ configuration. %endif %changelog +* Sun Sep 26 2021 Liwei Ge - 3.4.0-6.0.1 +- Add loongarch64 support + * Mon Sep 13 2021 Vojtech Trefny - 3.4.0-6 - Localization update for 8.5 Resolves: rhbz#1962016 -- Gitee