eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 1 | #/** @file
|
| 2 | # Entry Point of Unix Emulator
|
| 3 | #
|
| 4 | # Main executable file of Unix Emulator that loads PEI core after initialization finished.
|
qhuang8 | ccd5582 | 2009-08-25 07:29:13 +0000 | [diff] [blame] | 5 | # Copyright (c) 2008 - 2009, Intel Corporation
|
| 6 | # Portions copyright (c) 2008-2009 Apple Inc.
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 7 | #
|
| 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_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
|
| 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
|
AJFISH | 7ee3b61 | 2009-12-06 02:00:37 +0000 | [diff] [blame^] | 39 | Gasket.c
|
qhuang8 | ccd5582 | 2009-08-25 07:29:13 +0000 | [diff] [blame] | 40 |
|
| 41 | [Sources.Ia32]
|
| 42 | Ia32/Gasket.S
|
| 43 | Ia32/Stack.S
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 44 |
|
| 45 | [Packages]
|
| 46 | MdePkg/MdePkg.dec
|
| 47 | MdeModulePkg/MdeModulePkg.dec
|
| 48 | IntelFrameworkPkg/IntelFrameworkPkg.dec
|
| 49 | UnixPkg/UnixPkg.dec
|
| 50 |
|
| 51 | [LibraryClasses]
|
| 52 | DebugLib
|
| 53 | PcdLib
|
| 54 | PrintLib
|
| 55 | BaseMemoryLib
|
| 56 | BaseLib
|
| 57 | PeCoffLib
|
| 58 | ReportStatusCodeLib
|
| 59 |
|
| 60 |
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 61 | [Ppis]
|
| 62 | gUnixPeiLoadFilePpiGuid # PPI ALWAYS_PRODUCED
|
| 63 | gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
|
| 64 | gUnixFwhPpiGuid # PPI ALWAYS_PRODUCED
|
| 65 | gPeiUnixAutoScanPpiGuid # PPI ALWAYS_PRODUCED
|
| 66 | gPeiUnixThunkPpiGuid # PPI ALWAYS_PRODUCED
|
| 67 | gEfiTemporaryRamSupportPpiGuid
|
| 68 |
|
| 69 |
|
| 70 | [Pcd.common]
|
| 71 | gEfiUnixPkgTokenSpaceGuid.PcdUnixBootMode
|
| 72 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareVolume
|
| 73 | gEfiUnixPkgTokenSpaceGuid.PcdUnixMemorySizeForSecMain
|
| 74 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize
|
AJFISH | 7ee3b61 | 2009-12-06 02:00:37 +0000 | [diff] [blame^] | 75 | gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress
|
eric_tian | 804405e | 2008-06-30 05:08:49 +0000 | [diff] [blame] | 76 |
|
| 77 | [BuildOptions.common]
|
eric_tian | 95e9472 | 2009-04-14 05:41:33 +0000 | [diff] [blame] | 78 | 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] | 79 | GCC:*_*_*_DLINK2_FLAGS == -lc
|
| 80 | 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
|
| 81 | GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
|
| 82 | GCC:*_*_IA32_ASM_FLAGS == -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
|
qhuang8 | ccd5582 | 2009-08-25 07:29:13 +0000 | [diff] [blame] | 83 |
|
| 84 | #
|
| 85 | # Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version
|
| 86 | #
|
| 87 | XCODE:*_*_IA32_DLINK_PATH == gcc
|
AJFISH | 7ee3b61 | 2009-12-06 02:00:37 +0000 | [diff] [blame^] | 88 | XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
|
qhuang8 | ccd5582 | 2009-08-25 07:29:13 +0000 | [diff] [blame] | 89 | XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g
|