2010-02-24 00:58:38 +01:00
|
|
|
## @file
|
2008-06-30 07:08:49 +02:00
|
|
|
# Entry Point of Unix Emulator
|
|
|
|
#
|
|
|
|
# Main executable file of Unix Emulator that loads PEI core after initialization finished.
|
2010-04-28 14:31:45 +02:00
|
|
|
# Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
|
|
|
|
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
2008-06-30 07:08:49 +02:00
|
|
|
#
|
2010-04-28 14:31:45 +02:00
|
|
|
# This program and the accompanying materials
|
2008-06-30 07:08:49 +02:00
|
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
#
|
|
|
|
#
|
2010-02-24 00:58:38 +01:00
|
|
|
##
|
2008-06-30 07:08:49 +02:00
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 0x00010005
|
|
|
|
BASE_NAME = SecMain
|
|
|
|
FILE_GUID = f43be88c-8985-11db-8f78-0040d02b1835
|
2008-07-16 07:28:50 +02:00
|
|
|
MODULE_TYPE = USER_DEFINED
|
2008-06-30 07:08:49 +02:00
|
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = main
|
|
|
|
|
|
|
|
#
|
|
|
|
# The following information is for reference only and not required by the build tools.
|
|
|
|
#
|
|
|
|
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
|
|
|
#
|
|
|
|
|
2010-02-24 00:58:38 +01:00
|
|
|
[Sources]
|
2008-06-30 07:08:49 +02:00
|
|
|
UgaX11.c
|
|
|
|
UnixThunk.c
|
|
|
|
FwVol.c
|
|
|
|
SecMain.c
|
2009-08-25 09:29:13 +02:00
|
|
|
|
|
|
|
[Sources.Ia32]
|
2010-07-24 00:20:00 +02:00
|
|
|
Gasket.c
|
2009-08-25 09:29:13 +02:00
|
|
|
Ia32/Gasket.S
|
|
|
|
Ia32/Stack.S
|
2010-07-14 23:04:21 +02:00
|
|
|
Ia32/SwitchStack.c
|
|
|
|
|
|
|
|
[Sources.X64]
|
|
|
|
X64/Gasket.S
|
|
|
|
X64/SwitchStack.S
|
2010-07-24 00:20:00 +02:00
|
|
|
X64/NameManglingFix.c
|
|
|
|
|
|
|
|
# Only used to help construct Gasket.S
|
|
|
|
# X64/GasketEfiTemplate.c
|
2008-06-30 07:08:49 +02:00
|
|
|
|
|
|
|
[Packages]
|
|
|
|
MdePkg/MdePkg.dec
|
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
UnixPkg/UnixPkg.dec
|
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
DebugLib
|
|
|
|
PcdLib
|
|
|
|
PrintLib
|
|
|
|
BaseMemoryLib
|
|
|
|
BaseLib
|
|
|
|
PeCoffLib
|
|
|
|
ReportStatusCodeLib
|
|
|
|
|
|
|
|
|
|
|
|
[Ppis]
|
|
|
|
gUnixPeiLoadFilePpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gUnixFwhPpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gPeiUnixAutoScanPpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gPeiUnixThunkPpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gEfiTemporaryRamSupportPpiGuid
|
|
|
|
|
|
|
|
|
2010-02-24 00:58:38 +01:00
|
|
|
[Pcd]
|
2008-06-30 07:08:49 +02:00
|
|
|
gEfiUnixPkgTokenSpaceGuid.PcdUnixBootMode
|
|
|
|
gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareVolume
|
|
|
|
gEfiUnixPkgTokenSpaceGuid.PcdUnixMemorySizeForSecMain
|
|
|
|
gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize
|
2009-12-06 03:00:37 +01:00
|
|
|
gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress
|
2008-06-30 07:08:49 +02:00
|
|
|
|
2010-02-24 00:58:38 +01:00
|
|
|
[BuildOptions]
|
2009-04-14 07:41:33 +02:00
|
|
|
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
|
2009-02-20 03:09:56 +01:00
|
|
|
GCC:*_*_*_DLINK2_FLAGS == -lc
|
|
|
|
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
|
|
|
|
GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
|
2010-07-30 08:48:48 +02:00
|
|
|
GCC:*_*_IA32_ASM_FLAGS == -m32 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
|
2009-08-25 09:29:13 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version
|
|
|
|
#
|
|
|
|
XCODE:*_*_IA32_DLINK_PATH == gcc
|
2009-12-06 03:00:37 +01:00
|
|
|
XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
|
2009-08-25 09:29:13 +02:00
|
|
|
XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g
|
2010-07-14 23:04:21 +02:00
|
|
|
|
|
|
|
XCODE:*_*_X64_DLINK_PATH == gcc
|
|
|
|
XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
|
|
|
|
XCODE:*_*_X64_ASM_FLAGS == -g
|