build and sub-package EFI shell
This commit is contained in:
parent
e144da5de0
commit
a1a88ecd73
24
edk2.spec
24
edk2.spec
@ -4,7 +4,7 @@
|
|||||||
# More subpackages to come once licensing issues are fixed
|
# More subpackages to come once licensing issues are fixed
|
||||||
Name: edk2
|
Name: edk2
|
||||||
Version: %{SVNDATE}svn%{SVNREV}
|
Version: %{SVNDATE}svn%{SVNREV}
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: EFI Development Kit II
|
Summary: EFI Development Kit II
|
||||||
|
|
||||||
# There are no formal releases from upstream.
|
# There are no formal releases from upstream.
|
||||||
@ -33,7 +33,6 @@ Requires: edk2-tools%{?_isa} = %{version}-%{release}
|
|||||||
This package provides tools that are needed to build EFI executables
|
This package provides tools that are needed to build EFI executables
|
||||||
and ROMs using the GNU tools.
|
and ROMs using the GNU tools.
|
||||||
|
|
||||||
|
|
||||||
%package tools
|
%package tools
|
||||||
Summary: EFI Development Kit II Tools
|
Summary: EFI Development Kit II Tools
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
@ -62,11 +61,22 @@ Group: Development/Tools
|
|||||||
This package documents the tools that are needed to
|
This package documents the tools that are needed to
|
||||||
build EFI executables and ROMs using the GNU tools.
|
build EFI executables and ROMs using the GNU tools.
|
||||||
|
|
||||||
|
%package shell
|
||||||
|
Summary: UEFI 2.0 Shell
|
||||||
|
|
||||||
|
%description shell
|
||||||
|
The shell provides a standard pre-boot command line
|
||||||
|
processor to run on top of a UEFI 2.0 firmware.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-r%{SVNREV}
|
%setup -q -n %{name}-r%{SVNREV}
|
||||||
|
# remove non-working compiler option
|
||||||
|
sed -i 's/ -m *elf_x86_64//' BaseTools/Conf/tools_def.template
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
make -C BaseTools
|
||||||
source ./edksetup.sh
|
source ./edksetup.sh
|
||||||
|
build -a X64 -b RELEASE -p ShellPkg/ShellPkg.dsc -t GCC46
|
||||||
|
|
||||||
# Build is broken if MAKEFLAGS contains -j option.
|
# Build is broken if MAKEFLAGS contains -j option.
|
||||||
unset MAKEFLAGS
|
unset MAKEFLAGS
|
||||||
@ -108,6 +118,9 @@ exec python '%{_datadir}/%{name}/Python/$i/$i.py' "$@"' > %{buildroot}%{_bindir}
|
|||||||
chmod +x %{buildroot}%{_bindir}/$i
|
chmod +x %{buildroot}%{_bindir}/$i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_prefix}/lib/efi-shell
|
||||||
|
install -m 0755 -D Build/Shell/RELEASE_GCC46/X64/Shell.efi %{buildroot}%{_prefix}/lib/efi-shell/shellx64.efi
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%{_bindir}/BootSectImage
|
%{_bindir}/BootSectImage
|
||||||
%{_bindir}/EfiLdrImage
|
%{_bindir}/EfiLdrImage
|
||||||
@ -160,7 +173,14 @@ done
|
|||||||
%doc BaseTools/UserManuals/VfrCompiler_Utility_Man_Page.rtf
|
%doc BaseTools/UserManuals/VfrCompiler_Utility_Man_Page.rtf
|
||||||
%doc BaseTools/UserManuals/VolInfo_Utility_Man_Page.rtf
|
%doc BaseTools/UserManuals/VolInfo_Utility_Man_Page.rtf
|
||||||
|
|
||||||
|
%files shell
|
||||||
|
%dir %{_prefix}/lib/efi-shell
|
||||||
|
%{_prefix}/lib/efi-shell/shellx64.efi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 19 2013 Kay Sievers <kay@redhat.com> - 20130515svn14365-5
|
||||||
|
- Add sub-package with EFI shell
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130515svn14365-4
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130515svn14365-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user