mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
EmulatorPkg/Unix: Rename SecMain to Host
Signed-off-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11924 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5817d50862
commit
59ad461d9d
@ -28,7 +28,7 @@ define hook-stop
|
||||
if $_exitcode != 42
|
||||
quit
|
||||
else
|
||||
source SecMain.gdb
|
||||
source Host.gdb
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
**/
|
||||
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
||||
|
@ -11,7 +11,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
|
||||
#define EMU_BLOCK_IO_PRIVATE_SIGNATURE SIGNATURE_32 ('E', 'M', 'b', 'k')
|
||||
typedef struct {
|
||||
|
@ -21,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define DebugAssert _Mangle__DebugAssert
|
||||
|
@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define MAP_ANONYMOUS MAP_ANON
|
||||
@ -66,8 +66,8 @@ int gInXcode = 0;
|
||||
/*++
|
||||
Breakpoint target for Xcode project. Set in the Xcode XML
|
||||
|
||||
Xcode breakpoint will 'source SecMain.gdb'
|
||||
gGdbWorkingFileName is set to SecMain.gdb
|
||||
Xcode breakpoint will 'source Host.gdb'
|
||||
gGdbWorkingFileName is set to Host.gdb
|
||||
|
||||
**/
|
||||
VOID
|
@ -17,7 +17,7 @@
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = SecMain
|
||||
BASE_NAME = Host
|
||||
FILE_GUID = 8863C0AD-7724-C84B-88E5-A33B116D1485
|
||||
MODULE_TYPE = USER_DEFINED
|
||||
VERSION_STRING = 1.0
|
||||
@ -29,7 +29,7 @@
|
||||
#
|
||||
|
||||
[Sources]
|
||||
SecMain.c
|
||||
Host.c
|
||||
EmuThunk.c
|
||||
X11GraphicsWindow.c
|
||||
Pthreads.c
|
||||
@ -113,13 +113,13 @@
|
||||
|
||||
|
||||
[BuildOptions]
|
||||
GCC:*_*_IA32_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -m elf_i386 -dynamic-linker /lib$(LIB_ARCH_SFX)/ld-linux.so.2 /usr/lib$(LIB_ARCH_SFX)/crt1.o /usr/lib$(LIB_ARCH_SFX)/crti.o -L/usr/X11R6/lib -lXext -lX11 /usr/lib$(LIB_ARCH_SFX)/crtn.o
|
||||
GCC:*_*_IA32_DLINK_FLAGS == -o $(BIN_DIR)/Host -m elf_i386 -dynamic-linker /lib$(LIB_ARCH_SFX)/ld-linux.so.2 /usr/lib$(LIB_ARCH_SFX)/crt1.o /usr/lib$(LIB_ARCH_SFX)/crti.o -L/usr/X11R6/lib -lXext -lX11 /usr/lib$(LIB_ARCH_SFX)/crtn.o
|
||||
GCC:*_*_*_DLINK2_FLAGS == -lpthread -lc
|
||||
GCC:*_*_IA32_CC_FLAGS == -m32 -g -fshort-wchar -fno-strict-aliasing -Wall -malign-double -idirafter/usr/include -c -include $(DEST_DIR_DEBUG)/AutoGen.h -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
|
||||
GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
|
||||
GCC:*_*_IA32_ASM_FLAGS == -m32 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
|
||||
|
||||
GCC:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -m elf_x86_64 -dynamic-linker /lib$(LIB_ARCH_SFX)/ld-linux-x86-64.so.2 /usr/lib$(LIB_ARCH_SFX)/crt1.o /usr/lib$(LIB_ARCH_SFX)/crti.o -L/usr/X11R6/lib -lXext -lX11 /usr/lib$(LIB_ARCH_SFX)/crtn.o
|
||||
GCC:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/Host -m elf_x86_64 -dynamic-linker /lib$(LIB_ARCH_SFX)/ld-linux-x86-64.so.2 /usr/lib$(LIB_ARCH_SFX)/crt1.o /usr/lib$(LIB_ARCH_SFX)/crti.o -L/usr/X11R6/lib -lXext -lX11 /usr/lib$(LIB_ARCH_SFX)/crtn.o
|
||||
GCC:*_*_X64_CC_FLAGS == -m64 -g -fshort-wchar -fno-strict-aliasing -Wall -malign-double -idirafter/usr/include -c -include $(DEST_DIR_DEBUG)/AutoGen.h -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
|
||||
GCC:*_GCC44_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))"
|
||||
GCC:*_GCC45_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))"
|
||||
@ -131,10 +131,10 @@
|
||||
#
|
||||
XCODE:*_*_IA32_DLINK_PATH == gcc
|
||||
XCODE:*_*_IA32_CC_FLAGS == -arch i386 -O0 -g -include $(DEST_DIR_DEBUG)/AutoGen.h -c -fshort-wchar -fno-strict-aliasing
|
||||
XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -framework Carbon
|
||||
XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/Host -L/usr/X11R6/lib -lXext -lX11 -framework Carbon
|
||||
XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g
|
||||
|
||||
XCODE:*_*_X64_DLINK_PATH == gcc
|
||||
XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -framework Carbon
|
||||
XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/Host -L/usr/X11R6/lib -lXext -lX11 -framework Carbon
|
||||
XCODE:*_*_X64_ASM_FLAGS == -g
|
||||
|
@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
--*/
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
|
||||
|
||||
/**
|
||||
|
@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
**/
|
||||
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
|
||||
#ifndef __APPLE__
|
||||
|
||||
|
@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
|
||||
|
||||
#define EMU_SIMPLE_FILE_SYSTEM_PRIVATE_SIGNATURE SIGNATURE_32 ('E', 'P', 'f', 's')
|
||||
|
@ -15,7 +15,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
#include <pthread.h>
|
||||
|
||||
|
||||
|
@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#include "SecMain.h"
|
||||
#include "Host.h"
|
||||
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
|
@ -205,7 +205,7 @@
|
||||
gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareBlockSize|0x10000
|
||||
gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareVolume|L"../FV/FV_RECOVERY.fd"
|
||||
|
||||
gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySizeForSecMain|L"64!64"
|
||||
gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize|L"64!64"
|
||||
|
||||
!if $(BUILD_NEW_SHELL)
|
||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
|
||||
@ -296,7 +296,7 @@
|
||||
##
|
||||
# Emulator, OS POSIX application
|
||||
##
|
||||
EmulatorPkg/Unix/Host/SecMain.inf
|
||||
EmulatorPkg/Unix/Host/Host.inf
|
||||
!endif
|
||||
|
||||
!ifndef $(SKIP_MAIN_BUILD)
|
||||
|
@ -2,14 +2,14 @@
|
||||
{
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
activeBuildConfigurationName = Debug;
|
||||
activeExecutable = BA11A1010FB10BCE00D06FEC /* SecMain.dll */;
|
||||
activeExecutable = BA11A1010FB10BCE00D06FEC /* Host.dll */;
|
||||
activeTarget = D28A88AD04BDD90700651E21 /* xcode_project */;
|
||||
breakpoints = (
|
||||
BA11A11A0FB10E0700D06FEC /* SecGdbConfigBreak */,
|
||||
);
|
||||
codeSenseManager = BA11A0FE0FB10B4800D06FEC /* Code sense */;
|
||||
executables = (
|
||||
BA11A1010FB10BCE00D06FEC /* SecMain.dll */,
|
||||
BA11A1010FB10BCE00D06FEC /* Host.dll */,
|
||||
);
|
||||
perUserDictionary = {
|
||||
"PBXConfiguration.PBXBreakpointsDataSource.v1:1CA1AED706398EBD00589147" = {
|
||||
@ -92,7 +92,7 @@
|
||||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
BA11A1010FB10BCE00D06FEC /* SecMain.dll */ = {
|
||||
BA11A1010FB10BCE00D06FEC /* Host.dll */ = {
|
||||
isa = PBXExecutable;
|
||||
activeArgIndices = (
|
||||
);
|
||||
@ -144,9 +144,9 @@
|
||||
);
|
||||
executableSystemSymbolLevel = 0;
|
||||
executableUserSymbolLevel = 0;
|
||||
launchableReference = BA11A1020FB10BCE00D06FEC /* SecMain.dll */;
|
||||
launchableReference = BA11A1020FB10BCE00D06FEC /* Host.dll */;
|
||||
libgmallocEnabled = 0;
|
||||
name = SecMain.dll;
|
||||
name = Host.dll;
|
||||
savedGlobals = {
|
||||
};
|
||||
showTypeColumn = 0;
|
||||
@ -154,11 +154,11 @@
|
||||
);
|
||||
startupPath = ../../../../Build/EmuUnixIa32/DEBUG_XCLANG/IA32;
|
||||
};
|
||||
BA11A1020FB10BCE00D06FEC /* SecMain.dll */ = {
|
||||
BA11A1020FB10BCE00D06FEC /* Host.dll */ = {
|
||||
isa = PBXFileReference;
|
||||
lastKnownFileType = "compiled.mach-o.executable";
|
||||
name = SecMain.dll;
|
||||
path = ../../../../Build/EmuUnixIa32/DEBUG_XCLANG/IA32/SecMain;
|
||||
name = Host.dll;
|
||||
path = ../../../../Build/EmuUnixIa32/DEBUG_XCLANG/IA32/Host;
|
||||
sourceTree = SOURCE_ROOT;
|
||||
};
|
||||
BA11A11A0FB10E0700D06FEC /* SecGdbConfigBreak */ = {
|
||||
@ -172,7 +172,7 @@
|
||||
delayBeforeContinue = 0;
|
||||
hitCount = 0;
|
||||
ignoreCount = 0;
|
||||
location = SecMain;
|
||||
location = Host;
|
||||
modificationTime = 263261853.260195;
|
||||
originalNumberOfMultipleMatches = 1;
|
||||
state = 1;
|
||||
|
@ -2,14 +2,14 @@
|
||||
{
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
activeBuildConfigurationName = Debug;
|
||||
activeExecutable = BA11A1010FB10BCE00D06FEC /* SecMain.dll */;
|
||||
activeExecutable = BA11A1010FB10BCE00D06FEC /* Host.dll */;
|
||||
activeTarget = D28A88AD04BDD90700651E21 /* xcode_project */;
|
||||
breakpoints = (
|
||||
BA11A11A0FB10E0700D06FEC /* SecGdbConfigBreak */,
|
||||
);
|
||||
codeSenseManager = BA11A0FE0FB10B4800D06FEC /* Code sense */;
|
||||
executables = (
|
||||
BA11A1010FB10BCE00D06FEC /* SecMain.dll */,
|
||||
BA11A1010FB10BCE00D06FEC /* Host.dll */,
|
||||
);
|
||||
perUserDictionary = {
|
||||
"PBXConfiguration.PBXBreakpointsDataSource.v1:1CA1AED706398EBD00589147" = {
|
||||
@ -92,7 +92,7 @@
|
||||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
BA11A1010FB10BCE00D06FEC /* SecMain.dll */ = {
|
||||
BA11A1010FB10BCE00D06FEC /* Host.dll */ = {
|
||||
isa = PBXExecutable;
|
||||
activeArgIndices = (
|
||||
);
|
||||
@ -144,9 +144,9 @@
|
||||
);
|
||||
executableSystemSymbolLevel = 0;
|
||||
executableUserSymbolLevel = 0;
|
||||
launchableReference = BA11A1020FB10BCE00D06FEC /* SecMain.dll */;
|
||||
launchableReference = BA11A1020FB10BCE00D06FEC /* Host.dll */;
|
||||
libgmallocEnabled = 0;
|
||||
name = SecMain.dll;
|
||||
name = Host.dll;
|
||||
savedGlobals = {
|
||||
};
|
||||
showTypeColumn = 0;
|
||||
@ -154,11 +154,11 @@
|
||||
);
|
||||
startupPath = ../../../../Build/EmuUnixX64/DEBUG_XCLANG/X64;
|
||||
};
|
||||
BA11A1020FB10BCE00D06FEC /* SecMain.dll */ = {
|
||||
BA11A1020FB10BCE00D06FEC /* Host.dll */ = {
|
||||
isa = PBXFileReference;
|
||||
lastKnownFileType = "compiled.mach-o.executable";
|
||||
name = SecMain.dll;
|
||||
path = ../../../../Build/EmuUnixX64/DEBUG_XCLANG/X64/SecMain;
|
||||
name = Host.dll;
|
||||
path = ../../../../Build/EmuUnixX64/DEBUG_XCLANG/X64/Host;
|
||||
sourceTree = SOURCE_ROOT;
|
||||
};
|
||||
BA11A11A0FB10E0700D06FEC /* SecGdbConfigBreak */ = {
|
||||
@ -172,7 +172,7 @@
|
||||
delayBeforeContinue = 0;
|
||||
hitCount = 0;
|
||||
ignoreCount = 0;
|
||||
location = SecMain;
|
||||
location = Host;
|
||||
modificationTime = 263261853.260195;
|
||||
originalNumberOfMultipleMatches = 1;
|
||||
state = 1;
|
||||
|
@ -96,13 +96,13 @@ do
|
||||
#
|
||||
# On Darwin we can't use dlopen, so we have to load the real PE/COFF images.
|
||||
# This .gdbinit script sets a breakpoint that loads symbols for the PE/COFFEE
|
||||
# images that get loaded in SecMain
|
||||
# images that get loaded in Host
|
||||
#
|
||||
cp $WORKSPACE/EmulatorPkg/Unix/.gdbinit $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$UNIXPKG_TOOLS"/IA32
|
||||
;;
|
||||
esac
|
||||
|
||||
/usr/bin/gdb $BUILD_ROOT_ARCH/SecMain -q -cd=$BUILD_ROOT_ARCH -x $WORKSPACE/EmulatorPkg/Unix/GdbRun
|
||||
/usr/bin/gdb $BUILD_ROOT_ARCH/Host -q -cd=$BUILD_ROOT_ARCH -x $WORKSPACE/EmulatorPkg/Unix/GdbRun
|
||||
exit
|
||||
fi
|
||||
|
||||
@ -131,7 +131,7 @@ if [[ $TARGET_TOOLS == $UNIXPKG_TOOLS ]]; then
|
||||
else
|
||||
build -p $WORKSPACE/EmulatorPkg/Unix/UnixX64.dsc -a IA32 -t $TARGET_TOOLS -D BUILD_32 -D UNIX_SEC_BUILD -D SKIP_MAIN_BUILD -n 3 $1 $2 $3 $4 $5 $6 $7 $8 modules
|
||||
build -p $WORKSPACE/EmulatorPkg/Unix/UnixX64.dsc -a IA32 -t $UNIXPKG_TOOLS -D BUILD_32 $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3 $1 $2 $3 $4 $5 $6 $7 $8
|
||||
cp $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$TARGET_TOOLS"/IA32/SecMain $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$UNIXPKG_TOOLS"/IA32
|
||||
cp $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$TARGET_TOOLS"/IA32/Host $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$UNIXPKG_TOOLS"/IA32
|
||||
fi
|
||||
exit $?
|
||||
|
||||
|
@ -97,13 +97,13 @@ do
|
||||
#
|
||||
# On Darwin we can't use dlopen, so we have to load the real PE/COFF images.
|
||||
# This .gdbinit script sets a breakpoint that loads symbols for the PE/COFFEE
|
||||
# images that get loaded in SecMain
|
||||
# images that get loaded in Host
|
||||
#
|
||||
cp $WORKSPACE/EmulatorPkg/Unix/.gdbinit $WORKSPACE/Build/EmuUnixX64/DEBUG_"$UNIXPKG_TOOLS"/X64
|
||||
;;
|
||||
esac
|
||||
|
||||
/usr/bin/gdb $BUILD_ROOT_ARCH/SecMain -q -cd=$BUILD_ROOT_ARCH -x $WORKSPACE/EmulatorPkg/Unix/GdbRun
|
||||
/usr/bin/gdb $BUILD_ROOT_ARCH/Host -q -cd=$BUILD_ROOT_ARCH -x $WORKSPACE/EmulatorPkg/Unix/GdbRun
|
||||
exit
|
||||
fi
|
||||
|
||||
@ -132,7 +132,7 @@ if [[ $TARGET_TOOLS == $UNIXPKG_TOOLS ]]; then
|
||||
else
|
||||
build -p $WORKSPACE/EmulatorPkg/Unix/UnixX64.dsc -a X64 -t $TARGET_TOOLS -D UNIX_SEC_BUILD -D SKIP_MAIN_BUILD -n 3 $1 $2 $3 $4 $5 $6 $7 $8 modules
|
||||
build -p $WORKSPACE/EmulatorPkg/Unix/UnixX64.dsc -a X64 -t $UNIXPKG_TOOLS $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3 $1 $2 $3 $4 $5 $6 $7 $8
|
||||
cp $WORKSPACE/Build/EmuUnixX64/DEBUG_"$TARGET_TOOLS"/X64/SecMain $WORKSPACE/Build/EmuUnixX64/DEBUG_"$UNIXPKG_TOOLS"/X64
|
||||
cp $WORKSPACE/Build/EmuUnixX64/DEBUG_"$TARGET_TOOLS"/X64/Host $WORKSPACE/Build/EmuUnixX64/DEBUG_"$UNIXPKG_TOOLS"/X64
|
||||
fi
|
||||
exit $?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user