blob: c7a9b40df7b16b2dd0d001a190229e762d0f9a9d [file] [log] [blame]
eric_tian804405e2008-06-30 05:08:49 +00001#/** @file
2# Entry Point of Unix Emulator
3#
4# Main executable file of Unix Emulator that loads PEI core after initialization finished.
qhuang8ccd55822009-08-25 07:29:13 +00005# Copyright (c) 2008 - 2009, Intel Corporation
6# Portions copyright (c) 2008-2009 Apple Inc.
eric_tian804405e2008-06-30 05:08:49 +00007#
8# All rights reserved. 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 = 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
24 EDK_RELEASE_VERSION = 0x00020000
25 EFI_SPECIFICATION_VERSION = 0x00020000
26 ENTRY_POINT = main
27
28#
29# The following information is for reference only and not required by the build tools.
30#
31# VALID_ARCHITECTURES = IA32 X64 IPF EBC
32#
33
34[Sources.common]
35 UgaX11.c
36 UnixThunk.c
37 FwVol.c
38 SecMain.c
qhuang8ccd55822009-08-25 07:29:13 +000039
40[Sources.Ia32]
41 Ia32/Gasket.S
42 Ia32/Stack.S
eric_tian804405e2008-06-30 05:08:49 +000043
44[Packages]
45 MdePkg/MdePkg.dec
46 MdeModulePkg/MdeModulePkg.dec
47 IntelFrameworkPkg/IntelFrameworkPkg.dec
48 UnixPkg/UnixPkg.dec
49
50[LibraryClasses]
51 DebugLib
52 PcdLib
53 PrintLib
54 BaseMemoryLib
55 BaseLib
56 PeCoffLib
57 ReportStatusCodeLib
58
59
eric_tian804405e2008-06-30 05:08:49 +000060[Ppis]
61 gUnixPeiLoadFilePpiGuid # PPI ALWAYS_PRODUCED
62 gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
63 gUnixFwhPpiGuid # PPI ALWAYS_PRODUCED
64 gPeiUnixAutoScanPpiGuid # PPI ALWAYS_PRODUCED
65 gPeiUnixThunkPpiGuid # PPI ALWAYS_PRODUCED
66 gEfiTemporaryRamSupportPpiGuid
67
68
69[Pcd.common]
70 gEfiUnixPkgTokenSpaceGuid.PcdUnixBootMode
71 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareVolume
72 gEfiUnixPkgTokenSpaceGuid.PcdUnixMemorySizeForSecMain
73 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize
74
75[BuildOptions.common]
eric_tian95e94722009-04-14 05:41:33 +000076 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 +000077 GCC:*_*_*_DLINK2_FLAGS == -lc
78 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
79 GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
80 GCC:*_*_IA32_ASM_FLAGS == -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
qhuang8ccd55822009-08-25 07:29:13 +000081
82#
83# Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version
84#
85 XCODE:*_*_IA32_DLINK_PATH == gcc
86 XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
87 XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g