!39 FangTian适配

From: @yanansong 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2023-10-28 01:07:43 +00:00 committed by Gitee
commit 671838024b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1675 additions and 2 deletions

1653
add_fangtian_support.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -30,6 +30,10 @@
%define with_etnaviv 1
%endif
%ifarch x86_64 aarch64
%define with_ft 1
%endif
%global dri_drivers %{?platform_drivers}
%if 0%{?with_vulkan_hw}
@ -47,7 +51,7 @@
Name: mesa
Summary: Mesa graphics libraries
Version: 21.3.1
Release: 4
Release: 5
License: MIT
URL: http://www.mesa3d.org
@ -55,6 +59,7 @@ Source0: https://mesa.freedesktop.org/archive/%{name}-%{version}.tar.xz
Patch1: backport-fix-build-err-on-arm.patch
Patch2: 0001-evergreen-big-endian.patch
Patch3: add_fangtian_support.patch
Patch1000: 1000-add-loongarch-support-not-upstream-modified.patch
Patch1001: 1001-add-loongarch-support-not-upstream-new.patch
@ -115,6 +120,10 @@ BuildRequires: llvm-toolset-7-runtime
%enable_llvmtoolset7
%endif
%if 0%{?with_ft}
BuildRequires: ft_surface-devel
%endif
%description
%{summary}.
@ -148,6 +157,10 @@ Provides: libGL-devel%{?_isa}
Summary: Mesa libEGL runtime libraries
Requires: libglvnd-egl%{?_isa} >= 1:1.2.0-1
%if 0%{?with_ft}
Requires: ft_surface
%endif
%description libEGL
%{summary}.
@ -158,6 +171,10 @@ Requires: libglvnd-devel%{?_isa} >= 1:1.2.0-1
Provides: libEGL-devel
Provides: libEGL-devel%{?_isa}
%if 0%{?with_ft}
Requires: ft_surface
%endif
%description libEGL-devel
%{summary}.
@ -308,7 +325,7 @@ sed -i -e 's/cpp_std=gnu++11/cpp_std=gnu++14/g' meson.build
export ASFLAGS="--generate-missing-build-notes=yes"
%meson -Dcpp_std=gnu++14 \
-Db_ndebug=true \
-Dplatforms=x11,wayland \
-Dplatforms=x11,wayland%{?with_ft:,ohos} \
-Ddri3=enabled \
-Ddri-drivers=%{?dri_drivers} \
-Dosmesa=true \
@ -564,6 +581,9 @@ done
%endif
%changelog
* Tue Oct 17 2023 yanansong <songyanan5@huawei.com> - 21.3.1-5
- Add fangtian
* Tue Aug 29 2023 herengui <herengui@kylinsec.com.cn> - 21.3.1-4
- Add loongarch64 architecture