EmulatorPkg: Remove UNIX_SEC_BUILD/WIN_SEC_BUILD
https://bugzilla.tianocore.org/show_bug.cgi?id=2055 Remove the use of the defines UNIX_SEC_BUILD and WIN_SEC_BUILD. This simplifies the build command for the EmulatorPkg. Instead, use !if statements in the DSC file using $(ARCH) and $(FAMILY) to determine if the build is for a Windows or POSIX environment. The Readme.md, BAT, and sh files are also updated to remove the use of these defines. Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Andrew Fish <afish@apple.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Tested-by: Andrew Fish <afish@apple.com>
This commit is contained in:
@@ -21,19 +21,19 @@ https://github.com/tianocore/tianocore.github.io/wiki/EmulatorPkg
|
||||
**You can use the following command to build.**
|
||||
* 32bit emulator in Windows:
|
||||
|
||||
`build -p EmulatorPkg\EmulatorPkg.dsc -t VS2017 -D WIN_SEC_BUILD -a IA32`
|
||||
`build -p EmulatorPkg\EmulatorPkg.dsc -t VS2017 -a IA32`
|
||||
|
||||
* 64bit emulator in Windows:
|
||||
|
||||
`build -p EmulatorPkg\EmulatorPkg.dsc -t VS2017 -D WIN_SEC_BUILD -a X64`
|
||||
`build -p EmulatorPkg\EmulatorPkg.dsc -t VS2017 -a X64`
|
||||
|
||||
* 32bit emulator in Linux:
|
||||
|
||||
`build -p EmulatorPkg\EmulatorPkg.dsc -t GCC5 -D UNIX_SEC_BUILD -a IA32`
|
||||
`build -p EmulatorPkg\EmulatorPkg.dsc -t GCC5 -a IA32`
|
||||
|
||||
* 64bit emulator in Linux:
|
||||
|
||||
`build -p EmulatorPkg\EmulatorPkg.dsc -t GCC5 -D UNIX_SEC_BUILD -a X64`
|
||||
`build -p EmulatorPkg\EmulatorPkg.dsc -t GCC5 -a X64`
|
||||
|
||||
**You can start/run the emulator using the following command:**
|
||||
* 32bit emulator in Windows:
|
||||
|
Reference in New Issue
Block a user