build: Add loongarch64 support

Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
This commit is contained in:
Jingyun Hua 2022-03-09 04:47:36 -05:00
parent a310099e51
commit 6adc8e2c86
2 changed files with 16443 additions and 1 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
%define anolis_release .0.1 %define anolis_release .0.2
%define glibcsrcdir glibc-2.28 %define glibcsrcdir glibc-2.28
%define glibcversion 2.28 %define glibcversion 2.28
%define glibcrelease 164%{anolis_release}%{?dist} %define glibcrelease 164%{anolis_release}%{?dist}
@ -728,6 +728,7 @@ Patch589: glibc-elf-Align-argument-of-__munmap-to-page-size-BZ-28676-3.patch
Patch590: glibc-Support-target-specific-ALIGN-for-variable-alignment-4.patch Patch590: glibc-Support-target-specific-ALIGN-for-variable-alignment-4.patch
Patch591: glibc-elf-Fix-tst-align3.patch Patch591: glibc-elf-Fix-tst-align3.patch
Patch10000: 0001-Add-LoongArch-support-for-glibc-2.28.patch
############################################################################## ##############################################################################
# Continued list of core "glibc" package information: # Continued list of core "glibc" package information:
############################################################################## ##############################################################################
@ -1434,6 +1435,13 @@ build()
%ifarch %{ix86} %ifarch %{ix86}
--disable-multi-arch \ --disable-multi-arch \
%endif %endif
%ifarch loongarch64
--enable-obsolete-nsl \
--enable-stackguard-randomization \
--with-selinux \
--enable-shared \
--enable-obsolete-rpc \
%endif
%if %{without werror} %if %{without werror}
--disable-werror \ --disable-werror \
%endif %endif
@ -1991,6 +1999,13 @@ for module in compat files dns; do
>> glibc.filelist >> glibc.filelist
done done
grep -e "libmemusage.so" -e "libpcprofile.so" master.filelist >> glibc.filelist grep -e "libmemusage.so" -e "libpcprofile.so" master.filelist >> glibc.filelist
%ifarch loongarch64
cat master.filelist \
| grep -E \
-e "^\/%{_lib}\/libnss_nisplus*" \
-e "^\/%{_lib}\/libnss_nis*" \
>> glibc.filelist
%endif
############################################################################### ###############################################################################
# glibc-devel # glibc-devel
@ -2639,6 +2654,9 @@ fi
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared %files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog %changelog
* Wed Mar 9 2022 huajingyun <huajingyun@loongson.cn> - 2.28-164.0.2
- add loongarch64 support.
* Mon Feb 7 2022 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-164.0.1 * Mon Feb 7 2022 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-164.0.1
- elf: Properly align PT_LOAD segments - elf: Properly align PT_LOAD segments