]>
Commit | Line | Data |
---|---|---|
7b202cb0 | 1 | ## @file\r |
804405e7 | 2 | # Entry Point of Unix Emulator\r |
3 | #\r | |
4 | # Main executable file of Unix Emulator that loads PEI core after initialization finished.\r | |
7b202cb0 | 5 | # Copyright (c) 2008 - 2010, Intel Corporation\r |
ccd55824 | 6 | # Portions copyright (c) 2008-2009 Apple Inc.\r |
804405e7 | 7 | #\r |
8 | # All rights reserved. This program and the accompanying materials\r | |
9 | # are licensed and made available under the terms and conditions of the BSD License\r | |
10 | # which accompanies this distribution. The full text of the license may be found at\r | |
11 | # http://opensource.org/licenses/bsd-license.php\r | |
12 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | #\r | |
15 | #\r | |
7b202cb0 | 16 | ##\r |
804405e7 | 17 | \r |
18 | [Defines]\r | |
19 | INF_VERSION = 0x00010005\r | |
20 | BASE_NAME = SecMain\r | |
21 | FILE_GUID = f43be88c-8985-11db-8f78-0040d02b1835\r | |
73aa7f04 | 22 | MODULE_TYPE = USER_DEFINED\r |
804405e7 | 23 | VERSION_STRING = 1.0\r |
804405e7 | 24 | ENTRY_POINT = main\r |
25 | \r | |
26 | #\r | |
27 | # The following information is for reference only and not required by the build tools.\r | |
28 | #\r | |
29 | # VALID_ARCHITECTURES = IA32 X64 IPF EBC\r | |
30 | #\r | |
31 | \r | |
7b202cb0 | 32 | [Sources]\r |
804405e7 | 33 | UgaX11.c\r |
34 | UnixThunk.c\r | |
35 | FwVol.c\r | |
36 | SecMain.c\r | |
7ee3b613 | 37 | Gasket.c\r |
ccd55824 | 38 | \r |
39 | [Sources.Ia32] \r | |
40 | Ia32/Gasket.S\r | |
41 | Ia32/Stack.S\r | |
804405e7 | 42 | \r |
43 | [Packages]\r | |
44 | MdePkg/MdePkg.dec\r | |
45 | MdeModulePkg/MdeModulePkg.dec\r | |
804405e7 | 46 | UnixPkg/UnixPkg.dec\r |
47 | \r | |
48 | [LibraryClasses]\r | |
49 | DebugLib\r | |
50 | PcdLib\r | |
51 | PrintLib\r | |
52 | BaseMemoryLib\r | |
53 | BaseLib\r | |
54 | PeCoffLib\r | |
55 | ReportStatusCodeLib\r | |
56 | \r | |
57 | \r | |
804405e7 | 58 | [Ppis]\r |
59 | gUnixPeiLoadFilePpiGuid # PPI ALWAYS_PRODUCED\r | |
60 | gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED\r | |
61 | gUnixFwhPpiGuid # PPI ALWAYS_PRODUCED\r | |
62 | gPeiUnixAutoScanPpiGuid # PPI ALWAYS_PRODUCED\r | |
63 | gPeiUnixThunkPpiGuid # PPI ALWAYS_PRODUCED\r | |
64 | gEfiTemporaryRamSupportPpiGuid\r | |
65 | \r | |
66 | \r | |
7b202cb0 | 67 | [Pcd]\r |
804405e7 | 68 | gEfiUnixPkgTokenSpaceGuid.PcdUnixBootMode\r |
69 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareVolume\r | |
70 | gEfiUnixPkgTokenSpaceGuid.PcdUnixMemorySizeForSecMain\r | |
71 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize\r | |
7ee3b613 | 72 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress\r |
804405e7 | 73 | \r |
7b202cb0 | 74 | [BuildOptions]\r |
95e9472f | 75 | 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\r |
3c5a8c11 | 76 | GCC:*_*_*_DLINK2_FLAGS == -lc\r |
77 | 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\r | |
78 | GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h\r | |
79 | GCC:*_*_IA32_ASM_FLAGS == -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h\r | |
ccd55824 | 80 | \r |
81 | #\r | |
82 | # Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version\r | |
83 | #\r | |
84 | XCODE:*_*_IA32_DLINK_PATH == gcc\r | |
7ee3b613 | 85 | XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon \r |
ccd55824 | 86 | XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g\r |