summaryrefslogtreecommitdiff
path: root/Tools/Conf/BuildMacro.xml
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 10:25:16 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 10:25:16 +0000
commitfebc64336241fc400af7d0bcbf01b2f35925cf96 (patch)
tree1d2b138fea00f835be4cd3db909b02a0aaa9f247 /Tools/Conf/BuildMacro.xml
parentfb5a3ed8c728f692d111633d478b31e0b5e2942c (diff)
downloadedk2-febc64336241fc400af7d0bcbf01b2f35925cf96.zip
edk2-febc64336241fc400af7d0bcbf01b2f35925cf96.tar.gz
edk2-febc64336241fc400af7d0bcbf01b2f35925cf96.tar.bz2
Remove USER_DEFINED in IncludePkgHeader in spd files as it does not make sense to specify package include header file for a custom build type module. Package creator has no a priori knowledge about what header file will be needed by the USER_DEFINED module customers created in dependent package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2316 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Conf/BuildMacro.xml')
-rw-r--r--Tools/Conf/BuildMacro.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/Tools/Conf/BuildMacro.xml b/Tools/Conf/BuildMacro.xml
index 71c8f9b..71fd062 100644
--- a/Tools/Conf/BuildMacro.xml
+++ b/Tools/Conf/BuildMacro.xml
@@ -930,7 +930,41 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</OnDependency>
</sequential>
</macrodef>
+ <!--
+ Build ACPI Bin File
+ -->
+ <macrodef name="Build_ACPIBIN">
+ <attribute name="FILEPATH"/>
+ <attribute name="FILENAME"/>
+ <attribute name="FILEEXT" default="bin"/>
+
+ <element name="EXTRA.INC" optional="yes"/>
+ <element name="EXTRA.ARG" optional="yes"/>
+
+ <sequential>
+ <mkdir dir="${DEST_DIR_OUTPUT}"/>
+
+ <OnDependency>
+ <sourcefiles>
+ <file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
+ </sourcefiles>
+ <targetfiles>
+ <file name="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"/>
+ </targetfiles>
+
+ <sequential>
+ <copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}" tofile="${DEST_DIR_OUTPUT}/@{FILENAME}.acpi" />
+
+ <exec executable="attrib">
+ <arg line="-r ${DEST_DIR_OUTPUT}/@{FILENAME}.acpi"/>
+ </exec>
+ <EFI_SECTION_RAW FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="acpi"/>
+ </sequential>
+ </OnDependency>
+ </sequential>
+ </macrodef>
+
<!--
DUMMY - for skipping the source file which should not be built
-->