blob: 1ab70e75f0dbfc087fafac348db30a07c886b27d [file] [log] [blame]
lgao47b202cb2010-02-23 23:58:38 +00001## @file
eric_tian804405e2008-06-30 05:08:49 +00002# Entry Point of Unix Emulator
3#
4# Main executable file of Unix Emulator that loads PEI core after initialization finished.
niruiyu8cc943a2011-08-29 04:58:13 +00005# Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>
andrewfish2ff79f22010-11-30 23:38:40 +00006# Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
eric_tian804405e2008-06-30 05:08:49 +00007#
hhtianf9b8ab52010-04-28 12:31:45 +00008# This program and the accompanying materials
eric_tian804405e2008-06-30 05:08:49 +00009# 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#
lgao47b202cb2010-02-23 23:58:38 +000016##
eric_tian804405e2008-06-30 05:08:49 +000017
18[Defines]
19 INF_VERSION = 0x00010005
20 BASE_NAME = SecMain
21 FILE_GUID = f43be88c-8985-11db-8f78-0040d02b1835
eric_tian73aa7f02008-07-16 05:28:50 +000022 MODULE_TYPE = USER_DEFINED
eric_tian804405e2008-06-30 05:08:49 +000023 VERSION_STRING = 1.0
eric_tian804405e2008-06-30 05:08:49 +000024 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
lgao47b202cb2010-02-23 23:58:38 +000032[Sources]
eric_tian804405e2008-06-30 05:08:49 +000033 UgaX11.c
34 UnixThunk.c
35 FwVol.c
36 SecMain.c
jljustencb5e6cd2010-10-13 07:06:53 +000037
38[Sources.Ia32]
andrewfishede7ec02010-07-23 22:20:00 +000039 Gasket.c
qhuang8ccd55822009-08-25 07:29:13 +000040 Ia32/Gasket.S
41 Ia32/Stack.S
andrewfish67f86802010-07-14 21:04:21 +000042 Ia32/SwitchStack.c
43
jljustencb5e6cd2010-10-13 07:06:53 +000044[Sources.X64]
andrewfish2ff79f22010-11-30 23:38:40 +000045# X64/Gasket.S # pure UNIX x86_64 ABI also need to fix issues in BaseLib
andrewfishbb111c22010-08-18 20:24:08 +000046 X64/MangleGasket.S # convert between UNIX x86_64 ABI and EFI X64 ABI
jljustencb5e6cd2010-10-13 07:06:53 +000047
andrewfish67f86802010-07-14 21:04:21 +000048 X64/SwitchStack.S
andrewfishede7ec02010-07-23 22:20:00 +000049 X64/NameManglingFix.c
andrewfishbb111c22010-08-18 20:24:08 +000050
eric_tian804405e2008-06-30 05:08:49 +000051
52[Packages]
53 MdePkg/MdePkg.dec
54 MdeModulePkg/MdeModulePkg.dec
eric_tian804405e2008-06-30 05:08:49 +000055 UnixPkg/UnixPkg.dec
56
57[LibraryClasses]
58 DebugLib
59 PcdLib
60 PrintLib
61 BaseMemoryLib
62 BaseLib
63 PeCoffLib
64 ReportStatusCodeLib
andrewfish249383c2010-09-16 20:23:33 +000065 SecDispatchTableLib
eric_tian804405e2008-06-30 05:08:49 +000066
67
eric_tian804405e2008-06-30 05:08:49 +000068[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
lgao47b202cb2010-02-23 23:58:38 +000077[Pcd]
eric_tian804405e2008-06-30 05:08:49 +000078 gEfiUnixPkgTokenSpaceGuid.PcdUnixBootMode
79 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareVolume
80 gEfiUnixPkgTokenSpaceGuid.PcdUnixMemorySizeForSecMain
81 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize
AJFISH7ee3b612009-12-06 02:00:37 +000082 gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress
eric_tian804405e2008-06-30 05:08:49 +000083
lgao47b202cb2010-02-23 23:58:38 +000084[BuildOptions]
niruiyu8cc943a2011-08-29 04:58:13 +000085 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
jwang363c5a8c12009-02-20 02:09:56 +000086 GCC:*_*_*_DLINK2_FLAGS == -lc
niruiyu8cc943a2011-08-29 04:58:13 +000087 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
qhuang8ccd55822009-08-25 07:29:13 +000090
niruiyu8cc943a2011-08-29 04:58:13 +000091 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
andrewfish2ec364f2010-08-08 19:07:14 +000095
qhuang8ccd55822009-08-25 07:29:13 +000096#
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
niruiyu8cc943a2011-08-29 04:58:13 +0000100 XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o "$(BIN_DIR)/SecMain" -L/usr/X11R6/lib -lXext -lX11 -framework IOKit -framework Carbon
qhuang8ccd55822009-08-25 07:29:13 +0000101 XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g
andrewfish67f86802010-07-14 21:04:21 +0000102
103 XCODE:*_*_X64_DLINK_PATH == gcc
niruiyu8cc943a2011-08-29 04:58:13 +0000104 XCODE:*_*_X64_DLINK_FLAGS == -o "$(BIN_DIR)/SecMain" -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
andrewfish67f86802010-07-14 21:04:21 +0000105 XCODE:*_*_X64_ASM_FLAGS == -g