close armv8 subpackages

This commit is contained in:
yeah_wang 2021-04-12 17:09:46 +08:00 committed by linker
parent 725798ad85
commit 17e0f237e1

View File

@ -1,8 +1,9 @@
%global _default_patch_fuzz 2 %global _default_patch_fuzz 2
%global with_armv8 1
Name: uboot-tools Name: uboot-tools
Version: 2020.07 Version: 2020.07
Release: 5 Release: 6
Summary: tools for U-Boot Summary: tools for U-Boot
License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+ License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+
URL: http://www.denx.de/wiki/U-Boot URL: http://www.denx.de/wiki/U-Boot
@ -39,24 +40,23 @@ BuildRequires: python3-unversioned-command python3-devel python3-setuptools
BuildRequires: python3-libfdt python3-pyelftools SDL-devel swig BuildRequires: python3-libfdt python3-pyelftools SDL-devel swig
# this required when /usr/bin/python link to python3 # this required when /usr/bin/python link to python3
BuildRequires: python3-devel BuildRequires: python3-devel
%if %{with_armv8}
%ifarch %{arm} aarch64 %ifarch %{arm} aarch64
BuildRequires: vboot-utils BuildRequires: vboot-utils
%endif %endif
%ifarch aarch64 %ifarch aarch64
BuildRequires: arm-trusted-firmware-armv8 BuildRequires: arm-trusted-firmware-armv8
%endif %endif
%endif
Requires: dtc systemd Requires: dtc systemd
%ifarch aarch64 %{arm}
Obsoletes: uboot-images-elf < 2019.07
Provides: uboot-images-elf >= 2019.07
%endif
%description %description
This package includes the mkimage program, which allows generation of U-Boot This package includes the mkimage program, which allows generation of U-Boot
images in various formats, and the fw_printenv and fw_setenv programs to read images in various formats, and the fw_printenv and fw_setenv programs to read
and modify U-Boot's environment. and modify U-Boot's environment.
%if %{with_armv8}
%ifarch aarch64 %ifarch aarch64
%package -n uboot-images-armv8 %package -n uboot-images-armv8
Summary: u-boot bootloader images for aarch64 boards Summary: u-boot bootloader images for aarch64 boards
@ -87,6 +87,7 @@ Provides: uboot-images-qemu = %{version}-%{release}
%description -n uboot-images-elf %description -n uboot-images-elf
u-boot bootloader ELF images for use with qemu and other platforms u-boot bootloader ELF images for use with qemu and other platforms
%endif %endif
%endif
%package_help %package_help
@ -98,6 +99,7 @@ cp %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 .
%build %build
mkdir builds mkdir builds
%if %{with_armv8}
%ifarch aarch64 %{arm} %ifarch aarch64 %{arm}
for board in $(cat %{_arch}-boards) for board in $(cat %{_arch}-boards)
do do
@ -133,9 +135,10 @@ do
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1 O=builds/$(echo $board)/ make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1 O=builds/$(echo $board)/
done done
%endif %endif
%endif
make HOSTCC="gcc $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" defconfig V=1 O=builds/ make HOSTCC="gcc $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" defconfig V=1 O=builds/ -j16
make HOSTCC="gcc $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" tools-all V=1 O=builds/ make HOSTCC="gcc $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" tools-all V=1 O=builds/ -j16
%install %install
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
@ -143,6 +146,7 @@ mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/uboot/ mkdir -p %{buildroot}%{_datadir}/uboot/
%if %{with_armv8}
%ifarch aarch64 %ifarch aarch64
for board in $(cat %{_arch}-boards) for board in $(cat %{_arch}-boards)
do do
@ -185,6 +189,7 @@ do
fi fi
done done
%endif %endif
%endif
for tool in bmp_logo dumpimage env/fw_printenv fit_check_sign fit_info gdb/gdbcont gdb/gdbsend gen_eth_addr gen_ethaddr_crc img2srec mkenvimage mkimage mksunxiboot ncb proftool sunxi-spl-image-builder ubsha1 xway-swap-bytes for tool in bmp_logo dumpimage env/fw_printenv fit_check_sign fit_info gdb/gdbcont gdb/gdbsend gen_eth_addr gen_ethaddr_crc img2srec mkenvimage mkimage mksunxiboot ncb proftool sunxi-spl-image-builder ubsha1 xway-swap-bytes
do do
@ -224,6 +229,7 @@ cp -p board/warp7/README builds/docs/README.warp7
%dir %{_datadir}/uboot/ %dir %{_datadir}/uboot/
%config(noreplace) %{_sysconfdir}/fw_env.config %config(noreplace) %{_sysconfdir}/fw_env.config
%if %{with_armv8}
%ifarch aarch64 %ifarch aarch64
%files -n uboot-images-armv8 %files -n uboot-images-armv8
%defattr(-,root,root) %defattr(-,root,root)
@ -240,6 +246,7 @@ cp -p board/warp7/README builds/docs/README.warp7
%files -n uboot-images-elf %files -n uboot-images-elf
%defattr(-,root,root) %defattr(-,root,root)
%endif %endif
%endif
%files help %files help
%doc README doc/README.kwbimage doc/README.distro doc/README.gpt %doc README doc/README.kwbimage doc/README.distro doc/README.gpt
@ -249,6 +256,9 @@ cp -p board/warp7/README builds/docs/README.warp7
%{_mandir}/man1/mkimage.1* %{_mandir}/man1/mkimage.1*
%changelog %changelog
* Mon Apr 19 2021 liuyumeng <liuyumeng@huawei.com> - 2020.07-6
- Compilation optimzation
* Tue Mar 16 2021 yanglu <yanglu@60huawei.com> - 2020.07-5 * Tue Mar 16 2021 yanglu <yanglu@60huawei.com> - 2020.07-5
- Type:cves - Type:cves
- ID:CVE-2021-27097 CVE-2021-27138 - ID:CVE-2021-27097 CVE-2021-27138