lgao4 | 7b202cb | 2010-02-23 23:58:38 +0000 | [diff] [blame] | 1 | ## @file
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 2 | # Entry Point of Unix Emulator
|
| 3 | #
|
| 4 | # Main executable file of Unix Emulator that loads PEI core after initialization finished.
|
niruiyu | 8cc943a | 2011-08-29 04:58:13 +0000 | [diff] [blame] | 5 | # Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>
|
andrewfish | 2ff79f2 | 2010-11-30 23:38:40 +0000 | [diff] [blame] | 6 | # Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 7 | #
|
hhtian | f9b8ab5 | 2010-04-28 12:31:45 +0000 | [diff] [blame] | 8 | # This program and the accompanying materials
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 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 | #
|
lgao4 | 7b202cb | 2010-02-23 23:58:38 +0000 | [diff] [blame] | 16 | ##
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 17 |
|
| 18 | [Defines]
|
| 19 | INF_VERSION = 0x00010005
|
| 20 | BASE_NAME = SecMain
|
| 21 | FILE_GUID = f43be88c-8985-11db-8f78-0040d02b1835
|
eric_tian | 73aa7f0 | 2008-07-16 05:28:50 +0000 | [diff] [blame] | 22 | MODULE_TYPE = USER_DEFINED
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 23 | VERSION_STRING = 1.0
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 24 | ENTRY_POINT = main
|
| 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 |
|
lgao4 | 7b202cb | 2010-02-23 23:58:38 +0000 | [diff] [blame] | 32 | [Sources]
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 33 | UgaX11.c
|
| 34 | UnixThunk.c
|
| 35 | FwVol.c
|
| 36 | SecMain.c
|
jljusten | cb5e6cd | 2010-10-13 07:06:53 +0000 | [diff] [blame] | 37 |
|
| 38 | [Sources.Ia32]
|
andrewfish | ede7ec0 | 2010-07-23 22:20:00 +0000 | [diff] [blame] | 39 | Gasket.c
|
qhuang8 | ccd5582 | 2009-08-25 07:29:13 +0000 | [diff] [blame] | 40 | Ia32/Gasket.S
|
| 41 | Ia32/Stack.S
|
andrewfish | 67f8680 | 2010-07-14 21:04:21 +0000 | [diff] [blame] | 42 | Ia32/SwitchStack.c
|
| 43 |
|
jljusten | cb5e6cd | 2010-10-13 07:06:53 +0000 | [diff] [blame] | 44 | [Sources.X64]
|
andrewfish | 2ff79f2 | 2010-11-30 23:38:40 +0000 | [diff] [blame] | 45 | # X64/Gasket.S # pure UNIX x86_64 ABI also need to fix issues in BaseLib
|
andrewfish | bb111c2 | 2010-08-18 20:24:08 +0000 | [diff] [blame] | 46 | X64/MangleGasket.S # convert between UNIX x86_64 ABI and EFI X64 ABI
|
jljusten | cb5e6cd | 2010-10-13 07:06:53 +0000 | [diff] [blame] | 47 |
|
andrewfish | 67f8680 | 2010-07-14 21:04:21 +0000 | [diff] [blame] | 48 | X64/SwitchStack.S
|
andrewfish | ede7ec0 | 2010-07-23 22:20:00 +0000 | [diff] [blame] | 49 | X64/NameManglingFix.c
|
andrewfish | bb111c2 | 2010-08-18 20:24:08 +0000 | [diff] [blame] | 50 |
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 51 |
|
| 52 | [Packages]
|
| 53 | MdePkg/MdePkg.dec
|
| 54 | MdeModulePkg/MdeModulePkg.dec
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 55 | UnixPkg/UnixPkg.dec
|
| 56 |
|
| 57 | [LibraryClasses]
|
| 58 | DebugLib
|
| 59 | PcdLib
|
| 60 | PrintLib
|
| 61 | BaseMemoryLib
|
| 62 | BaseLib
|
| 63 | PeCoffLib
|
| 64 | ReportStatusCodeLib
|
andrewfish | 249383c | 2010-09-16 20:23:33 +0000 | [diff] [blame] | 65 | SecDispatchTableLib
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 66 |
|
| 67 |
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 68 | [Ppis]
|
| 69 | gUnixPeiLoadFilePpiGuid # PPI ALWAYS_PRODUCED
|
| 70 | gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
|
| 71 | gUnixFwhPpiGuid # PPI ALWAYS_PRODUCED
|
| 72 | gPeiUnixAutoScanPpiGuid # PPI ALWAYS_PRODUCED
|
| 73 | gPeiUnixThunkPpiGuid # PPI ALWAYS_PRODUCED
|
| 74 | gEfiTemporaryRamSupportPpiGuid
|
| 75 |
|
| 76 |
|
lgao4 | 7b202cb | 2010-02-23 23:58:38 +0000 | [diff] [blame] | 77 | [Pcd]
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 78 | gEfiUnixPkgTokenSpaceGuid.PcdUnixBootMode
|
| 79 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareVolume
|
| 80 | gEfiUnixPkgTokenSpaceGuid.PcdUnixMemorySizeForSecMain
|
| 81 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize
|
AJFISH | 7ee3b61 | 2009-12-06 02:00:37 +0000 | [diff] [blame] | 82 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 83 |
|
lgao4 | 7b202cb | 2010-02-23 23:58:38 +0000 | [diff] [blame] | 84 | [BuildOptions]
|
niruiyu | 8cc943a | 2011-08-29 04:58:13 +0000 | [diff] [blame] | 85 | 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
|
jwang36 | 3c5a8c1 | 2009-02-20 02:09:56 +0000 | [diff] [blame] | 86 | GCC:*_*_*_DLINK2_FLAGS == -lc
|
niruiyu | 8cc943a | 2011-08-29 04:58:13 +0000 | [diff] [blame] | 87 | GCC:*_*_IA32_CC_FLAGS == -m32 -g -fshort-wchar -fno-strict-aliasing -Wall -malign-double -idirafter/usr/include -c -include AutoGen.h
|
| 88 | GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include AutoGen.h
|
| 89 | GCC:*_*_IA32_ASM_FLAGS == -m32 -c -x assembler -imacros AutoGen.h
|
qhuang8 | ccd5582 | 2009-08-25 07:29:13 +0000 | [diff] [blame] | 90 |
|
niruiyu | 8cc943a | 2011-08-29 04:58:13 +0000 | [diff] [blame] | 91 | 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
|
| 92 | GCC:*_*_X64_CC_FLAGS == -m64 -g -fshort-wchar -fno-strict-aliasing -Wall -malign-double -idirafter/usr/include -c -include AutoGen.h
|
| 93 | GCC:*_*_X64_PP_FLAGS == -m64 -E -x assembler-with-cpp -include AutoGen.h
|
| 94 | GCC:*_*_X64_ASM_FLAGS == -m64 -c -x assembler -imacros AutoGen.h
|
andrewfish | 2ec364f | 2010-08-08 19:07:14 +0000 | [diff] [blame] | 95 |
|
qhuang8 | ccd5582 | 2009-08-25 07:29:13 +0000 | [diff] [blame] | 96 | #
|
| 97 | # Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version
|
| 98 | #
|
| 99 | XCODE:*_*_IA32_DLINK_PATH == gcc
|
niruiyu | 8cc943a | 2011-08-29 04:58:13 +0000 | [diff] [blame] | 100 | XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o "$(BIN_DIR)/SecMain" -L/usr/X11R6/lib -lXext -lX11 -framework IOKit -framework Carbon
|
qhuang8 | ccd5582 | 2009-08-25 07:29:13 +0000 | [diff] [blame] | 101 | XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g
|
andrewfish | 67f8680 | 2010-07-14 21:04:21 +0000 | [diff] [blame] | 102 |
|
| 103 | XCODE:*_*_X64_DLINK_PATH == gcc
|
niruiyu | 8cc943a | 2011-08-29 04:58:13 +0000 | [diff] [blame] | 104 | XCODE:*_*_X64_DLINK_FLAGS == -o "$(BIN_DIR)/SecMain" -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
|
andrewfish | 67f8680 | 2010-07-14 21:04:21 +0000 | [diff] [blame] | 105 | XCODE:*_*_X64_ASM_FLAGS == -g
|