From 1eaf341c99579fea0de80f1f06625261fa3f05de Mon Sep 17 00:00:00 2001 From: jljusten Date: Sat, 13 Oct 2007 07:19:48 +0000 Subject: Moving BaseTools to Tools/BaseTools. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4110 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/BaseTools/Bin/Win32/BootSectImage.exe | Bin 0 -> 65536 bytes Tools/BaseTools/Bin/Win32/EfiLdrImage.exe | Bin 0 -> 65536 bytes Tools/BaseTools/Bin/Win32/EfiRom.exe | Bin 0 -> 94208 bytes Tools/BaseTools/Bin/Win32/Fpd2Dsc.exe | Bin 0 -> 1408700 bytes Tools/BaseTools/Bin/Win32/GenBootSector.exe | Bin 0 -> 49152 bytes Tools/BaseTools/Bin/Win32/GenFds.exe | Bin 0 -> 1284981 bytes Tools/BaseTools/Bin/Win32/GenFfs.exe | Bin 0 -> 77824 bytes Tools/BaseTools/Bin/Win32/GenFv.exe | Bin 0 -> 126976 bytes Tools/BaseTools/Bin/Win32/GenFw.exe | Bin 0 -> 90112 bytes Tools/BaseTools/Bin/Win32/GenPage.exe | Bin 0 -> 53248 bytes Tools/BaseTools/Bin/Win32/GenSec.exe | Bin 0 -> 94208 bytes Tools/BaseTools/Bin/Win32/GenVtf.exe | Bin 0 -> 90112 bytes Tools/BaseTools/Bin/Win32/MigrationMsa2Inf.exe | Bin 0 -> 1367026 bytes Tools/BaseTools/Bin/Win32/PcdSyntaxUpdate.exe | Bin 0 -> 558789 bytes Tools/BaseTools/Bin/Win32/Spd2Dec.exe | Bin 0 -> 1329333 bytes Tools/BaseTools/Bin/Win32/Split.exe | Bin 0 -> 65536 bytes Tools/BaseTools/Bin/Win32/TargetTool.exe | Bin 0 -> 559089 bytes Tools/BaseTools/Bin/Win32/TianoCompress.exe | Bin 0 -> 86016 bytes Tools/BaseTools/Bin/Win32/Trim.exe | Bin 0 -> 552901 bytes Tools/BaseTools/Bin/Win32/VfrCompile.exe | Bin 0 -> 290816 bytes Tools/BaseTools/Bin/Win32/_hashlib.pyd | Bin 0 -> 323584 bytes Tools/BaseTools/Bin/Win32/_socket.pyd | Bin 0 -> 53248 bytes Tools/BaseTools/Bin/Win32/_ssl.pyd | Bin 0 -> 655360 bytes Tools/BaseTools/Bin/Win32/antlr.exe | Bin 0 -> 495616 bytes Tools/BaseTools/Bin/Win32/build.exe | Bin 0 -> 1498143 bytes Tools/BaseTools/Bin/Win32/dlg.exe | Bin 0 -> 131072 bytes Tools/BaseTools/Bin/Win32/pyexpat.pyd | Bin 0 -> 135168 bytes Tools/BaseTools/Bin/Win32/python25.dll | Bin 0 -> 2113536 bytes Tools/BaseTools/Bin/Win32/select.pyd | Bin 0 -> 7680 bytes Tools/BaseTools/ChangeLog.txt | 308 +++++++++ Tools/BaseTools/Conf/FrameworkDatabase.template | 31 + Tools/BaseTools/Conf/ReadMe.txt | 9 + Tools/BaseTools/Conf/XMLSchema/FarManifest.xsd | 174 +++++ .../Conf/XMLSchema/FrameworkDataAttributes.xsd | 180 +++++ .../Conf/XMLSchema/FrameworkDataElements.xsd | 728 +++++++++++++++++++++ .../Conf/XMLSchema/FrameworkDataTypes.xsd | 581 ++++++++++++++++ .../BaseTools/Conf/XMLSchema/FrameworkHeaders.xsd | 93 +++ .../BaseTools/Conf/XMLSchema/NamingConvention.xsd | 186 ++++++ Tools/BaseTools/Conf/XMLSchema/SurfaceArea.xsd | 82 +++ Tools/BaseTools/Conf/build_rule.template | 300 +++++++++ Tools/BaseTools/Conf/target.template | 71 ++ Tools/BaseTools/Conf/tools_def.template | 668 +++++++++++++++++++ Tools/BaseTools/ReadMe.txt | 164 +++++ Tools/BaseTools/toolsetup.bat | 132 ++++ 44 files changed, 3707 insertions(+) create mode 100755 Tools/BaseTools/Bin/Win32/BootSectImage.exe create mode 100755 Tools/BaseTools/Bin/Win32/EfiLdrImage.exe create mode 100755 Tools/BaseTools/Bin/Win32/EfiRom.exe create mode 100644 Tools/BaseTools/Bin/Win32/Fpd2Dsc.exe create mode 100755 Tools/BaseTools/Bin/Win32/GenBootSector.exe create mode 100755 Tools/BaseTools/Bin/Win32/GenFds.exe create mode 100755 Tools/BaseTools/Bin/Win32/GenFfs.exe create mode 100755 Tools/BaseTools/Bin/Win32/GenFv.exe create mode 100755 Tools/BaseTools/Bin/Win32/GenFw.exe create mode 100755 Tools/BaseTools/Bin/Win32/GenPage.exe create mode 100755 Tools/BaseTools/Bin/Win32/GenSec.exe create mode 100755 Tools/BaseTools/Bin/Win32/GenVtf.exe create mode 100644 Tools/BaseTools/Bin/Win32/MigrationMsa2Inf.exe create mode 100755 Tools/BaseTools/Bin/Win32/PcdSyntaxUpdate.exe create mode 100755 Tools/BaseTools/Bin/Win32/Spd2Dec.exe create mode 100755 Tools/BaseTools/Bin/Win32/Split.exe create mode 100755 Tools/BaseTools/Bin/Win32/TargetTool.exe create mode 100755 Tools/BaseTools/Bin/Win32/TianoCompress.exe create mode 100755 Tools/BaseTools/Bin/Win32/Trim.exe create mode 100755 Tools/BaseTools/Bin/Win32/VfrCompile.exe create mode 100644 Tools/BaseTools/Bin/Win32/_hashlib.pyd create mode 100644 Tools/BaseTools/Bin/Win32/_socket.pyd create mode 100644 Tools/BaseTools/Bin/Win32/_ssl.pyd create mode 100755 Tools/BaseTools/Bin/Win32/antlr.exe create mode 100755 Tools/BaseTools/Bin/Win32/build.exe create mode 100755 Tools/BaseTools/Bin/Win32/dlg.exe create mode 100644 Tools/BaseTools/Bin/Win32/pyexpat.pyd create mode 100755 Tools/BaseTools/Bin/Win32/python25.dll create mode 100755 Tools/BaseTools/Bin/Win32/select.pyd create mode 100644 Tools/BaseTools/ChangeLog.txt create mode 100644 Tools/BaseTools/Conf/FrameworkDatabase.template create mode 100644 Tools/BaseTools/Conf/ReadMe.txt create mode 100644 Tools/BaseTools/Conf/XMLSchema/FarManifest.xsd create mode 100644 Tools/BaseTools/Conf/XMLSchema/FrameworkDataAttributes.xsd create mode 100644 Tools/BaseTools/Conf/XMLSchema/FrameworkDataElements.xsd create mode 100644 Tools/BaseTools/Conf/XMLSchema/FrameworkDataTypes.xsd create mode 100644 Tools/BaseTools/Conf/XMLSchema/FrameworkHeaders.xsd create mode 100644 Tools/BaseTools/Conf/XMLSchema/NamingConvention.xsd create mode 100644 Tools/BaseTools/Conf/XMLSchema/SurfaceArea.xsd create mode 100644 Tools/BaseTools/Conf/build_rule.template create mode 100644 Tools/BaseTools/Conf/target.template create mode 100644 Tools/BaseTools/Conf/tools_def.template create mode 100644 Tools/BaseTools/ReadMe.txt create mode 100755 Tools/BaseTools/toolsetup.bat (limited to 'Tools') diff --git a/Tools/BaseTools/Bin/Win32/BootSectImage.exe b/Tools/BaseTools/Bin/Win32/BootSectImage.exe new file mode 100755 index 0000000000..0ccd05253f Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/BootSectImage.exe differ diff --git a/Tools/BaseTools/Bin/Win32/EfiLdrImage.exe b/Tools/BaseTools/Bin/Win32/EfiLdrImage.exe new file mode 100755 index 0000000000..37ea7e066c Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/EfiLdrImage.exe differ diff --git a/Tools/BaseTools/Bin/Win32/EfiRom.exe b/Tools/BaseTools/Bin/Win32/EfiRom.exe new file mode 100755 index 0000000000..5d5162237e Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/EfiRom.exe differ diff --git a/Tools/BaseTools/Bin/Win32/Fpd2Dsc.exe b/Tools/BaseTools/Bin/Win32/Fpd2Dsc.exe new file mode 100644 index 0000000000..383b330ab6 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/Fpd2Dsc.exe differ diff --git a/Tools/BaseTools/Bin/Win32/GenBootSector.exe b/Tools/BaseTools/Bin/Win32/GenBootSector.exe new file mode 100755 index 0000000000..bbc2ae19c4 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/GenBootSector.exe differ diff --git a/Tools/BaseTools/Bin/Win32/GenFds.exe b/Tools/BaseTools/Bin/Win32/GenFds.exe new file mode 100755 index 0000000000..bb2ba192b9 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/GenFds.exe differ diff --git a/Tools/BaseTools/Bin/Win32/GenFfs.exe b/Tools/BaseTools/Bin/Win32/GenFfs.exe new file mode 100755 index 0000000000..96fc9b21a8 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/GenFfs.exe differ diff --git a/Tools/BaseTools/Bin/Win32/GenFv.exe b/Tools/BaseTools/Bin/Win32/GenFv.exe new file mode 100755 index 0000000000..875611355f Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/GenFv.exe differ diff --git a/Tools/BaseTools/Bin/Win32/GenFw.exe b/Tools/BaseTools/Bin/Win32/GenFw.exe new file mode 100755 index 0000000000..2ff8a00ee7 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/GenFw.exe differ diff --git a/Tools/BaseTools/Bin/Win32/GenPage.exe b/Tools/BaseTools/Bin/Win32/GenPage.exe new file mode 100755 index 0000000000..2fba9fba69 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/GenPage.exe differ diff --git a/Tools/BaseTools/Bin/Win32/GenSec.exe b/Tools/BaseTools/Bin/Win32/GenSec.exe new file mode 100755 index 0000000000..6b302d14d9 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/GenSec.exe differ diff --git a/Tools/BaseTools/Bin/Win32/GenVtf.exe b/Tools/BaseTools/Bin/Win32/GenVtf.exe new file mode 100755 index 0000000000..3857695b81 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/GenVtf.exe differ diff --git a/Tools/BaseTools/Bin/Win32/MigrationMsa2Inf.exe b/Tools/BaseTools/Bin/Win32/MigrationMsa2Inf.exe new file mode 100644 index 0000000000..aeff511e45 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/MigrationMsa2Inf.exe differ diff --git a/Tools/BaseTools/Bin/Win32/PcdSyntaxUpdate.exe b/Tools/BaseTools/Bin/Win32/PcdSyntaxUpdate.exe new file mode 100755 index 0000000000..30a7bc1e7a Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/PcdSyntaxUpdate.exe differ diff --git a/Tools/BaseTools/Bin/Win32/Spd2Dec.exe b/Tools/BaseTools/Bin/Win32/Spd2Dec.exe new file mode 100755 index 0000000000..822aab9e38 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/Spd2Dec.exe differ diff --git a/Tools/BaseTools/Bin/Win32/Split.exe b/Tools/BaseTools/Bin/Win32/Split.exe new file mode 100755 index 0000000000..ecaa2241b8 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/Split.exe differ diff --git a/Tools/BaseTools/Bin/Win32/TargetTool.exe b/Tools/BaseTools/Bin/Win32/TargetTool.exe new file mode 100755 index 0000000000..10428a723c Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/TargetTool.exe differ diff --git a/Tools/BaseTools/Bin/Win32/TianoCompress.exe b/Tools/BaseTools/Bin/Win32/TianoCompress.exe new file mode 100755 index 0000000000..468b304b32 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/TianoCompress.exe differ diff --git a/Tools/BaseTools/Bin/Win32/Trim.exe b/Tools/BaseTools/Bin/Win32/Trim.exe new file mode 100755 index 0000000000..a092e404e9 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/Trim.exe differ diff --git a/Tools/BaseTools/Bin/Win32/VfrCompile.exe b/Tools/BaseTools/Bin/Win32/VfrCompile.exe new file mode 100755 index 0000000000..ec1cede839 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/VfrCompile.exe differ diff --git a/Tools/BaseTools/Bin/Win32/_hashlib.pyd b/Tools/BaseTools/Bin/Win32/_hashlib.pyd new file mode 100644 index 0000000000..3d9506400b Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/_hashlib.pyd differ diff --git a/Tools/BaseTools/Bin/Win32/_socket.pyd b/Tools/BaseTools/Bin/Win32/_socket.pyd new file mode 100644 index 0000000000..fa477db419 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/_socket.pyd differ diff --git a/Tools/BaseTools/Bin/Win32/_ssl.pyd b/Tools/BaseTools/Bin/Win32/_ssl.pyd new file mode 100644 index 0000000000..91349c5315 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/_ssl.pyd differ diff --git a/Tools/BaseTools/Bin/Win32/antlr.exe b/Tools/BaseTools/Bin/Win32/antlr.exe new file mode 100755 index 0000000000..1d70ecb1e4 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/antlr.exe differ diff --git a/Tools/BaseTools/Bin/Win32/build.exe b/Tools/BaseTools/Bin/Win32/build.exe new file mode 100755 index 0000000000..5eb5b53c9c Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/build.exe differ diff --git a/Tools/BaseTools/Bin/Win32/dlg.exe b/Tools/BaseTools/Bin/Win32/dlg.exe new file mode 100755 index 0000000000..e992f38eaf Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/dlg.exe differ diff --git a/Tools/BaseTools/Bin/Win32/pyexpat.pyd b/Tools/BaseTools/Bin/Win32/pyexpat.pyd new file mode 100644 index 0000000000..499507f4a5 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/pyexpat.pyd differ diff --git a/Tools/BaseTools/Bin/Win32/python25.dll b/Tools/BaseTools/Bin/Win32/python25.dll new file mode 100755 index 0000000000..f223ccd251 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/python25.dll differ diff --git a/Tools/BaseTools/Bin/Win32/select.pyd b/Tools/BaseTools/Bin/Win32/select.pyd new file mode 100755 index 0000000000..70aae3a266 Binary files /dev/null and b/Tools/BaseTools/Bin/Win32/select.pyd differ diff --git a/Tools/BaseTools/ChangeLog.txt b/Tools/BaseTools/ChangeLog.txt new file mode 100644 index 0000000000..752d110ea4 --- /dev/null +++ b/Tools/BaseTools/ChangeLog.txt @@ -0,0 +1,308 @@ +########################################################################################## +!!!!!!!!!!!!!!!!! Notes for this ChangeLog.txt !!!!!!!!!!!!!!!!! + +This log file is used to record two kinds of important information: + a) "Non-Compatible Changes": all non-compatible changes should be recorded. These info + will help the package user to merge this package; and some non-compatible changes + can also be added into release notes as news features when we release this package. + Normally Non-Compatible Changes contains the following types: + 1) Package's external services were changed/updated + 2) Package's common .h file is renamed, deleted, or the file path is changed. + 3) The definition of package's common data structure is changed + ... + + b) "Important Compatible Changes": some important compatible changes can aslo be recorded + in this file, and we can add these updating into release notes when we release this + package. + +Non-Compatible and Compatible example format: +========================================================================================== +EDK_0010: Non-Compatible: owner + + Class_HFile: PPI A of MdePkg has been removed. + + Code Change : + 1) Removed the .h file: MdePkg\Include\Ppi\A.h + + Possible Impacts: + 1) All modules that used this PPI A should be updated. + +========================================================================================== +EDK_0000: Compatible: owner + + Class_BuildTool: with the EDK_0000 build.exe, the build performance is enhanced great. + + Code Change : + 1) BaseTools\Bin\Win32\build.exe + +!!!!!!!!!!!!!!!!!! End of Notes !!!!!!!!!!!!!!!!!! +########################################################################################## + +========================================================================================== +EDK_4096: Non-Compatible: jwang36 + + Class_BuildTool: + 1) Removed the calling of vsvars32.bat in edksetup.bat, unless + "--nt32" switch is used. + 2) Added MAKE command in tools_def.txt. This is used to locate where + the nmake.exe or make.exe is because it will not be in PATH any more. + 3) Removed the calling of vsvars32.bat in toolsetup.bat. + 4) Solved the hang issue of build.exe when error occurred or Ctrl+C is + pressed. + 5) Passed "-v/-d/-q" command line option to GenFds.exe in makefile if + it's used by build.exe. + + Code Change : + 1) BaseTools/Bin/Win32/build.exe + 2) BaseTools/Bin/Win32/GenFds.exe + 3) BaseTools/Conf/tools_def.template + 4) BaseTools/toolsetup.bat + 5) edksetup.bat + + Possible Impacts: + 1) Nt32Pkg build needs to run vsvars32.bat before edksetup.bat or run + edksetup.bat with "--nt32" option, like + + edksetup.bat --nt32 newbuild + + 2) $(WORKSPACE)/Conf/tools_def.txt must be deleted before running + edksetup.bat because of new tools_def.template. Otherwise the + build.exe cannot find the nmake.exe to call. + +========================================================================================== +EDK_3947: Compatible: jwang36 + + Class_BuildTool: + 1) Improved spawn mode (multi-thread) build performance (build -s) + 2) Changed the error/debug/warning message format + 3) Added "--log" command line option to support storing log in file + + Code Change : + 1) BaseTools/Bin/Win32/build.exe + + +========================================================================================== +EDK_3936: Compatible: klu2 + + Class_BuildTool: + 1) The first parameter of PEIM's entry point in autogen.c has been changed to + EFI_PEI_FILE_HANDLE + + Code Change : + 1) BaseTools/Bin/Win32/build.exe + +========================================================================================== +EDK_3926: Compatible: jlin16 + + Class_BuildTool: + 1) Added support of Capsule generation from FDF file. + + Code Change : + 1) BaseTools/Bin/Win32/build.exe + 2) BaseTools/Bin/Win32/GenFds.exe + + Possible Impacts: + 1) To generate capsule, insert [Capsule] section after [FV] sections and specifying + what FV will be put into capsule, For example: + [Capsule.Fob] + CAPSULE_GUID = 3B6686BD-0D76-4030-B70E-B5519E2FC5A0 + CAPSULE_FLAG = PersistAcrossReset + FV = BiosUpdate + +========================================================================================== +EDK_3911: Compatible: jlin16 + + Class_BuildTool: + 1) Added support of Apriori file generation from FDF file. + 2) Added support of INF that describes binary files to put binary into FV. + 3) Fixed single FV/FD generation error when specifying -i/-r option in GenFds. + + + Code Change : + 1) BaseTools/Bin/Win32/build.exe + 2) BaseTools/Bin/Win32/GenFds.exe + + Possible Impacts: + 1) To generate Apriori file in FV, insert APRIORI statement just before the INF or + FILE statement list of the FV, For example: + APRIORI PEI { + INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf + FILE PEIM = B7A5041A-78BA-49e3-B73B-54C757811FB6 { + SECTION PE32 = MyBinPkg\bin\ia32\PeimAfterPcd.efi + } + INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf + } + 2) To add binary file described by INF file into FV, only insert the INF statement + into the INF statements list of that FV, like this: + + INF RuleOverride=Test MdeModulePkg/Logo/Logo.inf + + Specifying how to process the binary file by defining corresponding Rule like this: + [Rule.Common.Base.Test] + FILE FREEFORM = $(NAMED_GUID) { + COMPRESS PI_STD { + GUIDED { + RAW BIN |.bmp + } + } + } + +========================================================================================== +EDK_3832: Non-Compatible: jwang36 + + Class_BuildTool: + 1) Added support of MACRO in tools_def.txt + 2) Merged PATH and NAME attributes in tools_def.txt + 3) Changed DPATH attribute to DLL in tools_def.txt + 4) Removed SPATH attribute in tools_def.txt + 5) Added support for library instance without library class + 6) Fixed the issue in Trim tool which zero file will be generated if the trimmed + file has not line directive + + Code Change : + 1) BaseTools/Bin/Win32/build.exe + 2) BaseTools/Bin/Win32/GenFds.exe + 3) BaseTools/Bin/Win32/Trim.exe + 4) BaseTools/Conf/tools_def.template + + Possible Impacts: + 1) All platforms and modules build + +========================================================================================== +EDK_3801: Compatible: jwang36 + + Class_BuildConfiguration: Added makefile as dependency for "Dynamic-Library-File" to + solve the incremental build issue occurred when there's library changes + + Code Change : + 1) BaseTools/Conf/build_rule.template + +========================================================================================== +EDK_3800: Compatible: lgao4 + + Class_BuildTool: Update EfiRom tool to fix checksum and PCI3.0 data structure + + Code Change : + 1) BaseTools/Bin/Win32/EfiRom.exe + +========================================================================================== +EDK_3795: Compatible: htao + + Class_BuildTool: GenVtf tool open/write file with "r+b"/"w+b" attribute, but this cause + the RO attribute of the file changed. Fix this issue by changing + "r+b"/"w+b" to "rb"/"wb". + + Code Change : + 1) BaseTools/Bin/Win32/GenVtf.exe + +========================================================================================== +EDK_3791: Compatible: jlin16 + + Class_BuildTool: + 1) use '#' to indicate flash generation progress. + 2) use -v to switch on detail output messages. + + Code Change : + 1) BaseTools/Bin/Win32/GenFds.exe + +========================================================================================== +EDK_3789: Non-Compatible: lgao4 + + Class_BuildTool: support new Rules format and PCD format defined in FDF file + + Code Change : + 1) BaseTools/Bin/Win32/build.exe + 2) BaseTools/Bin/Win32/GenFds.exe + + Possible Impacts: + 1) All platform's FDF file, if any, must be changed to new format. + a) PCD format is changed from old PcdName to new PcdTokenSpaceGuid.PcdName, + for example PcdWinNtFdBaseAddress in old FDF file will be replaced + by gEfiNt32PkgTokenSpaceGuid.PcdWinNtFdBaseAddres. + b) Rule format adds binary file type and file postfix name support, + and doesn't require the full file path. Examples for Peim and AcpiTable module: + Old Peim Rule: + [Rule.Common.PEIM] + FILE PEIM = $(NAMED_GUID) { + PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).Depex + PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi + UI Optional $(MODULE_NAME) + VERSION Optional BUILD_NUM=$(BUILD_NUMBER) $(INF_VERSION) + } + New Peim Rule: + [Rule.Common.PEIM] + FILE PEIM = $(NAMED_GUID) { + PEI_DEPEX PEI_DEPEX Optional |.Depex + PE32 PE32 |.efi + UI STRING="$(MODULE_NAME)" Optional + VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER) + } + + Old AcpiTable Rule: + [Rule.Common.DXE_DRIVER.ACPITABLE] + FILE FREEFORM = $(NAMED_GUID) { + RAW $(INF_OUTPUT)/Madt.acpi + RAW $(INF_OUTPUT)/Fadt.acpi + RAW $(INF_OUTPUT)/Facs.acpi + RAW $(INF_OUTPUT)/Spcr.acpi + RAW $(INF_OUTPUT)/Dsdt.aml + } + New AcpiTable Rule: + [Rule.Common.DXE_DRIVER.ACPITABLE] + FILE FREEFORM = $(NAMED_GUID) { + RAW ACPI |.acpi + RAW ASL |.aml + } + +========================================================================================== +EDK_3786: Compatible: vjeff + + Class_BuildConfiguration: + 1) Redirect ICC_IA32_*_PATH from C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin + to C:\Program Files\Intel\Compiler\C++\9.1\IA32\Bin. + 2) Add ICC X64 definition to enable ICC X64 build. + + Code Change : + 1) BaseTools/Conf/tools_def.template + +========================================================================================== +EDK_3785: Non-Compatible: klu2 + + Class_BuildTool: Upgrade the format of EFI_PEIM_ENTRY_POINT to + EFI_PEIM_ENTRY_POINT2 according to PI specification. + + + Code Change : + 1) BaseTools/Bin/Win32/build.exe + + Possible Impacts: + 1) All modules build + + +========================================================================================== +EDK_3780: Non-Compatible: qhuang8 + + Class_MigrationTool: Update the syntax of PCD section. + Update the syntax of binary INF file + The generated Extended INF file should follow Extended INF spec 0.44 + + Code Change : + 1) BaseTools/Bin/Win32/MigrationMsa2Inf.exe + + Possible Impacts: + 1) New module migrated from old R9 + + +========================================================================================== +EDK_3766: Non-Compatible: lgao4 + + Class_BuildConfiguration: Update Acpi Asl file Build rule to remove trim step. + + Code Change : + 1) Conf/build_rule.template + + Possible Impacts: + 1) Platform with ACPI module. Acpi module needs to set /EP preprocessor compiler option + for APP_FLAGS in module inf to override the default /E option defined in tools_def.txt file. + + diff --git a/Tools/BaseTools/Conf/FrameworkDatabase.template b/Tools/BaseTools/Conf/FrameworkDatabase.template new file mode 100644 index 0000000000..864584af8a --- /dev/null +++ b/Tools/BaseTools/Conf/FrameworkDatabase.template @@ -0,0 +1,31 @@ + + + + FrameworkDatabase + DD6913E0-3E4E-4B83-8838-57EE7FB71DD1 + 0.3 + The Framework Module Development Packaging System Database + + This Database tracks all packages and archives installed in this workspace. + + Copyright (c) 2007, Intel Corporation All rights reserved. + + This program and the accompanying materials 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. + + FRAMEWORK_PACKAGING_SPECIFICATION 0x00090000 + + + MdePkg/MdePkg.nspd + MdeModulePkg/MdeModulePkg.nspd + IntelFrameworkModulePkg/IntelFrameworkModulePkg.nspd + IntelFrameworkPkg/IntelFrameworkPkg.nspd + Nt32Pkg/Nt32Pkg.nspd + FatBinPkg/FatBinPkg.nspd + ShellBinPkg/ShellBinPkg.nspd + + diff --git a/Tools/BaseTools/Conf/ReadMe.txt b/Tools/BaseTools/Conf/ReadMe.txt new file mode 100644 index 0000000000..0e5e39d36b --- /dev/null +++ b/Tools/BaseTools/Conf/ReadMe.txt @@ -0,0 +1,9 @@ +This directory contains the template files for the next generation of the +EDK II Build infrastructure. These files will be copied into the WORKSPACE's +Conf directory if and only if the target files do not exist. + +These files may be updated frequently. + +The XMLSchema directory contains the EDK II Packaging XML definitions. The +schema may change in the future. It differs somewhat from the early versions +of the XML Schema. \ No newline at end of file diff --git a/Tools/BaseTools/Conf/XMLSchema/FarManifest.xsd b/Tools/BaseTools/Conf/XMLSchema/FarManifest.xsd new file mode 100644 index 0000000000..6e7573464a --- /dev/null +++ b/Tools/BaseTools/Conf/XMLSchema/FarManifest.xsd @@ -0,0 +1,174 @@ + + + + + + + The Framework Archive File Format is defined as a Java Archive file, with a special xml file called FrameworkArchiveManifest.xml at the top of the archive. The FrameworkArchiveManifest.xml must be an instance of this schema. + + + + + + This schema defines the Framework Archive Manifest. + + + + + + + + + The list of packages in this FAR. + + + + + + + Extra contents that are not part of any Package. These file paths are WORKSPACE relative. If a file exists in the workspace at this location, then the user should be asked whether to overwrite. When the user removes the far, these should be removed also, unless they have been modified (per md5sum). + + + + + + + + + + + + + + + + + + + + + This is the name of the .spd or file that describes the package. It must exist in the directory identified by DefaultPath. + + + + + + + + + This is the default installation location within the workspace. This also serves as the location within the far itself of the package root. The Contents of the pacakage will be found there. The user may choose some other location within the workspace to install the package, as long as it does not overlap a package that is already installed. + + + + + + + This is the list of files that belong to the package. They are specified by relative path from the root of the pacakge. + + + + + + + + + + + + The FarFilename is used to build up the Contents list. It has an md5sum attribute for keeping track of whether the file is changed after it is installed. The Md5sum can also be used to check the integrity of a far before it is installed into the workspace. + + + + + + + The purpose of this element is to allow Guids to be assigned to or used by other elements in the schema. + + + + + + + This tag allows us to specify a tree of files all having a common root. All the files specified are relative to that common root. + + + + + + + + + + + Definitions and rules for creating, installing, updating and removing fars within the workspace. + + + 1. A module m is said to depend upon a package p, iff there exists a tuple (PackageGuid, PackageVerion) in the set m->PackageDependencies for which p->Guid==PackageGuid, and if PackageVersion is not empty, then p->Version== PackageVersion. + + + 2. A far f is said to depend on a far g, iff there is a module in a package in f that depends on a package in g. + + + 3. A far f is said to depend on a package p, iff there is a module m contained in f that depends on p. + + + 4. A far f may be installed into the workspace w, iff for each module m in f, m's dependencies are met by the packages in w or f. + + + a. It is supported to "partially" install a far. A partial installation of a far means that 1 or more packages are installed into the workspace from the far. For each package p in f, p's dependencies must be satisfied by a package in the workspace. + + + 5. A far f may be removed from the workspace w, iff for each module m in w, and for each package p in f, m does not depend on p. + + + a. It is supported to "partially" remove a far. In this case, one or more of the packages in the far can be removed, provided that for each package p in the workspace w, there does not exist a module m such that m depends on p. + + + 6. When installing a far f into workspace w, for each package p in f, allow the user to install in p's default location, or choose a new location l (which must be unoccupied) within the workspace. Record this location l in the database. Each package p in f will be recorded in the database, associated with the GUID of f, as well as the actual install location l. (So we will know which far each package belongs to.) + + + 7. When installing a far f into workspace w, if there exists a package p in w, and p is in f, then the user must be prompted to choose a location that does not collide with the location of p in workspace w. We will end up with two instances of p in w at two distinct locations. Alternately, the user may elect to partially install the far, leaving out the redundant package. + + + 8. A far f may replace a far g in the workspace w, iff for each module m contained in w, if m depends on a package p, and p is only contained in g, then there must exist a package q in f, such that m depends on q. The net effect is that g is removed and f is installed, in one operation. The normal rules for installing f still apply--the dependencies of the modules of f must be satisfied. After the replacement, it must be the case that all the modules dependencies in the workspace are satisfied. Note that it is possible to backrev a package in this way. + + + (If we find that the replace is not permitted, then the user may install f and keep g. Next, he could _port_ every module m in w that depends on g, to f and eventually remove g.) + + + 9. A special case of the above rule is that a far f may be reinstalled into the workspace. (This would allow the user to get a fresh copy, or change the location in the workspace where one or more of the packages of f are installed.) + + + 10. When a far f is removed from the workspace w, for each package p in f, we will remove p from w. + + + 11. If a package p belongs to a far f, then it is legal to remove p from the workspace w iff, there does not exist a module m in w such that m depends on p. + + + 12. When a far f is removed from the workspace, the we will remove all the files in f from the workspace tree. If a file has been modified from the original as installed from the far (per md5sum) then the user should be asked if he is "sure" he wants to remove it. + + + 13. When a far is created, a GUID is generated and assigned to the far. If a far is created from the same components at a later time, it would have a different GUID. + + + 14. If a package p is marked with p->RePackage==false, then p may not be added to a far. + + + 15. A far f is identical to a far g, iff f->Guid == g->Guid. + + + 17. A far f may be installed into the workspace w, iff there is no far g in w such that f->Guid==g->Guid. In that case, it is called "updating" the far in the workspace. The user may select some subset of packages to reinstall or update, to ensure that the files in the workspace are correct. + + + diff --git a/Tools/BaseTools/Conf/XMLSchema/FrameworkDataAttributes.xsd b/Tools/BaseTools/Conf/XMLSchema/FrameworkDataAttributes.xsd new file mode 100644 index 0000000000..d40561e4f7 --- /dev/null +++ b/Tools/BaseTools/Conf/XMLSchema/FrameworkDataAttributes.xsd @@ -0,0 +1,180 @@ + + + + + This schema defines EFI and Framework Attribute. Only attributeGroups are specified in this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tools/BaseTools/Conf/XMLSchema/FrameworkDataElements.xsd b/Tools/BaseTools/Conf/XMLSchema/FrameworkDataElements.xsd new file mode 100644 index 0000000000..12bba93d40 --- /dev/null +++ b/Tools/BaseTools/Conf/XMLSchema/FrameworkDataElements.xsd @@ -0,0 +1,728 @@ + + + + + This schema defines EFI and Framework Data Elements + + + + + + + Abstract is valid for all Description Files + This section is required. This is a single sentence to describe the module and will be used in sample files as the abstract data in the header comment section. + + + + + BootModes is valid for all Description Files + This is a list of BootModes Supported by the Module + + + + + + + + + + + + + + + + + + This is a list of DataHubRecord elements. + + + + + + + + + + + + + + + + + + The default setting of a PCD entry. + + + + + + + + + + This section is used to describe the DXE or PEI Dependency code + + + + + + + + + + + This section is required for new modules and libraries and must contain more information than the Abstract. + + + + + Multiple Filenames may be specified, and they may also be scoped to a specific Architecture. + + + + + + + + + + + + + + + + + + + This is a list of MSA Events + + + + + + + + + + + + + + + + + + + + + Module has an event that is waiting to be signaled. Event is named by GUID. + + + + + + + + + + + + + + + + + + + + + This is a child of MSA files. + + + + + + + + + + + + Driver Module + + + + + + + Library Module + + + + + + + Allow multiple entries for DriverBinding, ComponentName, DriverConfig and DriverDiag elements. For ComponentName, DriverConfig and/or DriverDiag - you must have a 1:1 mapping to DriverBinding if the element is defined. + Permit User Defined Extern Tags + + + + + + + + + Module Call Backs + + + + + + + + + + + + + + Describe the valid content of a filename This should extend PathAndFilename - Variable names not allowed here! + + + + + + + + + + + + This is a list of Filenames + + + + + + + + + + This is a child of PackageSurfaceArea (SPD) + + + + + + + + + + + + + + + + + + + + + + Describe the valid content of a GUID element in and MSA file. + + + + + + + + + + + + + + + Describe the list of a HiiPackage elements + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Used in MSA files. This defines what class of library is being supported = produced (library module) or consumed by a module. + + + + + + + + + + + + + + + + + + + + + + + + + + + + This section defines what Classes of Library that this library supports. A Library may belong to multiple different library classes. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Describe the valid EFI Phase that the Module is designed to execute under. + + + + + + MsaFiles is a child of Surface Area Package Description (SPD) files + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This tag is used in the Module Surface Area Description File (MSA) to track package dependencies for a module. + Attributes to PackageName include Required: Usage PackageGuid PackageVesion, Optional: FeatureFlag + + + + + + + + + + + + + + PackageHeaders is a child of PackageSurfaceArea (SPD) + + + + + + + + + + + + + + + + + + + This tag is used in the Framework Package Database File to track all packages (SPD files) installed in a workspace. (Database) + + + + + + + + + + + + + + + + + + Child of Module Surface Area Description (MSA) + + + + + + + + + + + + + + + + + + + + + + PcdDeclaratins is a child of Package Surface Area Description (SPD) + + + + + + + + + + + + + + + + + + + + + + + + This tag is used in the Framework Package Database File to track all DISTRIBUTION packages (FAR files) installed in a workspace. (Database) + + + + + + + + + + PpiDeclarations is a child of PackageSurfaceArea (SPD) + + + + + + + + + + + + + + + + + + + Provide for one or more Ppi or PpiNotify sections. + + + + + + + + + + + + + + + + + + + + + + + + + + + ProtocolDeclarations is a child of PackageSurfaceArea (SPD) + + + + + + + + + + + + + + + + + + + If either Protocol or ProtocolNotify sections are needed, one or more of them should be specified within this section + + + + + + + + + + + + + + + + + + + + + + + + + + + Multiple Filenames may be specified, and they may also be scoped to a specific Architecture. + + + + + + + + + + This is list of System Table elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + An MSA FILE list of EFI Variables described by string pair. + + + + + + This is an EFI Variable Entry + + + + + + + + + + + + + + + diff --git a/Tools/BaseTools/Conf/XMLSchema/FrameworkDataTypes.xsd b/Tools/BaseTools/Conf/XMLSchema/FrameworkDataTypes.xsd new file mode 100644 index 0000000000..18db60888a --- /dev/null +++ b/Tools/BaseTools/Conf/XMLSchema/FrameworkDataTypes.xsd @@ -0,0 +1,581 @@ + + + + + This schema defines EFI and Framework Data Types. Only simpleType are specified in this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tools/BaseTools/Conf/XMLSchema/FrameworkHeaders.xsd b/Tools/BaseTools/Conf/XMLSchema/FrameworkHeaders.xsd new file mode 100644 index 0000000000..6927c7bcca --- /dev/null +++ b/Tools/BaseTools/Conf/XMLSchema/FrameworkHeaders.xsd @@ -0,0 +1,93 @@ + + + + + + + This is the header for the Framework Package Database (DB) file. + The Guid MUST change if backward compatibility breaks caused by a new release of XML Schema. + The Version will change if a minor change to XML Schema has been made, but backward compatiblity is maintained. + + + + + + + + + + + + + + + + + This is the header for the Framework Archive Manifest file. + + + + + + + + + + + + + + + + + This header is for the Module Surface Area Description (MSA) files + The Guid MUST change if the Module changes break backward compatibility. + The Version MUST change if the Module changes, however, backward compatiblity is maintained. + + + + + + + + + + + + + + + + + + This head is for the Surface Area Package Description file (SPD) + The Guid MUST change when the contents of the file undergo MAJOR FUNCTIONALITY changes. + The Version MUST change when the contents of the file undergo MINOR FUNCTIONALITY changes. + + + + + + + + + + + + + + + diff --git a/Tools/BaseTools/Conf/XMLSchema/NamingConvention.xsd b/Tools/BaseTools/Conf/XMLSchema/NamingConvention.xsd new file mode 100644 index 0000000000..809f1a8485 --- /dev/null +++ b/Tools/BaseTools/Conf/XMLSchema/NamingConvention.xsd @@ -0,0 +1,186 @@ + + + + + This schema defines various data types and naming conventions including: base name, filename and directory naming conventions. These are all simple data types. + + + + C_Names must start with either an underscore (_) character followed by one or more alpha characters, followed by any combination of underscore or alphanumeric characters. + + + + + + + + This defines what a Filename is: Alphanumeric characters and optional underscore (_) or dash (-) characters, followed by a optional dot and more alphanumeric characters. + + + + + + + + The GUID data was a union of GuidType1 and GuidType2; standardizing on GuidType2. + + + + + + This defines the minimum specification for a GUID Array which is 8 Hex Digits - 4 Hex Digits - 4 Hex Digits - 8 Hex Bytes, the last 16 Hex Digits can be enclosed in sqiggle {} brackets. + + + + + + + + A GUID must contain five different Hexadecimal character sets that are separated by a dash (-) character. + + + + + + + + Define a Hex 64 Bit Value to be 0x[a-f0-9]{16} + + + + + + + + Define a Hex Address, 0x[a-fA-F0-9]{1,16} + + + + + + + + Define a Hex Byte Value to be 0x[a-f0-9]{2} + + + + + + + + Define a Hex Value to be 0x[a-f0-9]+ + + + + + + + + Define a Hex Diget to be 0x[a-f0-9] + + + + + + + + Define a Hex Double Word Value to be 0x[a-f0-9]{8} + + + + + + + + Define a Hex Word Value to be 0x[a-f0-9]{4} + + + + + + + + + + + + + + + + + + + This describes the normal text of a paragraph that can be used in a license or description tag. + + + + + + Naming convention for a path and file name + + + + + + Limit Polarity vaild values to 0 and 1 + + + + + + + + This data type requires two or more words + + + + + + + + This data type is used for ToolCommand, ToolChainFamily and TagName. + + + + + + + + Definition of a UpperCase Name, which can be any combination of upper case characters followed by zero or more underscore and/or uppercase alphanumeric characters + + + + + + + + Definition of a Version Number, which is one or more strings of decimal digits separated by dots. + + The algorithm to compare two versions A and B is as follows. if A==B, then A is the same version as B. Otherwise, say A is a1.a2.a3...an and B is b1.b2.b3...bn. For the first pair (ai, bi), for i less than n and i less than m, where ai is not equal to bi, if ai is less than bi, then A is less than B. If ai is greater than bi, then A is greater than B. + + + + + + + + + Define Zero as a vaild value + + + + + + diff --git a/Tools/BaseTools/Conf/XMLSchema/SurfaceArea.xsd b/Tools/BaseTools/Conf/XMLSchema/SurfaceArea.xsd new file mode 100644 index 0000000000..f95de26b1a --- /dev/null +++ b/Tools/BaseTools/Conf/XMLSchema/SurfaceArea.xsd @@ -0,0 +1,82 @@ + + + + + + + This describes the valid content of a FrameworkDatabase (DB) File. + + + + + + + + + + + + + This describes the valid content for a Module Surface Area Description (MSA) file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This describes the valid content for a Package Surface Area Description (SPD) file. + + + + + + + + + + + + + + + + + + + diff --git a/Tools/BaseTools/Conf/build_rule.template b/Tools/BaseTools/Conf/build_rule.template new file mode 100644 index 0000000000..06cfb6d1ba --- /dev/null +++ b/Tools/BaseTools/Conf/build_rule.template @@ -0,0 +1,300 @@ +# +# Copyright (c) 2007, Intel Corporation +# +# All rights reserved. This program and the accompanying materials +# 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. +# +# Filename: build_rule.template +# + +## Syntax +# +# "*" is used to indicate that the source files will be processed at the same time. +# "?" is used to indicate that the source files will be processed one by one. +# +# "[" Build.[.][, Build.[.]] "]" +# ]> +# [File-Type =] (?|*). [(\n|,|;) (?|*).] +# +# ]> +# +# +# ]> +# +# [] +# + +## Placeholders for string substitution +# +# ${src} Source file(s) to be built (full path) +# ${s_path} Source file directory (absolute path) +# ${s_dir} Source file relative directory within a module +# (Note: ${s_dir} is always equals to "." if source file is given in absolute path.) +# ${s_name} Source file name without path +# ${s_base} Source file name without extension and path +# ${s_ext} Source file extension +# +# ${dst} Destination file(s) built from ${src} (full path) +# ${d_path} Destination file directory (absolute path) +# ${d_name} Destination file name without path +# ${d_base} Destination file name without extension and path +# ${d_ext} Destination file extension +# +# (+) Directory separator +# + +## Macro +# $(WORKSPACE) Workspace directory +# $(OUTPUT_DIR) Directory for intermediate files for building a module +# $(DEBUG_DIR) Directory for files used to debug a module +# $(BUILD_DIR) All files for building a platform will be put in this directory +# $(BIN_DIR) Common directory for executable files +# $(FV_DIR) Directory to store flash image files +# $(INC) Search path of current module +# $(LIBS) Static library files of current module +# $(_FLAGS) Tools flags of current module +# $(MODULE_NAME) Current module name +# $(MODULE_TYPE) Current module type +# $(ARCH) Architecture of current module +# $(TOOLCHAIN) Toolchain used to build current module +# $(TARGET) Target of current module (DEBUG/RELEASE) +# $() Path of tool +# $(EDK_TOOLS_PATH) Path of build tools +# $() File list of each file type +# (Note: The macro name is derived from file type name. For example, +# C-Code-File will have C_CODE_FILE_LIST macro.) +# +# $(CP) copy command +# $(MV) move command +# $(RM) delete command +# $(MD) create dir command +# $(RD) remove dir command +# + +## Reserved File-Type +# +# Dont't change following names of file types and their associated files, +# which are also used in tools' code +# +# C-Code-File +# C-Header-File +# Dynamic-Library-File +# Static-Library-File +# Visual-Form-Representation-File +# Unicode-Text-File +# + +[Build.C-Code-File] + + ?.c + ?.C + ?.cc + ?.CC + ?.cpp + ?.Cpp + ?.CPP + + + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + + + "$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src} + + + "$(CC)" -o ${dst} $(CC_FLAGS) $(INC) ${src} + +[Build.C-Header-File] + + *.h, *.H + + + $(OUTPUT_DIR)(+)$(MODULE_NAME).gch + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + + + + +[Build.Assembly-Code-File] + + Assembly-Code-File = ?.asm, ?.Asm, ?.ASM + + + ?.S + + + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + + + "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i + Trim --source-code --convert-hex -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i + "$(ASM)" /Fo${dst} $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii + + + "$(ASM)" -o ${dst} $(ASM_FLAGS) $(INC) ${src} + +[Build.Iasm-Code-File] + + ?.s + + + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + + + "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i + Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i + "$(ASM)" -o ${dst} $(ASM_FLAGS) ${d_path}(+)${s_base}.iii + +[Build.Visual-Form-Representation-File] + + ?.vfr + ?.Vfr + ?.VFR + + + $(DEBUG_DIR)(+)${s_dir}(+)${s_base}.c + + + "$(PP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i + Trim --vfr-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i + -mkdir ${d_path} > NUL 2>&1 + VfrCompile -od ${d_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii + +[Build.Object-File] + + *.obj + *.o + + + $(OUTPUT_DIR)(+)$(MODULE_NAME).lib + + + "$(SLINK)" $(SLINK_FLAGS) /OUT:${dst} ${src} + + + "$(SLINK)" -cr ${dst} $(SLINK_FLAGS) ${src} + +#[Build.Object-File, Build.Static-Library-File] +#BUILD_VERSION = 0x00010000 +# +# +# Object-File = *.obj +# Static-Library-File = *.lib, *.a +# +# +# $(OUTPUT_DIR)(+)$(MODULE_NAME).lib +# +# +# "$(SLINK)" /OUT:${dst} $(SLINK_FLAGS) ${src} +# +# +# "$(SLINK)" -cr ${dst} $(SLINK_FLAGS) ${src1} -( ${src2} -) +# +[Build.Static-Library-File] + + ?.lib + $(LIBS) + $(MODULE_BUILD_DIR)\Makefile + + + $(DEBUG_DIR)(+)$(MODULE_NAME).dll + + + "$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK_SPATH) $(LIBS) ${src} + + + "$(DLINK)" -o ${dst} $(DLINK_FLAGS) -( $(DLINK_SPATH) $(LIBS) ${src} -) + +[Build.Dynamic-Library-File] + + ?.dll + + + $(DEBUG_DIR)(+)$(MODULE_NAME).efi + + + GenFw -e $(MODULE_TYPE) -o ${dst} ${src} + $(CP) ${dst} $(OUTPUT_DIR) + $(CP) ${dst} $(BIN_DIR) + -$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR) + +[Build.Dependency-Expression-File] + + ?.dxs, ?.Dxs, ?.DXS + + + $(OUTPUT_DIR)(+)$(MODULE_NAME).depex + + +# GenDepex -o ${dst} ${src} + +[Build.Acpi-Source-Language-File] + + ?.asl, ?.Asl, ?.ASL + + + $(OUTPUT_DIR)(+)${s_base}.aml + + + "$(PP)" $(APP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i + "$(ASL)" -p ${dst} ${d_path}(+)${s_base}.i + +[Build.Acpi-Table-Code-File] + + ?.aslc + + + $(OUTPUT_DIR)(+)${s_base}.acpi + + + "$(CC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(INC) ${src} + "$(DLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(SLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + GenFw -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll + +[Build.Masm16-Code-File] + + ?.asm16, ?.Asm16, ?.ASM16 + + + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.com + + + pushd . + cd $(OUTPUT_DIR)(+)${s_dir} + "$(ASM)" /nologo /omf ${src} /Bl"$(ASMLINK)" $(ASMLINK_FLAGS) + -$(CP) ${dst} $(OUTPUT_DIR) & popd + +[Build.Microcode-File] + + ?.txt, ?.TXT, ?.Txt + + + $(OUTPUT_DIR)(+)${s_base}.mcb + + + GenFw -o ${dst} -m ${src} + +[Build.Microcode-Binary-File] + + *.mcb + + + $(OUTPUT_DIR)(+)$(MODULE_NAME).bin + + + GenFw -o ${dst} -j ${src} + +[Build.Unicode-Text-File] + + *.uni, *.Uni, *.UNI + + + $(DEBUG_DIR)(+)AutoGen.c + $(DEBUG_DIR)(+)AutoGen.h + + + diff --git a/Tools/BaseTools/Conf/target.template b/Tools/BaseTools/Conf/target.template new file mode 100644 index 0000000000..e8e3243873 --- /dev/null +++ b/Tools/BaseTools/Conf/target.template @@ -0,0 +1,71 @@ +# +# Copyright (c) 2006-2007, Intel Corporation +# +# All rights reserved. This program and the accompanying materials +# 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. +# +# Filename: target.template +# +# ALL Paths are Relative to WORKSPACE + +# Separate multiple LIST entries with a SINGLE SPACE character, do not use comma characters. +# Un-set an option by either commenting out the line, or not setting a value. + +# +# PROPERTY Type Use Description +# ---------------- -------- -------- ----------------------------------------------------------- +# ACTIVE_PLATFORM Filename Recommended Specify the WORKSPACE relative Path and Filename +# of the platform FPD file that will be used for the build +# This line is required if and only if the current working +# directory does not contain one or more FPD files. +ACTIVE_PLATFORM = Nt32Pkg/Nt32Pkg.dsc + +# TARGET List Optional Zero or more of the following: DEBUG, RELEASE, +# UserDefined; separated by a space character. +# If the line is missing or no value is specified, all +# valid targets specified in the FPD file will attempt +# to be built. The following line will build all platform +# targets. +TARGET = DEBUG + +# TARGET_ARCH List Optional What kind of architecture is the binary being target for. +# One, or more, of the following, IA32, IPF, X64, EBC or ARM. +# Multiple values can be specified on a single line, using +# space charaters to separate the values. These are used +# during the parsing of an FPD file, restricting the build +# output target(s.) +# The Build Target ARCH is determined by a logical AND of: +# FPD BuildOptions: tag +# If not specified, then all valid architectures specified +# in the FPD file, for which tools are available, will be +# built. +TARGET_ARCH = IA32 + +# TOOL_DEFINITION_FILE Filename Optional Specify the name of the filename to use for specifying +# the tools to use for the build. If not specified, +# tools_def.txt will be used for the build. This file +# MUST be located in the WORKSPACE/Conf directory. +TOOL_CHAIN_CONF = Conf/tools_def.txt + +# TAGNAME List Optional Specify the name(s) of the tools_def.txt TagName to use. +# If not specified, all applicable TagName tools will be +# used for the build. The list uses space character separation. +TOOL_CHAIN_TAG = MYTOOLS + +# MULTIPLE_THREAD FLAG Optional Flag to enable multi-thread build. If not specified, default +# is "Disable". If your computer is multi-core or multiple CPUs, +# enabling this feature will bring much benefit. +# This feature is only available for "spawn" build mode, and +# only for PLATFORM build. The clean, cleanall or +# stand-alone module build is still using the normal way. +MULTIPLE_THREAD = Disable + +# MAX_CONCURRENT_THREAD_NUMBER NUMBER Optional The number of concurrent threads. Default is 2. Recommend to +# set this value to one more than the number of your compurter +# cores or CPUs. +MAX_CONCURRENT_THREAD_NUMBER = 2 diff --git a/Tools/BaseTools/Conf/tools_def.template b/Tools/BaseTools/Conf/tools_def.template new file mode 100644 index 0000000000..f2ffd50951 --- /dev/null +++ b/Tools/BaseTools/Conf/tools_def.template @@ -0,0 +1,668 @@ +# +# Copyright (c) 2006-2007, Intel Corporation +# +# All rights reserved. This program and the accompanying materials +# 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. +# + +IDENTIFIER = Default TOOL_CHAIN_CONF + +# common path macros +DEFINE VSNET_BIN = C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin +DEFINE VSNET_DLL = C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE + +DEFINE VSNET2003_BIN = C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin +DEFINE VSNET2003_DLL = C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE + +DEFINE VS2005EXP_BIN = C:\Program Files\Microsoft Visual Studio 8\Vc\bin +DEFINE VS2005EXP_DLL = C:\Program Files\Microsoft Visual Studio 8\Common7\IDE + +DEFINE VS2005STD_BIN = C:\Program Files\Microsoft Visual Studio 8\Vc\bin +DEFINE VS2005STD_DLL = C:\Program Files\Microsoft Visual Studio 8\Common7\IDE + +DEFINE VS2005PRO_BIN = C:\Program Files\Microsoft Visual Studio 8\Vc\bin +DEFINE VS2005PRO_BINX64 = C:\Program Files\Microsoft Visual Studio 8\Vc\bin\x86_amd64 +DEFINE VS2005PRO_DLL = C:\Program Files\Microsoft Visual Studio 8\Common7\IDE + +DEFINE VS2005TS_BIN = C:\Program Files\Microsoft Visual Studio 8\Vc\bin +DEFINE VS2005TS_DLL = C:\Program Files\Microsoft Visual Studio 8\Common7\IDE + +DEFINE WINDDK_BIN16 = C:\WINDDK\3790.1830\bin\bin16 +DEFINE WINDDK_BIN32 = C:\WINDDK\3790.1830\bin\x86 +DEFINE WINDDK_BINX64 = C:\WINDDK\3790.1830\bin\win64\x86\amd64 +DEFINE WINDDK_BIN64 = C:\WINDDK\3790.1830\bin\win64\x86 + +DEFINE ICC_BIN32 = C:\Program Files\Intel\Compiler\C++\9.1\IA32\Bin +DEFINE ICC_BINX64 = C:\Program Files\Intel\Compiler\C++\9.1\EM64T\Bin +DEFINE ICC_BIN64 = C:\Program Files\Intel\Compiler\C++\9.1\Itanium\Bin + +DEFINE EBC_BIN = C:\Program Files\Intel\EBC\Bin + +DEFINE ELFGCC_BIN = /usr/bin + +DEFINE PEGCC_BIN32 = /opt/tiano/i386-tiano-pe/i386-tiano-pe/bin +DEFINE PEGCC_BINX64 = /opt/tiano/x86_64-pc-mingw64/x86_64-pc-mingw64/bin + +DEFINE CYGWIN_BIN = c:/cygwin/bin +DEFINE CYGWIN_BIN32 = c:/cygwin/opt/tiano/i386-tiano-pe/i386-tiano-pe/bin +DEFINE CYGWIN_BINX64 = c:/cygwin/opt/tiano/x86_64-pc-mingw64/x86_64-pc-mingw64/bin + +DEFINE ASL_BIN = C:\ASL + +#################################################################################### +# +# format: TARGET_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE = +# priorty: +# TARGET_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE (Highest) +# ******_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE +# TARGET_*********_ARCH_COMMANDTYPE_ATTRIBUTE +# ******_*********_ARCH_COMMANDTYPE_ATTRIBUTE +# TARGET_TOOLCHAIN_****_COMMANDTYPE_ATTRIBUTE +# ******_TOOLCHAIN_****_COMMANDTYPE_ATTRIBUTE +# TARGET_*********_****_COMMANDTYPE_ATTRIBUTE +# ******_*********_****_COMMANDTYPE_ATTRIBUTE +# TARGET_TOOLCHAIN_ARCH_***********_ATTRIBUTE +# ******_TOOLCHAIN_ARCH_***********_ATTRIBUTE +# TARGET_*********_ARCH_***********_ATTRIBUTE +# ******_*********_ARCH_***********_ATTRIBUTE +# TARGET_TOOLCHAIN_****_***********_ATTRIBUTE +# ******_TOOLCHAIN_****_***********_ATTRIBUTE +# TARGET_*********_****_***********_ATTRIBUTE +# ******_*********_****_***********_ATTRIBUTE (Lowest) +# +#################################################################################### +#################################################################################### +# +# Supported Tool Chains +# ===================== +# VS2003 - Microsoft Visual Studio .NET 2003 +# VS2005EXP* - Microsoft Visual Studio 2005 Express Edition +# VS2005STD* - Microsoft Visual Studio 2005 Standard Edition +# VS2005PRO - Microsoft Visual Studio 2005 Professional Edition +# VS2005TEAMSUITE* - Microsoft Visual Studio 2005 Team Suite Edition +# WINDDK3790x1830 - Microsoft Windows DDK 3790.1830 +# UINIXGCC - UNIX GCC +# ELFGCC - Linux ELF GCC +# CYGWINGCC - CygWin GCC +# ICC - Intel C Compiler V9.1 +# MYTOOLS - Settings compatible with previous versions of tools_def.template +# +# * Commented out - All versions of VS2005 use the same standard install directory +# +#################################################################################### +#################################################################################### +# +# Supported Tool Chain Family +# =========================== +# MSFT - Microsoft +# GCC - GNU GCC +# INTEL - INTEL + +#################################################################################### +# +# Microsoft Visual Studio .NET 2003 (IA-32 only, with Link Time Code Generation) +# +#################################################################################### +# VS2003 - Microsoft Visual Studio .NET 2003 +*_VS2003_*_*_FAMILY = MSFT + +################## +# IA32 definitions +################## +*_VS2003_IA32_*_DLL = DEF(VSNET2003_DLL) + +*_VS2003_IA32_MAKE_PATH = DEF(VSNET2003_BIN)\nmake.exe +*_VS2003_IA32_CC_PATH = DEF(VSNET2003_BIN)\cl.exe +*_VS2003_IA32_VFRPP_PATH = DEF(VSNET2003_BIN)\cl.exe +*_VS2003_IA32_SLINK_PATH = DEF(VSNET2003_BIN)\lib.exe +*_VS2003_IA32_DLINK_PATH = DEF(VSNET2003_BIN)\link.exe +*_VS2003_IA32_ASMLINK_PATH = DEF(VSNET2003_BIN)\link.exe +*_VS2003_IA32_APP_PATH = DEF(VSNET2003_BIN)\cl.exe +*_VS2003_IA32_PP_PATH = DEF(VSNET2003_BIN)\cl.exe +*_VS2003_IA32_ASM_PATH = DEF(VSNET2003_BIN)\ml.exe +*_VS2003_IA32_PCH_PATH = DEF(VSNET2003_BIN)\cl.exe + + *_VS2003_IA32_MAKE_FLAGS = /nologo + *_VS2003_IA32_APP_FLAGS = /nologo /E /TC + *_VS2003_IA32_PP_FLAGS = /nologo /E /TC /FIAutoGen.h + *_VS2003_IA32_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FIAutoGen.h + DEBUG_VS2003_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm +RELEASE_VS2003_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 + DEBUG_VS2003_IA32_PCH_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC /Zi /Gm +RELEASE_VS2003_IA32_PCH_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC + DEBUG_VS2003_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi +RELEASE_VS2003_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 + *_VS2003_IA32_SLINK_FLAGS = /nologo /LTCG + DEBUG_VS2003_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG +RELEASE_VS2003_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text + +#################################################################################### +# +# Microsoft Visual Studio 2005 +# +#################################################################################### +# VS2005PRO - Microsoft Visual Studio 2005 Professional Edition +*_VS2005PRO_*_*_FAMILY = MSFT + +*_VS2005PRO_*_TIANO_PATH = TianoCompress.exe +*_VS2005PRO_*_TIANO_GUID = A31280AD-481E-41B6-95E8-127F4C984779 + +*_VS2005PRO_*_ASL_PATH = DEF(ASL_BIN)\iasl.exe + + +*_VS2005PRO_*_SLINK_FLAGS = /NOLOGO /LTCG +*_VS2005PRO_*_APP_FLAGS = /nologo /E /TC +*_VS2005PRO_*_PP_FLAGS = /nologo /E /TC /FIAutoGen.h +*_VS2005PRO_*_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FIAutoGen.h +################## +# IA32 definitions +################## +*_VS2005PRO_IA32_*_DLL = DEF(VS2005PRO_DLL) + +*_VS2005PRO_IA32_MAKE_PATH = DEF(VS2005PRO_BIN)\nmake.exe +*_VS2005PRO_IA32_CC_PATH = DEF(VS2005PRO_BIN)\cl.exe +*_VS2005PRO_IA32_VFRPP_PATH = DEF(VS2005PRO_BIN)\cl.exe +*_VS2005PRO_IA32_SLINK_PATH = DEF(VS2005PRO_BIN)\lib.exe +*_VS2005PRO_IA32_DLINK_PATH = DEF(VS2005PRO_BIN)\link.exe +*_VS2005PRO_IA32_ASMLINK_PATH = DEF(VS2005PRO_BIN)\link.exe +*_VS2005PRO_IA32_APP_PATH = DEF(VS2005PRO_BIN)\cl.exe +*_VS2005PRO_IA32_PP_PATH = DEF(VS2005PRO_BIN)\cl.exe +*_VS2005PRO_IA32_ASM_PATH = DEF(VS2005PRO_BIN)\ml.exe + + *_VS2005PRO_IA32_MAKE_FLAGS = /nologo + DEBUG_VS2005PRO_IA32_CC_FLAGS = /GS- /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm +RELEASE_VS2005PRO_IA32_CC_FLAGS = /GS- /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 + DEBUG_VS2005PRO_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi +RELEASE_VS2005PRO_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 + DEBUG_VS2005PRO_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG +RELEASE_VS2005PRO_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text +*_VS2005PRO_IA32_ASMLINK_FLAGS = /link /nologo /tiny + +################## +# X64 definitions +################## +*_VS2005PRO_X64_*_DLL = DEF(VS2005PRO_DLL) + +*_VS2005PRO_X64_CC_PATH = DEF(VS2005PRO_BINX64)\cl.exe +*_VS2005PRO_X64_PP_PATH = DEF(VS2005PRO_BINX64)\cl.exe +*_VS2005PRO_X64_APP_PATH = DEF(VS2005PRO_BINX64)\cl.exe +*_VS2005PRO_X64_VFRPP_PATH = DEF(VS2005PRO_BINX64)\cl.exe +*_VS2005PRO_X64_ASM_PATH = DEF(VS2005PRO_BINX64)\ml64.exe +*_VS2005PRO_X64_SLINK_PATH = DEF(VS2005PRO_BINX64)\lib.exe +*_VS2005PRO_X64_DLINK_PATH = DEF(VS2005PRO_BINX64)\link.exe +*_VS2005PRO_X64_ASMLINK_PATH = DEF(VS2005PRO_BINX64)\link.exe + + DEBUG_VS2005PRO_X64_CC_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FIAutoGen.h /EHs-c- /GF /Zi /Gm +RELEASE_VS2005PRO_X64_CC_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FIAutoGen.h /EHs-c- /GF + DEBUG_VS2005PRO_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd /Zi +RELEASE_VS2005PRO_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd + DEBUG_VS2005PRO_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /Machine:AMD64 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG +RELEASE_VS2005PRO_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /Machine:AMD64 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text + +#################################################################################### +# +# Microsoft Device Driver Kit 3790.1830 (IA-32, X64, Itanium, with Link Time Code Generation) +# +#################################################################################### +# WINDDK3790x1830 - Microsoft Windows DDK 3790.1830 +*_WINDDK3790x1830_*_*_FAMILY = MSFT + +*_WINDDK3790x1830_*_MAKE_PATH = DEF(WINDDK_BIN32)\nmake.exe +*_WINDDK3790x1830_*_MAKE_FLAGS = /nologo + +*_WINDDK3790x1830_*_PP_FLAGS = /nologo /E /TC /FIAutoGen.h +*_WINDDK3790x1830_*_APP_FLAGS = /nologo /E /TC +*_WINDDK3790x1830_*_SLINK_FLAGS = /nologo /LTCG +*_WINDDK3790x1830_*_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FIAutoGen.h + +################## +# ASL definitions +################## +*_WINDDK3790x1830_*_ASL_PATH = DEF(ASL_BIN)\iasl.exe + +################## +# IA32 definitions +################## +*_WINDDK3790x1830_IA32_CC_PATH = DEF(WINDDK_BIN32)\cl.exe +*_WINDDK3790x1830_IA32_SLINK_PATH = DEF(WINDDK_BIN32)\lib.exe +*_WINDDK3790x1830_IA32_DLINK_PATH = DEF(WINDDK_BIN32)\link.exe +*_WINDDK3790x1830_IA32_ASMLINK_PATH = DEF(WINDDK_BIN16)\link.exe +*_WINDDK3790x1830_IA32_PP_PATH = DEF(WINDDK_BIN32)\cl.exe +*_WINDDK3790x1830_IA32_VFRPP_PATH = DEF(WINDDK_BIN32)\cl.exe +*_WINDDK3790x1830_IA32_APP_PATH = DEF(WINDDK_BIN32)\cl.exe +*_WINDDK3790x1830_IA32_PCH_PATH = DEF(WINDDK_BIN32)\cl.exe +*_WINDDK3790x1830_IA32_ASM_PATH = DEF(WINDDK_BIN32)\ml.exe + + DEBUG_WINDDK3790x1830_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm +RELEASE_WINDDK3790x1830_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 + DEBUG_WINDDK3790x1830_IA32_PCH_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC /Zi /Gm +RELEASE_WINDDK3790x1830_IA32_PCH_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GF /Gs8192 /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC + DEBUG_WINDDK3790x1830_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi +RELEASE_WINDDK3790x1830_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 + DEBUG_WINDDK3790x1830_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG +RELEASE_WINDDK3790x1830_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text + *_WINDDK3790x1830_IA32_ASMLINK_FLAGS = /link /nologo /tiny + +################## +# x64 definitions +################## +*_WINDDK3790x1830_X64_CC_PATH = DEF(WINDDK_BINX64)\cl.exe +*_WINDDK3790x1830_X64_SLINK_PATH = DEF(WINDDK_BINX64)\lib.exe +*_WINDDK3790x1830_X64_DLINK_PATH = DEF(WINDDK_BINX64)\link.exe +*_WINDDK3790x1830_X64_ASMLINK_PATH = DEF(WINDDK_BIN16)\link.exe +*_WINDDK3790x1830_X64_PP_PATH = DEF(WINDDK_BINX64)\cl.exe +*_WINDDK3790x1830_X64_VFRPP_PATH = DEF(WINDDK_BINX64)\cl.exe +*_WINDDK3790x1830_X64_APP_PATH = DEF(WINDDK_BINX64)\cl.exe +*_WINDDK3790x1830_X64_PCH_PATH = DEF(WINDDK_BINX64)\cl.exe +*_WINDDK3790x1830_X64_ASM_PATH = DEF(WINDDK_BINX64)\ml64.exe + + DEBUG_WINDDK3790x1830_X64_CC_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FIAutoGen.h /Zi /Gm /EHs-c- /GF +RELEASE_WINDDK3790x1830_X64_CC_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FIAutoGen.h /EHs-c- /GF + DEBUG_WINDDK3790x1830_X64_PCH_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FIAutoGen.h /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC /Zi /Gm /EHs-c- /GF +RELEASE_WINDDK3790x1830_X64_PCH_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FIAutoGen.h /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC /EHs-c- /GF + DEBUG_WINDDK3790x1830_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd /Zi +RELEASE_WINDDK3790x1830_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd + DEBUG_WINDDK3790x1830_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /Machine:AMD64 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG +RELEASE_WINDDK3790x1830_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /Machine:AMD64 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text + +################## +# IPF definitions +################## +*_WINDDK3790x1830_IPF_CC_PATH = DEF(WINDDK_BIN64)\cl.exe +*_WINDDK3790x1830_IPF_SLINK_PATH = DEF(WINDDK_BIN64)\lib.exe +*_WINDDK3790x1830_IPF_DLINK_PATH = DEF(WINDDK_BIN64)\link.exe +*_WINDDK3790x1830_IPF_ASMLINK_PATH = DEF(WINDDK_BIN16)\link.exe +*_WINDDK3790x1830_IPF_PP_PATH = DEF(WINDDK_BIN64)\cl.exe +*_WINDDK3790x1830_IPF_VFRPP_PATH = DEF(WINDDK_BIN64)\cl.exe +*_WINDDK3790x1830_IPF_APP_PATH = DEF(WINDDK_BIN64)\cl.exe +*_WINDDK3790x1830_IPF_PCH_PATH = DEF(WINDDK_BIN64)\cl.exe +*_WINDDK3790x1830_IPF_ASM_PATH = DEF(WINDDK_BIN64)\ias.exe + + DEBUG_WINDDK3790x1830_IPF_CC_FLAGS = /GS- /nologo /W4 /WX /EHs-c- /Gy /c /Os /GL /X /FIAutoGen.h /Zi +RELEASE_WINDDK3790x1830_IPF_CC_FLAGS = /GS- /nologo /W4 /WX /EHs-c- /Gy /c /Os /GL /X /FIAutoGen.h + DEBUG_WINDDK3790x1830_IPF_PCH_FLAGS = /GS- /nologo /W4 /WX /EHs-c- /Gy /c /Os /GL /X /FIAutoGen.h /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC /Zi +RELEASE_WINDDK3790x1830_IPF_PCH_FLAGS = /GS- /nologo /W4 /WX /EHs-c- /Gy /c /Os /GL /X /FIAutoGen.h /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC + DEBUG_WINDDK3790x1830_IPF_ASM_FLAGS = -N us -X explicit -M ilp64 -N so -W4 -d debug +RELEASE_WINDDK3790x1830_IPF_ASM_FLAGS = -N us -X explicit -M ilp64 -N so -W4 + DEBUG_WINDDK3790x1830_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT:REF,ICF /IGNORE:4086 /MAP /ALIGN:32 /MACHINE:IA64 /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MAP:$(DEST_DIR_DEBUG)/$(BASE_NAME).map /PDB:$(DEST_DIR_DEBUG)/$(BASE_NAME).pdb /DEBUG +RELEASE_WINDDK3790x1830_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT:REF.ICF /IGNORE:4086 /MAP /ALIGN:32 /MACHINE:IA64 /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MAP:$(DEST_DIR_DEBUG)/$(BASE_NAME).map /PDB:$(DEST_DIR_DEBUG)/$(BASE_NAME).pdb + +################## +# EBC definitions +################## +*_WINDDK3790x1830_EBC_*_FAMILY = INTEL + +*_WINDDK3790x1830_EBC_PP_PATH = DEF(EBC_BIN)\iec.exe +*_WINDDK3790x1830_EBC_CC_PATH = DEF(EBC_BIN)\iec.exe +*_WINDDK3790x1830_EBC_DLINK_PATH = DEF(EBC_BIN)\link.exe +*_WINDDK3790x1830_EBC_SLINK_PATH = DEF(EBC_BIN)\link.exe + +*_WINDDK3790x1830_EBC_CC_FLAGS = /nologo /c /W3 /WX /FIAutoGen.h +*_WINDDK3790x1830_EBC_SLINK_FLAGS = /lib /NOLOGO /MACHINE:EBC +*_WINDDK3790x1830_EBC_DLINK_FLAGS = "C:\Program Files\Intel\EBC\Lib\EbcLib.lib" /NOLOGO /NODEFAULTLIB /MACHINE:EBC /OPT:REF /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER + +#################################################################################### +# +# Unix GCC +# +#################################################################################### +# UINIXGCC - UINIX GCC +*_UNIXGCC_*_*_FAMILY = GCC + +*_UNIXGCC_*_DLINK_FLAGS = -nostdlib -O2 --gc-sections --dll --export-all-symbols --entry _$(ENTRYPOINT) --file-alignment 0x20 --section-alignment 0x20 +*_UNIXGCC_*_ASM_FLAGS = -c -imacros $(DEST_DIR_DEBUG)/AutoGen.h +*_UNIXGCC_*_PP_FLAGS = -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h +*_UNIXGCC_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include AutoGen.h + +################## +# IA32 definitions +################## +*_UNIXGCC_IA32_CC_PATH = DEF(PEGCC_BIN32)/gcc +*_UNIXGCC_IA32_SLINK_PATH = DEF(PEGCC_BIN32)/ar +*_UNIXGCC_IA32_DLINK_PATH = DEF(PEGCC_BIN32)/ld +*_UNIXGCC_IA32_ASM_PATH = DEF(PEGCC_BIN32)/gcc +*_UNIXGCC_IA32_PP_PATH = DEF(PEGCC_BIN32)/gcc +*_UNIXGCC_IA32_VFRPP_PATH = DEF(PEGCC_BIN32)/cc + +*_UNIXGCC_IA32_CC_FLAGS = -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-missing-braces -c -include AutoGen.h + +################## +# X64 definitions +################## +*_UNIXGCC_X64_CC_PATH = DEF(PEGCC_BINX64)/gcc +*_UNIXGCC_X64_SLINK_PATH = DEF(PEGCC_BINX64)/ar +*_UNIXGCC_X64_DLINK_PATH = DEF(PEGCC_BINX64)/ld +*_UNIXGCC_X64_ASM_PATH = DEF(PEGCC_BINX64)/gcc +*_UNIXGCC_X64_PP_PATH = DEF(PEGCC_BINX64)/gcc +*_UNIXGCC_X64_VFRPP_PATH = DEF(PEGCC_BINX64)/gcc + +*_UNIXGCC_X64_CC_FLAGS = -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-missing-braces -c -include AutoGen.h -D_EFI_P64 + +#################################################################################### +# +# Cygwin GCC +# +#################################################################################### +# CYGWINGCC - CygWin GCC +*_CYGWINGCC_*_*_FAMILY = GCC + +*_CYGWINGCC_*_*_DPATH = DEF(CYGWIN_BIN) +*_CYGWINGCC_*_ASL_PATH = DEF(ASL_BIN)/iasl.exe +*_CYGWINGCC_*_MAKE_PATH = DEF(VSNET2003_BIN)\nmake.exe + +*_CYGWINGCC_*_MAKE_FLAGS = /nologo +*_CYGWINGCC_*_DLINK_FLAGS = -nostdlib -O2 --gc-sections --dll --export-all-symbols --entry _$(ENTRYPOINT) --file-alignment 0x20 --section-alignment 0x20 +*_CYGWINGCC_*_ASM_FLAGS = -c -imacros AutoGen.h +*_CYGWINGCC_*_PP_FLAGS = -E -x assembler-with-cpp -include AutoGen.h +*_CYGWINGCC_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include AutoGen.h + +################## +# IA32 definitions +################## +*_CYGWINGCC_IA32_CC_PATH = DEF(CYGWIN_BIN32)/gcc +*_CYGWINGCC_IA32_SLINK_PATH = DEF(CYGWIN_BIN32)/ar +*_CYGWINGCC_IA32_DLINK_PATH = DEF(CYGWIN_BIN32)/ld +*_CYGWINGCC_IA32_ASM_PATH = DEF(CYGWIN_BIN32)/gcc +*_CYGWINGCC_IA32_PP_PATH = DEF(CYGWIN_BIN32)/gcc +*_CYGWINGCC_IA32_VFRPP_PATH = DEF(CYGWIN_BIN32)/gcc + +*_CYGWINGCC_IA32_CC_FLAGS = -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror -c -include AutoGen.h + +################## +# X64 definitions +################## +*_CYGWINGCC_X64_CC_PATH = DEF(CYGWIN_BINX64)/gcc +*_CYGWINGCC_X64_SLINK_PATH = DEF(CYGWIN_BINX64)/ar +*_CYGWINGCC_X64_DLINK_PATH = DEF(CYGWIN_BINX64)/ld +*_CYGWINGCC_X64_ASM_PATH = DEF(CYGWIN_BINX64)/gcc +*_CYGWINGCC_X64_PP_PATH = DEF(CYGWIN_BINX64)/gcc +*_CYGWINGCC_X64_VFRPP_PATH = DEF(CYGWIN_BINX64)/gcc + +*_CYGWINGCC_X64_CC_FLAGS = -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror -c -include AutoGen.h -D_EFI_P64 + +#################################################################################### +# +# Elf GCC - This configuration is used to compile on Linux boxes to produce elf +# binaries. +# +#################################################################################### +# ELFGCC - Linux ELF GCC +*_ELFGCC_*_*_FAMILY = GCC + +*_ELFGCC_IA32_CC_PATH = DEF(ELFGCC_BIN)/gcc +*_ELFGCC_IA32_SLINK_PATH = DEF(ELFGCC_BIN)/ar +*_ELFGCC_IA32_DLINK_PATH = DEF(ELFGCC_BIN)/ld +*_ELFGCC_IA32_ASM_PATH = DEF(ELFGCC_BIN)/gcc +*_ELFGCC_IA32_PP_PATH = DEF(ELFGCC_BIN)/gcc +*_ELFGCC_IA32_VFRPP_PATH = DEF(ELFGCC_BIN)/gcc + +*_ELFGCC_IA32_CC_FLAGS = -m32 -g -fshort-wchar -fno-strict-aliasing -Wall -malign-double -c -include $(DEST_DIR_DEBUG)/AutoGen.h -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings +*_ELFGCC_*_DLINK_FLAGS = -melf_i386 -nostdlib -n -q -Ttext 0x220 --entry $(ENTRYPOINT) -u $(ENTRYPOINT) +*_ELFGCC_*_ASM_FLAGS = -m32 -c -imacros $(DEST_DIR_DEBUG)/AutoGen.h +*_ELFGCC_*_PP_FLAGS = -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h +*_ELFGCC_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include AutoGen.h + + +#################################################################################### +# +# Intel EFI Byte Code Compiler (Template) +# +#################################################################################### +# *_*_EBC_*_FAMILY = INTEL +# +# *_*_EBC_PP_PATH = C:\Program Files\Intel\EBC\Bin\iec.exe +# *_*_EBC_CC_PATH = C:\Program Files\Intel\EBC\Bin\iec.exe +# *_*_EBC_SLINK_PATH = C:\Program Files\Intel\EBC\Bin\link.exe +# +# *_*_EBC_SLINK_FLAGS = /lib /NOLOGO /MACHINE:EBC +# *_*_EBC_PP_FLAGS = /nologo /E /TC /FI$(DEST_DIR_DEBUG)/AutoGen.h +# *_*_EBC_CC_FLAGS = /nologo /FAcs /c /W3 /WX /FI$(DEST_DIR_DEBUG)/AutoGen.h +# *_*_EBC_DLINK_FLAGS = "C:\Program Files\Intel\EBC\Lib\EbcLib.lib" /NOLOGO /MACHINE:EBC /OPT:REF /NODEFAULTLIB /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER +# +#################################################################################### +# +# Intel ACPI Source Language Compiler (Template) +# +#################################################################################### +# *_*_*_ASL_FAMILY = INTEL +# +# *_*_*_ASL_PATH = C:\ASL\iasl.exe +# +#################################################################################### +# +# Microsoft ACPI Source Language Compiler (Template) +# +#################################################################################### +# *_*_*_ASL_FAMILY = MSFT +# +# *_*_*_ASL_PATH = C:\ASL\iasl.exe +# + + +#################################################################################### +# +# Intel(R) C++ Compiler Version 9.1 +# +# IPF - Intel(R) C++ Compiler for Itanium(R)Version 9.1 Build 20060928 Package ID: W_CC_C_9.1.032 +# ASL - Intel ACPI Source Language COmpiler +# +#################################################################################### +# ICC - Intel C Compiler V9.1 +*_ICC_*_*_FAMILY = INTEL + +*_ICC_*_ASL_PATH = DEF(ASL_BIN)\iasl.exe +*_ICC_*_MAKE_PATH = DEF(VSNET2003_BIN)\nmake.exe + +*_ICC_*_MAKE_FLAGS = /nologo +*_ICC_*_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FIAutoGen.h +*_ICC_*_APP_FLAGS = /nologo /E /TC +*_ICC_*_PP_FLAGS = /nologo /E /TC /FIAutoGen.h + +################## +# IA32 definitions +################## +*_ICC_IA32_PCH_PATH = DEF(ICC_BIN32)\icl.exe +*_ICC_IA32_CC_PATH = DEF(ICC_BIN32)\icl.exe +*_ICC_IA32_SLINK_PATH = DEF(ICC_BIN32)\xilib.exe +# xilib.exe needs lib.exe from Visual Studio +*_ICC_IA32_SLINK_DLL = DEF(VSNET2003_BIN) +*_ICC_IA32_DLINK_PATH = DEF(ICC_BIN32)\xilink.exe +*_ICC_IA32_ASMLINK_PATH = DEF(ICC_BIN32)\xilink.exe +*_ICC_IA32_PP_PATH = DEF(ICC_BIN32)\icl.exe +*_ICC_IA32_VFRPP_PATH = DEF(ICC_BIN32)\icl.exe +*_ICC_IA32_APP_PATH = DEF(ICC_BIN32)\icl.exe +*_ICC_IA32_ASM_PATH = DEF(VSNET2003_BIN)\ml.exe +*_ICC_IA32_ASM_DLL = DEF(VSNET2003_DLL) + + DEBUG_ICC_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /DEFI_FIRMWARE_VENDOR=L\"INTEL\" /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm +RELEASE_ICC_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /DEFI_FIRMWARE_VENDOR=L\"INTEL\" /FIAutoGen.h /EHs-c- /GF /Gs8192 + DEBUG_ICC_IA32_PCH_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /DEFI_FIRMWARE_VENDOR=L\"INTEL\" /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Yc /TC /Zi /Gm +RELEASE_ICC_IA32_PCH_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /DEFI_FIRMWARE_VENDOR=L\"INTEL\" /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Yc /TC + DEBUG_ICC_IA32_ASM_FLAGS = /nologo /W3 /WX /c /Zd /W0 /Zi +RELEASE_ICC_IA32_ASM_FLAGS = /nologo /W3 /WX /c /Zd /W0 + *_ICC_IA32_SLINK_FLAGS = /nologo + DEBUG_ICC_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG +RELEASE_ICC_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text + +################## +# X64 definitions +################## +*_ICC_X64_PCH_PATH = DEF(ICC_BINX64)\icl.exe +*_ICC_X64_CC_PATH = DEF(ICC_BINX64)\icl.exe +*_ICC_X64_SLINK_PATH = DEF(ICC_BINX64)\xilib.exe +# xilib.exe needs lib.exe from Visual Studio +*_ICC_X64_SLINK_DLL = DEF(VSNET2003_BIN) +*_ICC_X64_DLINK_PATH = DEF(ICC_BINX64)\xilink.exe +*_ICC_X64_ASMLINK_PATH = DEF(ICC_BINX64)\xilink.exe +*_ICC_X64_PP_PATH = DEF(ICC_BINX64)\icl.exe +*_ICC_X64_VFRPP_PATH = DEF(ICC_BINX64)\icl.exe +*_ICC_X64_APP_PATH = DEF(ICC_BINX64)\icl.exe +*_ICC_X64_ASM_PATH = DEF(WINDDK_BINX64)\ml64.exe +*_ICC_X64_ASM_DLL = DEF(VSNET2003_DLL) + + DEBUG_ICC_X64_CC_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FI$(DEST_DIR_DEBUG)/AutoGen.h /Zi /Gm /EHs-c- /GF +RELEASE_ICC_X64_CC_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF + DEBUG_ICC_X64_PCH_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FI$(DEST_DIR_DEBUG)/AutoGen.h /TC /Zi /Gm /EHs-c- /GF +RELEASE_ICC_X64_PCH_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FI$(DEST_DIR_DEBUG)/AutoGen.h /TC /EHs-c- /GF + DEBUG_ICC_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd /Zi +RELEASE_ICC_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd + DEBUG_ICC_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /Machine:AMD64 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG +RELEASE_ICC_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /Machine:AMD64 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text + *_ICC_X64_SLINK_FLAGS = /nologo /LTCG + + +################## +# IPF definitions +################## +*_ICC_IPF_CC_PATH = DEF(ICC_BIN64)\icl.exe +# icl.exe needs cl.exe from Visual Studio +*_ICC_IPF_CC_DLL = DEF(VSNET2003_BIN) +*_ICC_IPF_SLINK_PATH = DEF(ICC_BIN64)\xilib.exe +# xilib.exe needs lib.exe from Visual Studio +*_ICC_IPF_SLINK_DLL = DEF(VSNET2003_BIN);DEF(VSNET2003_DLL) +*_ICC_IPF_DLINK_PATH = DEF(ICC_BIN64)\xilink.exe +*_ICC_IPF_ASMLINK_PATH = DEF(ICC_BIN64)\xilink.exe +*_ICC_IPF_PP_PATH = DEF(ICC_BIN64)\icl.exe +*_ICC_IPF_VFRPP_PATH = DEF(ICC_BIN64)\icl.exe + +*_ICC_IPF_PCH_PATH = DEF(ICC_BIN64)\icl.exe +*_ICC_IPF_APP_PATH = DEF(ICC_BIN64)\icl.exe +*_ICC_IPF_ASM_PATH = DEF(ICC_BIN64)\ias.exe + + DEBUG_ICC_IPF_CC_FLAGS = /nologo /W4 /WX /GX /Gy /c /Od /FI$(DEST_DIR_DEBUG)/AutoGen.h /QIA64_fr32 /Zi +RELEASE_ICC_IPF_CC_FLAGS = /nologo /W4 /WX /GX /Gy /c /Od /FI$(DEST_DIR_DEBUG)/AutoGen.h /QIA64_fr32 + DEBUG_ICC_IPF_PCH_FLAGS = /nologo /W4 /WX /GX /Gy /c /Os /FI$(DEST_DIR_DEBUG)/AutoGen.h /Yc /TC /Zi +RELEASE_ICC_IPF_PCH_FLAGS = /nologo /W4 /WX /GX /Gy /c /Os /FI$(DEST_DIR_DEBUG)/AutoGen.h /Yc /TC + DEBUG_ICC_IPF_ASM_FLAGS = -N us -X explicit -M ilp64 -N so -W3 -d debug -F COFF32 +RELEASE_ICC_IPF_ASM_FLAGS = -N us -X explicit -M ilp64 -N so -W3 -F COFF32 + DEBUG_ICC_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT:REF,ICF /IGNORE:4086 /MAP /ALIGN:64 /MACHINE:IA64 /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MAP:$(DEST_DIR_DEBUG)/$(BASE_NAME).map /PDB:$(DEST_DIR_DEBUG)/$(BASE_NAME).pdb /DEBUG +RELEASE_ICC_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT:REF,ICF /IGNORE:4086 /MAP /ALIGN:64 /MACHINE:IA64 /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MAP:$(DEST_DIR_DEBUG)/$(BASE_NAME).map /PDB:$(DEST_DIR_DEBUG)/$(BASE_NAME).pdb + *_ICC_IPF_SLINK_FLAGS = /nologo + +#################################################################################### +# +# MYTOOLS +# IA32 - Microsoft Visual Studio .NET 2003 and Microsoft Windows DDK 3790.1830 for 16-bit linker +# X64 - Microsoft Windows DDK 3790.1830 +# IPF - Microsoft Windows DDK 3790.1830 +# EBC - Intel EFI Byte Code Compiler +# +#################################################################################### +# MYTOOLS - Settings compatible with previous versions of tools_def.template +*_MYTOOLS_*_*_FAMILY = MSFT + +*_MYTOOLS_*_TIANO_PATH = TianoCompress.exe +*_MYTOOLS_*_TIANO_GUID = A31280AD-481E-41B6-95E8-127F4C984779 + +*_MYTOOLS_*_ASL_PATH = DEF(ASL_BIN)\iasl.exe + +*_MYTOOLS_*_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FIAutoGen.h + +################## +# IA32 definitions +################## +*_MYTOOLS_IA32_*_DLL = DEF(VSNET2003_DLL) + +*_MYTOOLS_IA32_MAKE_PATH = DEF(VSNET2003_BIN)\nmake.exe +*_MYTOOLS_IA32_CC_PATH = DEF(VSNET2003_BIN)\cl.exe +*_MYTOOLS_IA32_SLINK_PATH = DEF(VSNET2003_BIN)\lib.exe +*_MYTOOLS_IA32_DLINK_PATH = DEF(VSNET2003_BIN)\link.exe +*_MYTOOLS_IA32_ASMLINK_PATH = DEF(WINDDK_BIN16)\link.exe +*_MYTOOLS_IA32_PP_PATH = DEF(VSNET2003_BIN)\cl.exe +*_MYTOOLS_IA32_VFRPP_PATH = DEF(VSNET2003_BIN)\cl.exe +*_MYTOOLS_IA32_APP_PATH = DEF(VSNET2003_BIN)\cl.exe +*_MYTOOLS_IA32_ASM_PATH = DEF(VSNET2003_BIN)\ml.exe +*_MYTOOLS_IA32_PCH_PATH = DEF(VSNET2003_BIN)\cl.exe + + *_MYTOOLS_IA32_MAKE_FLAGS = /nologo + *_MYTOOLS_IA32_APP_FLAGS = /nologo /E /TC + *_MYTOOLS_IA32_PP_FLAGS = /nologo /E /TC /FI$(DEST_DIR_DEBUG)/AutoGen.h + DEBUG_MYTOOLS_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm +RELEASE_MYTOOLS_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 + DEBUG_MYTOOLS_IA32_PCH_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC /Zi /Gm +RELEASE_MYTOOLS_IA32_PCH_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /O1ib2 /GL /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Fp$(DEST_DIR_OUTPUT)/AutoGen.h.gch /Yc /TC + DEBUG_MYTOOLS_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi +RELEASE_MYTOOLS_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 + *_MYTOOLS_IA32_ASMLINK_FLAGS = /link /nologo /tiny + *_MYTOOLS_IA32_SLINK_FLAGS = /nologo /LTCG + DEBUG_MYTOOLS_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG /PDB:$(DEST_DIR_DEBUG)/$(BASE_NAME).pdb +RELEASE_MYTOOLS_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /MACHINE:I386 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text /PDB:$(DEST_DIR_DEBUG)/$(BASE_NAME).pdb + +################## +# x64 definitions +################## +*_MYTOOLS_X64_MAKE_PATH = DEF(WINDDK_BIN32)\nmake.exe +*_MYTOOLS_X64_CC_PATH = DEF(WINDDK_BINX64)\cl.exe +*_MYTOOLS_X64_SLINK_PATH = DEF(WINDDK_BINX64)\lib.exe +*_MYTOOLS_X64_DLINK_PATH = DEF(WINDDK_BINX64)\link.exe +*_MYTOOLS_X64_ASMLINK_PATH = DEF(WINDDK_BIN16)\link.exe +*_MYTOOLS_X64_PP_PATH = DEF(WINDDK_BINX64)\cl.exe +*_MYTOOLS_X64_VFRPP_PATH = DEF(WINDDK_BINX64)\cl.exe +*_MYTOOLS_X64_APP_PATH = DEF(WINDDK_BINX64)\cl.exe +*_MYTOOLS_X64_ASM_PATH = DEF(WINDDK_BINX64)\ml64.exe +*_MYTOOLS_X64_PCH_PATH = DEF(WINDDK_BINX64)\cl.exe + + *_MYTOOLS_X64_SLINK_FLAGS = /nologo /LTCG + *_MYTOOLS_X64_APP_FLAGS = /nologo /E /TC + *_MYTOOLS_X64_PP_FLAGS = /nologo /E /TC /FI$(DEST_DIR_DEBUG)/AutoGen.h + *_MYTOOLS_X64_MAKE_FLAGS = /nologo + DEBUG_MYTOOLS_X64_CC_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FI$(DEST_DIR_DEBUG)/AutoGen.h /Zi /Gm /EHs-c- /GF +RELEASE_MYTOOLS_X64_CC_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF + DEBUG_MYTOOLS_X64_PCH_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FI$(DEST_DIR_DEBUG)/AutoGen.h /TC /Zi /Gm /EHs-c- /GF +RELEASE_MYTOOLS_X64_PCH_FLAGS = /nologo /X /W4 /WX /c /Gs8192 /GS- /D UNICODE /O1ib2s /GL /Gy /FI$(DEST_DIR_DEBUG)/AutoGen.h /TC /EHs-c- /GF + DEBUG_MYTOOLS_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd /Zi +RELEASE_MYTOOLS_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd + DEBUG_MYTOOLS_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /Machine:AMD64 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /DEBUG +RELEASE_MYTOOLS_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /Machine:AMD64 /LTCG /DLL /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:CONSOLE /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.data=.text /MERGE:.rdata=.text + +################## +# IPF definitions +################## +*_MYTOOLS_IPF_MAKE_PATH = DEF(WINDDK_BIN32)\nmake.exe +*_MYTOOLS_IPF_CC_PATH = DEF(WINDDK_BIN64)\cl.exe +*_MYTOOLS_IPF_SLINK_PATH = DEF(WINDDK_BIN64)\lib.exe +*_MYTOOLS_IPF_DLINK_PATH = DEF(WINDDK_BIN64)\link.exe +*_MYTOOLS_IPF_ASMLINK_PATH = DEF(WINDDK_BIN16)\link.exe +*_MYTOOLS_IPF_PP_PATH = DEF(WINDDK_BIN64)\cl.exe +*_MYTOOLS_IPF_VFRPP_PATH = DEF(WINDDK_BIN64)\cl.exe +*_MYTOOLS_IPF_APP_PATH = DEF(WINDDK_BIN64)\cl.exe +*_MYTOOLS_IPF_ASM_PATH = DEF(WINDDK_BIN64)\ias.exe +*_MYTOOLS_IPF_PCH_PATH = DEF(WINDDK_BIN64)\cl.exe + + *_MYTOOLS_IPF_ASM_OUTPUT = "-o " + + *_MYTOOLS_IPF_MAKE_FLAGS = /nologo + *_MYTOOLS_IPF_APP_FLAGS = /nologo /E /TC + *_MYTOOLS_IPF_PP_FLAGS = /nologo /E /TC /FI$(DEST_DIR_DEBUG)/AutoGen.h + DEBUG_MYTOOLS_IPF_CC_FLAGS = /GS- /nologo /W4 /WX /EHs-c- /Gy /c /Ox /GF /GL /X /FI$(DEST_DIR_DEBUG)/AutoGen.h /Zi /Zx +RELEASE_MYTOOLS_IPF_CC_FLAGS = /GS- /nologo /W4 /WX /EHs-c- /Gy /c /Ox /GF /GL /X /FI$(DEST_DIR_DEBUG)/AutoGen.h /Zx + DEBUG_MYTOOLS_IPF_PCH_FLAGS = /GS- /nologo /W4 /WX /EHs-c- /Gy /c /Ox /GF /GL /X /FI$(DEST_DIR_DEBUG)/AutoGen.h /TC /Zi /Zx +RELEASE_MYTOOLS_IPF_PCH_FLAGS = /GS- /nologo /W4 /WX /EHs-c- /Gy /c /Ox /GF /GL /X /FI$(DEST_DIR_DEBUG)/AutoGen.h /Yc /TC /Zx + DEBUG_MYTOOLS_IPF_ASM_FLAGS = -N us -X explicit -M ilp64 -N so -W4 -d debug +RELEASE_MYTOOLS_IPF_ASM_FLAGS = -N us -X explicit -M ilp64 -N so -W4 + DEBUG_MYTOOLS_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT:REF /OPT:ICF=10 /IGNORE:4086 /MAP /ALIGN:32 /MACHINE:IA64 /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MAP:$(DEST_DIR_DEBUG)/$(BASE_NAME).map /PDB:$(DEST_DIR_DEBUG)/$(BASE_NAME).pdb /DEBUG +RELEASE_MYTOOLS_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT:REF /OPT:ICF=10 /IGNORE:4086 /MAP /ALIGN:32 /MACHINE:IA64 /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MAP:$(DEST_DIR_DEBUG)/$(BASE_NAME).map /PDB:$(DEST_DIR_DEBUG)/$(BASE_NAME).pdb + *_MYTOOLS_IPF_SLINK_FLAGS = /nologo /LTCG + +################## +# EBC definitions +################## +*_MYTOOLS_EBC_*_FAMILY = INTEL + +*_MYTOOLS_EBC_MAKE_PATH = DEF(VSNET2003_BIN)\nmake.exe +*_MYTOOLS_EBC_PP_PATH = DEF(EBC_BIN)\iec.exe +*_MYTOOLS_EBC_CC_PATH = DEF(EBC_BIN)\iec.exe +*_MYTOOLS_EBC_SLINK_PATH = DEF(EBC_BIN)\link.exe +*_MYTOOLS_EBC_DLINK_PATH = DEF(EBC_BIN)\link.exe + +*_MYTOOLS_EBC_MAKE_FLAGS = /nologo +*_MYTOOLS_EBC_PP_FLAGS = /nologo /E /TC /FIAutoGen.h +*_MYTOOLS_EBC_CC_FLAGS = /nologo /c /W3 /WX /FIAutoGen.h +*_MYTOOLS_EBC_SLINK_FLAGS = /lib /NOLOGO /MACHINE:EBC +*_MYTOOLS_EBC_DLINK_FLAGS = "C:\Program Files\Intel\EBC\Lib\EbcLib.lib" /NOLOGO /NODEFAULTLIB /MACHINE:EBC /OPT:REF /ENTRY:$(ENTRYPOINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER + diff --git a/Tools/BaseTools/ReadMe.txt b/Tools/BaseTools/ReadMe.txt new file mode 100644 index 0000000000..e1e512da01 --- /dev/null +++ b/Tools/BaseTools/ReadMe.txt @@ -0,0 +1,164 @@ +This directory contains the next generation of EDK II build tools and template files. +Templates are located in the Conf directory, while the tools executables for +Microsoft Windows 32-bit Operating Systems are located in the Bin\Win32 directory. + +The binary tools will be updated only after passing developer testing. + +The BaseTools package will be updated with new tools only after all testing on a set +of binary tools has successfully completed. + +Current state of the tools is Proto-Type - not all tool functions have been implemented +and there may be bugs in these tools. These tools are under constant development at +this time. + +BaseTools Simple Usage: +1) Change the directory to the EDK2 root directory, where the edksetup.bat is +2) Run "edksetup.bat NewBuild" +3) Set the ACTIVE_PLATFORM to your desired platform description file + (%WORKSPACE%\Conf\target.txt) +4) To build platform, run "build" command in non-module directory +5) To build module individually, run "build" command in module directory, i.e. where the + *.inf file is + +Notes: +1) The tree structure generated by build tools is similar to Ant build system. +2) Makefile can be called directly by nmake for both top level platform and module. But + after you call "nmake cleanall", you have to call "build" command to rebuild platform + or modules because the AutoGen.* files have been be removed. The "makefile" itself + cannot generate AutoGen.* files. Only "build" command can. +3) build.exe in %WORKSPACE%\BaseTools\Bin\Win32 is generated from following revision of + Python source code: + r817 \BaseTools\Source\Python\Autogen + r817 \BaseTools\Source\Python\build + r817 \BaseTools\Source\Python\Common + r817 \BaseTools\Source\Python\CommonDataClass + r817 \BaseTools\Source\Python\GenFds + +4) GenFds.exe has is a combo of the follow python source.(This is a temporary branch) + r816 \BaseTools\Source\Python\Common + r816 \BaseTools\Source\Python\CommonDataClass + r816 \BaseTools\Source\Python\GenFds + +Brief usage for Migration Tool MigrationMsa2Inf.exe: +1. Command line format: + MigrationMsa2Inf [options] +2. Input Files: + A syntactically valid MSA file +3. Output Files: + An extended INF file with possible auto-generated EntryPoint.c, CommonHeader.h/CommonHeader.txt, depending on options and module contents. +4. Prerequisite: + a. The workspace directory must be specified either by environment variable or -w option. + b. The Framework Database file must exist to specify the available packages in current workspace. + Two possible locations are: (The first location overrides the second) + $(WORKSPACE)\Tools\Conf\FrameworkDatabase.db + $(WORKSPACE)\Conf\FrameworkDatabase.db. + The field in FrameworkDatabase.db lists all available packages in current workspace. + One example: + + MdePkg/MdePkg.nspd + MdeModulePkg/MdeModulePkg.spd + IntelFrameworkPkg/IntelFrameworkPkg.spd + + The package list in FrameworkDatabase.db is important to the final quality of migration: + (1) It suggests the new package location: Translate package dependency Guid in MSA to Workspace relative path. + If the package dependency Guid cannot be found in current workspace a warning message is raised. + (2) It collects the Protocol/Guid/Ppi GuidCName a package contains. + The GuidCName acts as "clue" to add e.g. #include in CommonHeader.h + +5. Example: + WORKSAPCE has already been set: $(WORKSPACE) = c:\work\EdkII. + + a. MigrationMsa2Inf -f c:\work\EdkII\Nt32Pkg\WinNtThunkDxe\WinNtThunk.msa -o c:\work\EdkII\Nt32Pkg\WinNtThunkDxe\WinNtThunk.inf + b. MigrationMsa2Inf -f c:\work\EdkII\Nt32Pkg\WinNtThunkDxe\WinNtThunk.msa -a + Example a & b are equivalent to migrate WinNtThunk driver from EDKII to EDKII' code base. + + c. MigrationMsa2Inf -f c:\work\EdkII\Nt32Pkg\WinNtThunkDxe\WinNtThunk.msa -a -c + The extra "-c" option performs several hardcode mapping due to the naming change in EDKII': + OldMdePkg Guid -> MdePkgGuid, + EdkModulePkg Guid -> MdeModulePkgGuid, + EdkGraphicsLib -> GraphicsLib + HiiLib -> HiiLibFramework + ... + + d. MigrationMsa2Inf -f c:\work\EdkII\Nt32Pkg\WinNtThunkDxe\WinNtThunk.msa -m + The extra "-m" option suppresses the generation of "CommonHeader.h" and leave all C files intact. + Instead, it generates "CommonHeader.txt". Developers can manually copy its content to a local common header file in a module. + +6. Known Limitations: + a. Tool does not handle Exit Boot Services Callback & Virtual Address Changed Event. Developers need to handle it manually. + b. The #include is based on library class naming convention: The header filename for "AbcLib" class are "AbcLib.h" by convention. + c. The #include , and are added based on gGuidCName listed in MSA. + If a GuidCName cannot map to a package Guid/Protocol/Ppi header file, a warning message is raised. + If a module uses the definition in a pakcage Guid/Protocol/Ppi header file without list its associative GuidCName, the build will beak. Developer needs to manually add the include statement. + d. The [Depex] sections are generated from DXS files with Guid Macro translated to Guid CName by naming convention, etc. + If tool fails to "guess" the Guid CName from Guid Macro, it will leave the GuidMacro in [Depex] section for manual resolution. + e. When tool generates [Sources] section, the modifiers for source files are lost. (Need to add proper tool chain, etc) + f. When tool generates [LibraryClasses] section, the recommended library instances are lost. (No impact to build) + +7. Pyton Source + r682 \BaseTools\Source\Python\MigrationMsa2Inf + + +Brief Usage for PcdSyntax Update: +Usage: + PcdSyntaxUpdate.exe +It searches all INF, DEC and DSC file under and update them with the following rules: +1. Update INF files to conform to INF spec 0.44: + a. Rename PCD section name: e.g. [PcdsFeatureFlag] -> [FeaturePcd] + b. Adjust PCD section item format: e.g. PcdDebugClearMemoryValue|gEfiMdePkgTokenSpaceGuid -> gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue + c. Update the syntax of binary INF file (not PCD related) +2. Update DEC files to confirm to DEC spec 0.36 + Adjust PCD section item format: e.g. PcdWinNtPhysicalDisk|0x00001000|gEfiNt32PkgTokenSpaceGuid|VOID*|L"E:RW;245760;512"-> gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoverySize|0x0|UINT32|0x00001011 +3. Update DSC files to confirm to DSC spec + a. Adjust string/array typed PCD item format: e.g. PcdWinNtMemorySizeForSecMain|gEfiNt32PkgTokenSpaceGuid|L"64!64"|12 -> gEfiNt32PkgTokenSpaceGuid.PcdWinNtMemorySizeForSecMain|L"64!64"|VOID*|12 + b. Adjust non-string/array typed PCD item format: e.g. PcdWinNtBootMode|gEfiNt32PkgTokenSpaceGuid|1 -> gEfiNt32PkgTokenSpaceGuid.PcdWinNtBootMode|1 + c. Update the override library class in [Components] section: e.g. + { + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + } + To + { + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + } + +Brief usage for Migration Tool Spd2Dec.exe: +1. Command line format: + Spd2Dec [options] input_filename +2. Input File: + A syntactically valid SPD file +3. Output Files: + A DEC file whose syntax confirms to DEC spec. + +4. Example: + a. Spd2Dec -o c:\work\EdkII\Nt32Pkg\Nt32.spd c:\work\EdkII\Nt32Pkg\Nt32.dec + b. Spd2Dec -a c:\work\EdkII\Nt32Pkg\Nt32.spd + Example a & b are equivalent to migrate Nt32 package SPD file from EDKII to EDKII' snytax. + +6. Pyton Source + r777 \BaseTools\Source\Python\spd2Dec + +Brief usage for Migration Tool Fpd2Dsc.exe: +1. Command line format: + Fpd2Dsc [options] input_filename +2. Input File: + A syntactically valid FPD file +3. Output Files: + A DSC file which syntax confirms to DSC spec. +4. Prerequisite: + a. The workspace directory must be specified either by environment variable or -w option. + +5. Example: + WORKSAPCE has already been set: $(WORKSPACE) = c:\work\EdkII. + + a. Fpd2Dsc -o c:\work\EdkII\Nt32Pkg\Nt32.dsc c:\work\EdkII\Nt32Pkg\Nt32.fpd + b. Fpd2Dsc -a c:\work\EdkII\Nt32Pkg\Nt32.fpd + Example a & b are equivalent to migrate Nt32 platform description file from EDKII to EDKII' snytax. + +6. Known Limitations: + a. Tool does not handle Libraries Section since no related info in original FPD file. Developers need to handle it manually in the output DSC file. + b. If MSA file which is corresponds to module guid could not be found in currect workspace, tool will dump the module guid. + +7. Pyton Source + r767 \BaseTools\Source\Python\Fpd2Dsc + +27-September-2007 diff --git a/Tools/BaseTools/toolsetup.bat b/Tools/BaseTools/toolsetup.bat new file mode 100755 index 0000000000..f2a3558301 --- /dev/null +++ b/Tools/BaseTools/toolsetup.bat @@ -0,0 +1,132 @@ +@REM +@REM Copyright (c) 2006, Intel Corporation +@REM All rights reserved. This program and the accompanying materials +@REM are licensed and made available under the terms and conditions of the BSD License +@REM which accompanies this distribution. The full text of the license may be found at +@REM http://opensource.org/licenses/bsd-license.php +@REM +@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +@REM + +@echo off + +REM ############################################################## +REM # You should not have to modify anything below this line +REM # + +if /I "%1"=="-h" goto usage +if /I "%1"=="-help" goto usage +if /I "%1"=="--help" goto usage +if /I "%1"=="/h" goto usage +if /I "%1"=="/?" goto usage +if /I "%1"=="/help" goto usage + +if /I "%1"=="Reconfig" ( + if NOT "%2"=="" set EDK_TOOLS_PATH=%2 +) else ( + if NOT "%1"=="" set EDK_TOOLS_PATH=%1 +) + +REM +REM Check the required system environment variables +REM + +:setup_workspace +REM +REM check the EDK_TOOLS_PATH +REM +if not defined EDK_TOOLS_PATH goto no_tools_path +if exist %EDK_TOOLS_PATH% goto set_path +echo. +echo !!!WARNING!!! %EDK_TOOLS_PATH% doesn't exist. %WORKSPACE%\BaseTools will be used !!! +echo. + +:no_tools_path +if exist %WORKSPACE%\BaseTools ( + set EDK_TOOLS_PATH=%WORKSPACE%\BaseTools +) else ( + echo. + echo !!!WARNING!!! No tools path found. Please set EDK_TOOLS_PATH !!! + echo. + goto end +) + +:set_path +if defined WORKSPACE_TOOLS_PATH goto check_path +set PATH=%EDK_TOOLS_PATH%\Bin;%EDK_TOOLS_PATH%\Bin\Win32;%PATH% +set WORKSPACE_TOOLS_PATH=%EDK_TOOLS_PATH% +goto path_ok + +:check_path +if "%EDK_TOOLS_PATH%"=="%WORKSPACE_TOOLS_PATH%" goto path_ok +set PATH=%EDK_TOOLS_PATH%\Bin;%EDK_TOOLS_PATH%\Bin\Win32;%PATH% +set WORKSPACE_TOOLS_PATH=%EDK_TOOLS_PATH% +echo Resetting the PATH variable to include the EDK_TOOLS_PATH for this WORKSPACE + +:path_ok +echo PATH = %PATH% +echo. +echo WORKSPACE = %WORKSPACE% +echo EDK_TOOLS_PATH = %EDK_TOOLS_PATH% +echo. + +REM +REM copy *.template to %WORKSPACE%\Conf +REM +if NOT exist %WORKSPACE%\Conf ( + mkdir %WORKSPACE%\Conf +) else ( + if /I "%1"=="Reconfig" ( + echo. + echo Over-writing the files in the WORKSPACE\Conf directory + echo using the default template files + echo. + ) +) +if NOT exist %WORKSPACE%\Conf\FrameworkDatabase.db ( + echo copying ... FrameworkDatabase.template to %WORKSPACE%\Conf\FrameworkDatabase.db + copy %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul +) else ( + if /I "%1"=="Reconfig" copy /Y %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul +) +if NOT exist %WORKSPACE%\Conf\target.txt ( + echo copying ... target.template to %WORKSPACE%\Conf\target.txt + copy %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul +) else ( + if /I "%1"=="Reconfig" copy /Y %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul +) +if NOT exist %WORKSPACE%\Conf\tools_def.txt ( + echo copying ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt + copy %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul +) else ( + if /I "%1"=="Reconfig" copy /Y %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul +) +if NOT exist %WORKSPACE%\Conf\build_rule.txt ( + echo copying ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt + copy %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul +) else ( + if /I "%1"=="Reconfig" copy /Y %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul +) + +REM +REM copy XMLSchema to %EDK_TOOLS_PATH%\Conf\XMLSchema +REM +REM echo copying ... XMLSchema to %EDK_TOOLS_PATH%\Conf\XMLSchema +REM xcopy %WORKSPACE%\Conf\XMLSchema %EDK_TOOLS_PATH%\Conf\XMLSchema /S /I /D /F /Q > nul + +REM +REM Done!!! +REM +goto end + +:usage +echo. +echo "Usage: %0 [/? | /h | /help | -h | -help | --help] [Reconfig] [tools_path]" +echo. +echo tools_path Tools' path. EDK_TOOLS_PATH will be set to this path. +echo. + +:end +@echo on + -- cgit v1.2.3