edk2: Reformat a bit for readability
- Have only one sed expression per line - Put the important stuff closer to the command and not hidden in some continuation line. That is, don't do: sed \ <boring stuff> \ <boring stuff> \ <boring stuff> \ <boring stuff> \ <boring stuff> \ <IMPORTANT STUFF> but: sed <IMPORTANT STUFF> \ <boring stuff> \ <boring stuff> \ <boring stuff> \ <boring stuff> \ <boring stuff>
This commit is contained in:
parent
044d4b0875
commit
1d854b479c
1 changed files with 13 additions and 6 deletions
|
@ -58,13 +58,20 @@ edk2 = stdenv.mkDerivation {
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
mkdir -v Conf
|
mkdir -v Conf
|
||||||
sed -e 's|Nt32Pkg/Nt32Pkg.dsc|${projectDscPath}|' -e \
|
|
||||||
's|MYTOOLS|GCC49|' -e 's|IA32|${targetArch}|' -e 's|DEBUG|RELEASE|'\
|
cp ${edk2}/BaseTools/Conf/target.template Conf/target.txt
|
||||||
< ${edk2}/BaseTools/Conf/target.template > Conf/target.txt
|
sed -i Conf/target.txt \
|
||||||
sed -e 's|DEFINE GCC48_IA32_PREFIX = /usr/bin/|DEFINE GCC48_IA32_PREFIX = ""|' \
|
-e 's|Nt32Pkg/Nt32Pkg.dsc|${projectDscPath}|' \
|
||||||
|
-e 's|MYTOOLS|GCC49|' \
|
||||||
|
-e 's|IA32|${targetArch}|' \
|
||||||
|
-e 's|DEBUG|RELEASE|'\
|
||||||
|
|
||||||
|
cp ${edk2}/BaseTools/Conf/tools_def.template Conf/tools_def.txt
|
||||||
|
sed -i Conf/tools_def.txt \
|
||||||
|
-e 's|DEFINE GCC48_IA32_PREFIX = /usr/bin/|DEFINE GCC48_IA32_PREFIX = ""|' \
|
||||||
-e 's|DEFINE GCC48_X64_PREFIX = /usr/bin/|DEFINE GCC48_X64_PREFIX = ""|' \
|
-e 's|DEFINE GCC48_X64_PREFIX = /usr/bin/|DEFINE GCC48_X64_PREFIX = ""|' \
|
||||||
-e 's|DEFINE UNIX_IASL_BIN = /usr/bin/iasl|DEFINE UNIX_IASL_BIN = ${iasl}/bin/iasl|' \
|
-e 's|DEFINE UNIX_IASL_BIN = /usr/bin/iasl|DEFINE UNIX_IASL_BIN = ${iasl}/bin/iasl|'
|
||||||
< ${edk2}/BaseTools/Conf/tools_def.template > Conf/tools_def.txt
|
|
||||||
export WORKSPACE="$PWD"
|
export WORKSPACE="$PWD"
|
||||||
export EFI_SOURCE="$PWD/EdkCompatibilityPkg"
|
export EFI_SOURCE="$PWD/EdkCompatibilityPkg"
|
||||||
ln -sv ${edk2}/BaseTools BaseTools
|
ln -sv ${edk2}/BaseTools BaseTools
|
||||||
|
|
Loading…
Reference in a new issue