OVMF: add 'src' attribute
No functional change, but allows getting the source via the standard attribute: `nix-build -A OVMF.src`.
This commit is contained in:
parent
8fccaa284d
commit
67c70aa581
@ -10,11 +10,15 @@ let
|
||||
throw "Unsupported architecture";
|
||||
|
||||
version = (builtins.parseDrvName edk2.name).version;
|
||||
|
||||
src = edk2.src;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (edk2.setup "OvmfPkg/OvmfPkg${targetArch}.dsc" {
|
||||
name = "OVMF-${version}";
|
||||
|
||||
inherit src;
|
||||
|
||||
outputs = [ "out" "fd" ];
|
||||
|
||||
# TODO: properly include openssl for secureBoot
|
||||
@ -27,22 +31,22 @@ stdenv.mkDerivation (edk2.setup "OvmfPkg/OvmfPkg${targetArch}.dsc" {
|
||||
export OUTPUT_FD=$fd
|
||||
|
||||
for file in \
|
||||
"${edk2.src}"/{UefiCpuPkg,MdeModulePkg,IntelFrameworkModulePkg,PcAtChipsetPkg,FatBinPkg,EdkShellBinPkg,MdePkg,ShellPkg,OptionRomPkg,IntelFrameworkPkg,FatPkg,CryptoPkg,SourceLevelDebugPkg};
|
||||
"${src}"/{UefiCpuPkg,MdeModulePkg,IntelFrameworkModulePkg,PcAtChipsetPkg,FatBinPkg,EdkShellBinPkg,MdePkg,ShellPkg,OptionRomPkg,IntelFrameworkPkg,FatPkg,CryptoPkg,SourceLevelDebugPkg};
|
||||
do
|
||||
ln -sv "$file" .
|
||||
done
|
||||
|
||||
${if (seabios == false) then ''
|
||||
ln -sv ${edk2.src}/OvmfPkg .
|
||||
ln -sv ${src}/OvmfPkg .
|
||||
'' else ''
|
||||
cp -r ${edk2.src}/OvmfPkg .
|
||||
cp -r ${src}/OvmfPkg .
|
||||
chmod +w OvmfPkg/Csm/Csm16
|
||||
cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
|
||||
''}
|
||||
|
||||
${if (secureBoot == true) then ''
|
||||
ln -sv ${edk2.src}/SecurityPkg .
|
||||
ln -sv ${edk2.src}/CryptoPkg .
|
||||
ln -sv ${src}/SecurityPkg .
|
||||
ln -sv ${src}/CryptoPkg .
|
||||
'' else ''
|
||||
''}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user