2 # Entry Point of Emu Emulator
4 # Main executable file of Unix Emulator that loads PEI core after initialization finished.
5 # Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>
6 # Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>
8 # This program and the accompanying materials
9 # are licensed and made available under the terms and conditions of the BSD License
10 # which accompanies this distribution. The full text of the license may be found at
11 # http://opensource.org/licenses/bsd-license.php
12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 INF_VERSION = 0x00010005
21 FILE_GUID = 8863C0AD-7724-C84B-88E5-A33B116D1485
22 MODULE_TYPE = USER_DEFINED
27 # The following information is for reference only and not required by the build tools.
29 # VALID_ARCHITECTURES = IA32 X64 IPF EBC
41 X64/Gasket.S # convert between Emu x86_64 ABI and EFI X64 ABI
47 MdeModulePkg/MdeModulePkg.dec
48 InOsEmuPkg/InOsEmuPkg.dec
61 PeCoffGetEntryPointLib
64 gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
68 gEmuIoThunkProtocolGuid
69 gEmuIoThunkProtocolGuid
70 gEmuGraphicsWindowProtocolGuid
71 gEmuThreadThunkProtocolGuid
72 gEmuBlockIoProtocolGuid
73 gEfiSimpleFileSystemProtocolGuid
76 gEfiFileSystemVolumeLabelInfoIdGuid # SOMETIMES_CONSUMED
77 gEfiFileInfoGuid # SOMETIMES_CONSUMED
78 gEfiFileSystemInfoGuid # SOMETIMES_CONSUMED
81 gInOsEmuPkgTokenSpaceGuid.PcdEmuBootMode
82 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareVolume
83 gInOsEmuPkgTokenSpaceGuid.PcdEmuMemorySize
84 gInOsEmuPkgTokenSpaceGuid.PcdEmuFdBaseAddress
85 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareFdSize
86 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareBlockSize
87 gInOsEmuPkgTokenSpaceGuid.PcdEmuApCount
88 gInOsEmuPkgTokenSpaceGuid.PcdEmuVirtualDisk
89 gInOsEmuPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"
90 gInOsEmuPkgTokenSpaceGuid.PcdEmuFileSystem
91 gInOsEmuPkgTokenSpaceGuid.PcdEmuSerialPort
92 gInOsEmuPkgTokenSpaceGuid.PcdEmuNetworkInterface
94 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashFvRecoveryBase
95 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashFvRecoverySize
96 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageVariableBase
97 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
98 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogBase
99 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogSize
100 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwWorkingBase
101 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
102 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwSpareBase
103 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
104 gInOsEmuPkgTokenSpaceGuid.PcdPeiServicesTablePage
108 GCC:*_*_IA32_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o -L/usr/X11R6/lib -lXext -lX11 /usr/lib/crtn.o
109 GCC:*_*_*_DLINK2_FLAGS == -lpthread -lc
110 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
111 GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
112 GCC:*_*_IA32_ASM_FLAGS == -m32 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
114 GCC:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib/crt1.o /usr/lib/crti.o -L/usr/X11R6/lib -lXext -lX11 /usr/lib/crtn.o
115 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
116 GCC:*_*_X64_PP_FLAGS == -m64 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
117 GCC:*_*_X64_ASM_FLAGS == -m64 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
120 # Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version
122 XCODE:*_*_IA32_DLINK_PATH == gcc
123 XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -framework IOKit -framework Carbon
124 XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g
126 XCODE:*_*_X64_DLINK_PATH == gcc
127 XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
128 XCODE:*_*_X64_ASM_FLAGS == -g