]> git.proxmox.com Git - mirror_edk2.git/blob - InOsEmuPkg/Unix/Sec/SecMain.inf
Added generic EFIABI SEC to InOsEmuPkg. Add library to abstract FV cracking and remov...
[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 - 2010, 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
39 [Sources.X64]
40 X64/Gasket.S # convert between Emu x86_64 ABI and EFI X64 ABI
41 X64/SwitchStack.S
42
43
44 [Packages]
45 MdePkg/MdePkg.dec
46 MdeModulePkg/MdeModulePkg.dec
47 InOsEmuPkg/InOsEmuPkg.dec
48
49 [LibraryClasses]
50 DebugLib
51 PcdLib
52 PrintLib
53 BaseMemoryLib
54 BaseLib
55 PeCoffLib
56 ThunkPpiList
57 ThunkProtocolList
58 PpiListLib
59 PeiServicesLib
60 PeCoffGetEntryPointLib
61
62 [Ppis]
63 gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
64 gEmuThunkPpiGuid
65
66 [Protocols]
67 gEmuIoThunkProtocolGuid
68 gEmuIoThunkProtocolGuid
69 gEmuGraphicsWindowProtocolGuid
70 gEmuPthreadThunkProtocolGuid
71 gEfiSimpleFileSystemProtocolGuid
72
73
74 [Guids]
75 gEfiFileSystemVolumeLabelInfoIdGuid # SOMETIMES_CONSUMED
76 gEfiFileInfoGuid # SOMETIMES_CONSUMED
77 gEfiFileSystemInfoGuid # SOMETIMES_CONSUMED
78
79 [Pcd]
80 gInOsEmuPkgTokenSpaceGuid.PcdEmuBootMode
81 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareVolume
82 gInOsEmuPkgTokenSpaceGuid.PcdEmuMemorySize
83 gInOsEmuPkgTokenSpaceGuid.PcdEmuFdBaseAddress
84 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareFdSize
85 gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareBlockSize
86 gInOsEmuPkgTokenSpaceGuid.PcdEmuApCount
87 gInOsEmuPkgTokenSpaceGuid.PcdEmuPhysicalDisk
88 gInOsEmuPkgTokenSpaceGuid.PcdEmuVirtualDisk
89 gInOsEmuPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"
90 gInOsEmuPkgTokenSpaceGuid.PcdEmuFileSystem
91 gInOsEmuPkgTokenSpaceGuid.PcdEmuSerialPort
92 gInOsEmuPkgTokenSpaceGuid.PcdEmuNetworkInterface
93
94
95 [BuildOptions]
96 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
97 GCC:*_*_*_DLINK2_FLAGS == -lc
98 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
99 GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
100 GCC:*_*_IA32_ASM_FLAGS == -m32 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
101
102 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
103 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
104 GCC:*_*_X64_PP_FLAGS == -m64 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
105 GCC:*_*_X64_ASM_FLAGS == -m64 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
106
107 #
108 # Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version
109 #
110 XCODE:*_*_IA32_DLINK_PATH == gcc
111 XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -framework IOKit -framework Carbon
112 XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g
113
114 XCODE:*_*_X64_DLINK_PATH == gcc
115 XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
116 XCODE:*_*_X64_ASM_FLAGS == -g