2015-12-29 17:03:01 +00:00
|
|
|
%global SVNDATE 20151127
|
|
|
|
%global SVNREV 18975
|
2013-05-02 12:46:06 +00:00
|
|
|
|
2015-12-29 17:03:01 +00:00
|
|
|
Name: edk2
|
|
|
|
Version: %{SVNDATE}svn%{SVNREV}
|
2016-02-03 19:40:27 +00:00
|
|
|
Release: 2%{?dist}
|
2015-12-29 17:03:01 +00:00
|
|
|
Summary: EFI Development Kit II
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
# There are no formal releases from upstream.
|
|
|
|
# Tarballs are created with:
|
|
|
|
|
|
|
|
# svn export -r ${SVNREV} \
|
2015-05-19 10:46:43 +00:00
|
|
|
# https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools edk2-buildtools-r${SVNREV}
|
2014-06-24 08:43:55 +00:00
|
|
|
# rm -rf edk2-buildtools-r${SVNREV}/Bin
|
|
|
|
# tar -cv edk2-buildtools-r${SVNREV} | xz -6 > edk2-buildtools-r${SVNREV}.tar.xz
|
2015-12-29 17:03:01 +00:00
|
|
|
Source0: edk2-buildtools-r%{SVNREV}.tar.xz
|
|
|
|
Patch1: basetools-arm.patch
|
2016-02-15 17:30:33 +00:00
|
|
|
Patch2: 0001-BaseTools-LzmaCompress-eliminate-_maxMode-and-bogus-.patch
|
2013-05-02 12:46:06 +00:00
|
|
|
|
2015-12-29 17:03:01 +00:00
|
|
|
License: BSD
|
|
|
|
Group: Applications/Emulators
|
|
|
|
URL: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=EDK2
|
2013-05-02 12:46:06 +00:00
|
|
|
|
2013-08-30 07:52:03 +00:00
|
|
|
# We need to build tools everywhere, but how is still an open question
|
2013-08-22 10:46:29 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=992180
|
2015-12-29 17:03:01 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm}
|
2013-05-23 06:16:31 +00:00
|
|
|
|
2015-12-29 17:03:01 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: libuuid-devel
|
2013-05-02 12:46:06 +00:00
|
|
|
|
2015-12-29 17:03:01 +00:00
|
|
|
Requires: edk2-tools%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: edk2-tools-doc%{?_isa} = %{version}-%{release}
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
%description
|
2013-08-22 10:46:29 +00:00
|
|
|
EDK II is a development code base for creating UEFI drivers, applications
|
|
|
|
and firmware images.
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
%package tools
|
2015-12-29 17:03:01 +00:00
|
|
|
Summary: EFI Development Kit II Tools
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: edk2-tools-python = %{version}-%{release}
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package provides tools that are needed to
|
|
|
|
build EFI executables and ROMs using the GNU tools.
|
|
|
|
|
|
|
|
%package tools-python
|
2015-12-29 17:03:01 +00:00
|
|
|
Summary: EFI Development Kit II Tools
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: python
|
2013-05-02 12:46:06 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description tools-python
|
|
|
|
This package provides tools that are needed to build EFI executables
|
|
|
|
and ROMs using the GNU tools. You do not need to install this package;
|
|
|
|
you probably want to install edk2-tools only.
|
|
|
|
|
|
|
|
%package tools-doc
|
2015-12-29 17:03:01 +00:00
|
|
|
Summary: Documentation for EFI Development Kit II Tools
|
|
|
|
Group: Development/Tools
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
%description tools-doc
|
|
|
|
This package documents the tools that are needed to
|
|
|
|
build EFI executables and ROMs using the GNU tools.
|
|
|
|
|
|
|
|
%prep
|
2014-06-24 08:43:55 +00:00
|
|
|
%setup -q -n edk2-buildtools-r%{SVNREV}
|
2013-11-14 15:30:12 +00:00
|
|
|
%patch1 -p1
|
2016-02-15 17:30:33 +00:00
|
|
|
%patch2 -p2
|
|
|
|
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
%build
|
2014-06-24 08:43:55 +00:00
|
|
|
export WORKSPACE=`pwd`
|
2013-05-02 12:46:06 +00:00
|
|
|
|
2013-05-21 19:15:34 +00:00
|
|
|
# Build is broken if MAKEFLAGS contains -j option.
|
|
|
|
unset MAKEFLAGS
|
2014-06-24 08:43:55 +00:00
|
|
|
make
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2015-12-29 17:03:01 +00:00
|
|
|
install \
|
|
|
|
Source/C/bin/BootSectImage \
|
|
|
|
Source/C/bin/EfiLdrImage \
|
|
|
|
Source/C/bin/EfiRom \
|
|
|
|
Source/C/bin/GenCrc32 \
|
|
|
|
Source/C/bin/GenFfs \
|
|
|
|
Source/C/bin/GenFv \
|
|
|
|
Source/C/bin/GenFw \
|
|
|
|
Source/C/bin/GenPage \
|
|
|
|
Source/C/bin/GenSec \
|
|
|
|
Source/C/bin/GenVtf \
|
|
|
|
Source/C/bin/GnuGenBootSector \
|
|
|
|
Source/C/bin/LzmaCompress \
|
|
|
|
BinWrappers/PosixLike/LzmaF86Compress \
|
|
|
|
Source/C/bin/Split \
|
|
|
|
Source/C/bin/TianoCompress \
|
|
|
|
Source/C/bin/VfrCompile \
|
|
|
|
Source/C/bin/VolInfo \
|
|
|
|
%{buildroot}%{_bindir}
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
ln -f %{buildroot}%{_bindir}/GnuGenBootSector \
|
2015-12-29 17:03:01 +00:00
|
|
|
%{buildroot}%{_bindir}/GenBootSector
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
2014-06-24 07:50:13 +00:00
|
|
|
install \
|
2014-06-24 08:43:55 +00:00
|
|
|
BuildEnv \
|
2014-06-24 07:50:13 +00:00
|
|
|
%{buildroot}%{_datadir}/%{name}
|
2014-06-23 15:25:24 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/Conf
|
|
|
|
install \
|
2014-06-24 08:43:55 +00:00
|
|
|
Conf/build_rule.template \
|
|
|
|
Conf/tools_def.template \
|
|
|
|
Conf/target.template \
|
2014-06-23 15:25:24 +00:00
|
|
|
%{buildroot}%{_datadir}/%{name}/Conf
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/Scripts
|
|
|
|
install \
|
2015-11-27 13:00:44 +00:00
|
|
|
Scripts/GccBase.lds \
|
2014-06-23 15:25:24 +00:00
|
|
|
%{buildroot}%{_datadir}/%{name}/Scripts
|
|
|
|
|
2014-06-24 08:43:55 +00:00
|
|
|
cp -R Source/Python %{buildroot}%{_datadir}/%{name}/Python
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
find %{buildroot}%{_datadir}/%{name}/Python -name "*.pyd" | xargs rm
|
|
|
|
|
2014-06-23 15:25:24 +00:00
|
|
|
for i in build BPDG Ecc GenDepex GenFds GenPatchPcdTable PatchPcdValue TargetTool Trim UPT; do
|
2013-05-02 12:46:06 +00:00
|
|
|
echo '#!/bin/sh
|
|
|
|
PYTHONPATH=%{_datadir}/%{name}/Python
|
|
|
|
export PYTHONPATH
|
|
|
|
exec python '%{_datadir}/%{name}/Python/$i/$i.py' "$@"' > %{buildroot}%{_bindir}/$i
|
|
|
|
chmod +x %{buildroot}%{_bindir}/$i
|
|
|
|
done
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%{_bindir}/BootSectImage
|
|
|
|
%{_bindir}/EfiLdrImage
|
|
|
|
%{_bindir}/EfiRom
|
|
|
|
%{_bindir}/GenBootSector
|
|
|
|
%{_bindir}/GenCrc32
|
|
|
|
%{_bindir}/GenFfs
|
|
|
|
%{_bindir}/GenFv
|
|
|
|
%{_bindir}/GenFw
|
|
|
|
%{_bindir}/GenPage
|
|
|
|
%{_bindir}/GenSec
|
|
|
|
%{_bindir}/GenVtf
|
|
|
|
%{_bindir}/GnuGenBootSector
|
|
|
|
%{_bindir}/LzmaCompress
|
2014-06-23 15:25:24 +00:00
|
|
|
%{_bindir}/LzmaF86Compress
|
2013-05-02 12:46:06 +00:00
|
|
|
%{_bindir}/Split
|
2014-06-23 15:25:24 +00:00
|
|
|
%{_bindir}/TianoCompress
|
2013-05-02 12:46:06 +00:00
|
|
|
%{_bindir}/VfrCompile
|
|
|
|
%{_bindir}/VolInfo
|
2014-06-24 07:50:13 +00:00
|
|
|
%{_datadir}/%{name}/BuildEnv
|
2014-06-23 15:25:24 +00:00
|
|
|
%{_datadir}/%{name}/Conf/
|
|
|
|
%{_datadir}/%{name}/Scripts/
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
%files tools-python
|
2014-06-23 15:25:24 +00:00
|
|
|
%{_bindir}/build
|
2013-05-02 12:46:06 +00:00
|
|
|
%{_bindir}/BPDG
|
2014-06-23 15:25:24 +00:00
|
|
|
%{_bindir}/Ecc
|
2013-05-02 12:46:06 +00:00
|
|
|
%{_bindir}/GenDepex
|
|
|
|
%{_bindir}/GenFds
|
|
|
|
%{_bindir}/GenPatchPcdTable
|
|
|
|
%{_bindir}/PatchPcdValue
|
|
|
|
%{_bindir}/TargetTool
|
|
|
|
%{_bindir}/Trim
|
|
|
|
%{_bindir}/UPT
|
|
|
|
%{_datadir}/%{name}/Python/
|
|
|
|
|
|
|
|
%files tools-doc
|
2014-06-24 08:43:55 +00:00
|
|
|
%doc UserManuals/BootSectImage_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/Build_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/EfiLdrImage_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/EfiRom_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenBootSector_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenCrc32_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenDepex_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenFds_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenFfs_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenFv_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenFw_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenPage_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenPatchPcdTable_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenSec_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/GenVtf_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/LzmaCompress_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/PatchPcdValue_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/SplitFile_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/TargetTool_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/TianoCompress_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/Trim_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/VfrCompiler_Utility_Man_Page.rtf
|
|
|
|
%doc UserManuals/VolInfo_Utility_Man_Page.rtf
|
2013-05-02 12:46:06 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-02-15 17:30:33 +00:00
|
|
|
* Mon Feb 15 2016 Cole Robinson <crobinso@redhat.com> 20151127svn18975-3
|
|
|
|
- Fix FTBFS gcc warning (bz 1307439)
|
|
|
|
|
2016-02-03 19:40:27 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20151127svn18975-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-02-15 17:30:33 +00:00
|
|
|
* Fri Nov 27 2015 Paolo Bonzini <pbonzini@redhat.com> - 20151127svn18975-1
|
2015-11-27 13:00:44 +00:00
|
|
|
- Rebase to 20151127svn18975-1
|
|
|
|
- Linker script renamed to GccBase.lds
|
|
|
|
|
2015-06-17 05:16:07 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20150519svn17469-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-11-27 13:00:44 +00:00
|
|
|
* Tue May 19 2015 Paolo Bonzini <pbonzini@redhat.com> - 20150519svn17469-1
|
2015-05-19 10:46:43 +00:00
|
|
|
- Rebase to 20150519svn17469-1
|
|
|
|
- edk2-remove-tree-check.patch now upstream
|
|
|
|
|
2015-05-02 11:27:18 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 20140724svn2670-6
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2014-08-16 10:25:01 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140724svn2670-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-24 12:27:29 +00:00
|
|
|
* Thu Jul 24 2014 Paolo Bonzini <pbonzini@redhat.com> - 20140724svn2670-1
|
|
|
|
- Rebase to 20140724svn2670-1
|
|
|
|
|
2014-06-24 08:43:55 +00:00
|
|
|
* Tue Jun 24 2014 Paolo Bonzini <pbonzini@redhat.com> - 20140624svn2649-1
|
|
|
|
- Use standalone .tar.xz from buildtools repo
|
|
|
|
|
2014-06-24 07:50:13 +00:00
|
|
|
* Tue Jun 24 2014 Paolo Bonzini <pbonzini@redhat.com> - 20140328svn15376-4
|
|
|
|
- Install BuildTools/BaseEnv
|
|
|
|
|
2014-06-23 15:25:24 +00:00
|
|
|
* Mon Jun 23 2014 Paolo Bonzini <pbonzini@redhat.com> - 20140328svn15376-3
|
|
|
|
- Rebase to get GCC48 configuration
|
|
|
|
- Package EDK_TOOLS_PATH as /usr/share/edk2
|
|
|
|
- Package "build" and LzmaF86Compress too, as well as the new
|
|
|
|
tools Ecc and TianoCompress.
|
|
|
|
|
2014-06-07 09:55:49 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20131114svn14844-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-11-14 14:50:55 +00:00
|
|
|
* Thu Nov 14 2013 Paolo Bonzini <pbonzini@redhat.com> - 20131114svn14844-1
|
|
|
|
- Upgrade to r14844.
|
2013-11-14 15:30:12 +00:00
|
|
|
- Remove upstreamed parts of patch 1.
|
2013-11-14 14:50:55 +00:00
|
|
|
|
2013-11-08 13:34:26 +00:00
|
|
|
* Fri Nov 8 2013 Paolo Bonzini <pbonzini@redhat.com> - 20130515svn14365-7
|
|
|
|
- Make BaseTools compile on ARM.
|
|
|
|
|
2013-08-30 07:52:03 +00:00
|
|
|
* Fri Aug 30 2013 Paolo Bonzini <pbonzini@redhat.com> - 20130515svn14365-6
|
|
|
|
- Revert previous change; firmware packages should be noarch, and building
|
|
|
|
BaseTools twice is simply wrong.
|
|
|
|
|
2013-08-19 16:24:02 +00:00
|
|
|
* Mon Aug 19 2013 Kay Sievers <kay@redhat.com> - 20130515svn14365-5
|
|
|
|
- Add sub-package with EFI shell
|
|
|
|
|
2013-08-03 09:22:44 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130515svn14365-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-05-23 06:16:31 +00:00
|
|
|
* Thu May 23 2013 Dan Horák <dan[at]danny.cz> 20130515svn14365-3
|
|
|
|
- set ExclusiveArch
|
|
|
|
|
2013-05-02 12:46:06 +00:00
|
|
|
* Thu May 16 2013 Paolo Bonzini <pbonzini@redhat.com> 20130515svn14365-2
|
|
|
|
- Fix edk2-tools-python Requires
|
|
|
|
|
|
|
|
* Wed May 15 2013 Paolo Bonzini <pbonzini@redhat.com> 20130515svn14365-1
|
|
|
|
- Split edk2-tools-doc and edk2-tools-python
|
|
|
|
- Fix Python BuildRequires
|
|
|
|
- Remove FatBinPkg at package creation time.
|
|
|
|
- Use fully versioned dependency.
|
|
|
|
- Add comment on how to generate the sources.
|
|
|
|
|
|
|
|
* Thu May 2 2013 Paolo Bonzini <pbonzini@redhat.com> 20130502.g732d199-1
|
|
|
|
- Create.
|