From a1a88ecd738dc48e08838ab5ac4c9408019c5e86 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Aug 20 2013 18:30:06 +0000 Subject: build and sub-package EFI shell --- diff --git a/edk2.spec b/edk2.spec index ab74254..11c07c4 100644 --- a/edk2.spec +++ b/edk2.spec @@ -4,7 +4,7 @@ # More subpackages to come once licensing issues are fixed Name: edk2 Version: %{SVNDATE}svn%{SVNREV} -Release: 4%{?dist} +Release: 5%{?dist} Summary: EFI Development Kit II # 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 and ROMs using the GNU tools. - %package tools Summary: EFI Development Kit II Tools Group: Development/Tools @@ -62,11 +61,22 @@ Group: Development/Tools This package documents the tools that are needed to 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 %setup -q -n %{name}-r%{SVNREV} +# remove non-working compiler option +sed -i 's/ -m *elf_x86_64//' BaseTools/Conf/tools_def.template %build +make -C BaseTools source ./edksetup.sh +build -a X64 -b RELEASE -p ShellPkg/ShellPkg.dsc -t GCC46 # Build is broken if MAKEFLAGS contains -j option. unset MAKEFLAGS @@ -108,6 +118,9 @@ exec python '%{_datadir}/%{name}/Python/$i/$i.py' "$@"' > %{buildroot}%{_bindir} chmod +x %{buildroot}%{_bindir}/$i 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 %{_bindir}/BootSectImage %{_bindir}/EfiLdrImage @@ -160,7 +173,14 @@ done %doc BaseTools/UserManuals/VfrCompiler_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 +* Mon Aug 19 2013 Kay Sievers - 20130515svn14365-5 +- Add sub-package with EFI shell + * Sat Aug 03 2013 Fedora Release Engineering - 20130515svn14365-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild