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