]> git.proxmox.com Git - mirror_edk2.git/blob - InOsEmuPkg/Unix/Sec/SecMain.inf
InOsEmuPkg: Update code to support BerkeleyPacketFilter, and add a template for Linux...
[mirror_edk2.git] / InOsEmuPkg / Unix / Sec / SecMain.inf
1 ## @file
2 # Entry Point of Emu Emulator
3 #
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>
7 #
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.
14 #
15 #
16 ##
17
18 [Defines]
19 INF_VERSION = 0x00010005
20 BASE_NAME = SecMain
21 FILE_GUID = 8863C0AD-7724-C84B-88E5-A33B116D1485
22 MODULE_TYPE = USER_DEFINED
23 # MODULE_TYPE = BASE
24 VERSION_STRING = 1.0
25
26 #
27 # The following information is for reference only and not required by the build tools.
28 #
29 # VALID_ARCHITECTURES = IA32 X64 IPF EBC
30 #
31
32 [Sources]
33 SecMain.c
34 EmuThunk.c
35 X11GraphicsWindow.c
36 Pthreads.c
37 PosixFileSystem.c
38 BlockIo.c
39 LinuxPacketFilter.c
40 BerkeleyPacketFilter.c
41
42 [Sources.X64]
43 X64/Gasket.S # convert between Emu x86_64 ABI and EFI X64 ABI
44 X64/SwitchStack.S
45
46
47 [Packages]
48 MdePkg/MdePkg.dec
49 MdeModulePkg/MdeModulePkg.dec
50 InOsEmuPkg/InOsEmuPkg.dec
51
52 [LibraryClasses]
53 DebugLib
54 PcdLib
55 PrintLib
56 BaseMemoryLib
57 BaseLib
58 PeCoffLib
59 ThunkPpiList
60 ThunkProtocolList
61 PpiListLib
62 PeiServicesLib
63 PeCoffGetEntryPointLib
64
65 [Ppis]
66 gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
67 gEmuThunkPpiGuid
68
69 [Protocols]
70 gEmuIoThunkProtocolGuid
71 gEmuIoThunkProtocolGuid
72 gEmuGraphicsWindowProtocolGuid
73 gEmuThreadThunkProtocolGuid
74 gEmuBlockIoProtocolGuid
75 gEmuSnpProtocolGuid
76 gEfiSimpleFileSystemProtocolGuid
77
78 [Guids]
79 gEfiFileSystemVolumeLabelInfoIdGuid # SOMETIMES_CONSUMED
80 gEfiFileInfoGuid # SOMETIMES_CONSUMED
81 gEfiFileSystemInfoGuid # SOMETIMES_CONSUMED
82
83 [Pcd]
84 gInOsEmuPkgTokenSpaceGuid.PcdEmuBootMode
85 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareVolume
86 gInOsEmuPkgTokenSpaceGuid.PcdEmuMemorySize
87 gInOsEmuPkgTokenSpaceGuid.PcdEmuFdBaseAddress
88 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareFdSize
89 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareBlockSize
90 gInOsEmuPkgTokenSpaceGuid.PcdEmuApCount
91 gInOsEmuPkgTokenSpaceGuid.PcdEmuVirtualDisk
92 gInOsEmuPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"
93 gInOsEmuPkgTokenSpaceGuid.PcdEmuFileSystem
94 gInOsEmuPkgTokenSpaceGuid.PcdEmuSerialPort
95 gInOsEmuPkgTokenSpaceGuid.PcdEmuNetworkInterface
96 gInOsEmuPkgTokenSpaceGuid.PcdNetworkPacketFilterSize
97
98 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashFvRecoveryBase
99 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashFvRecoverySize
100 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageVariableBase
101 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
102 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogBase
103 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogSize
104 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwWorkingBase
105 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
106 gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwSpareBase
107 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
108 gInOsEmuPkgTokenSpaceGuid.PcdPeiServicesTablePage
109
110
111 [BuildOptions]
112 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
113 GCC:*_*_*_DLINK2_FLAGS == -lpthread -lc
114 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
115 GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
116 GCC:*_*_IA32_ASM_FLAGS == -m32 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
117
118 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
119 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
120 GCC:*_*_X64_PP_FLAGS == -m64 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
121 GCC:*_*_X64_ASM_FLAGS == -m64 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
122
123 #
124 # Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version
125 #
126 XCODE:*_*_IA32_DLINK_PATH == gcc
127 XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -framework IOKit -framework Carbon
128 XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g
129
130 XCODE:*_*_X64_DLINK_PATH == gcc
131 XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
132 XCODE:*_*_X64_ASM_FLAGS == -g