Add dependency for RealAsm file build rules and Use the module name in place of macro...
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 10 Jan 2007 03:00:37 +0000 (03:00 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 10 Jan 2007 03:00:37 +0000 (03:00 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2205 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/EdkNt32Pkg/Dxe/WinNtThunk/Cpu/Cpu.c
edk2/EdkNt32Pkg/Dxe/WinNtThunk/Cpu/CpuDriver.h
edk2/Tools/Conf/BuildMacro.xml

index 3d4be68..05a2eeb 100644 (file)
@@ -651,7 +651,7 @@ Returns:
       //\r
       // Initialize strings to HII database\r
       //\r
-      PackageList = PreparePackages (1, &gEfiProcessorProducerGuid, STRING_ARRAY_NAME);\r
+      PackageList = PreparePackages (1, &gEfiProcessorProducerGuid, CpuStrings);\r
 \r
       Status      = Hii->NewPack (Hii, PackageList, &StringHandle);\r
       ASSERT (!EFI_ERROR (Status));\r
index e5b952f..c9f04e1 100644 (file)
@@ -24,7 +24,7 @@ Abstract:
 \r
 \r
 \r
-extern UINT8  STRING_ARRAY_NAME[];\r
+extern UINT8  CpuStrings[];\r
 \r
 //\r
 // Internal Data Structures\r
index 0442b05..a673d00 100644 (file)
@@ -785,14 +785,24 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <element name="EXTRA.ARG" optional="yes"/>\r
     \r
     <sequential>\r
-      <!-- Lack Dependency Check -->\r
-      <exec dir="${DEST_DIR_OUTPUT}" executable="${ASM}" failonerror="true">\r
-        <arg line="/nologo /omf ${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT} /Bl${ASMLINK} ${ASMLINK_FLAGS}"/>\r
-      </exec>\r
-      <concat destfile="${DEST_DIR_OUTPUT}/@{FILENAME}.cat" binary="yes">\r
-        <filelist dir="${MODULE_DIR}" files="Blank2.pad"/>\r
-        <filelist dir="${DEST_DIR_OUTPUT}" files="@{FILENAME}.com"/>\r
-      </concat>\r
+      <OnDependency>\r
+        <sourcefiles>\r
+          <file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>\r
+        </sourcefiles>\r
+        <targetfiles>\r
+          <file name="${DEST_DIR_OUTPUT}/@{FILENAME}.cat"/>\r
+        </targetfiles>\r
+  \r
+        <sequential>\r
+          <exec dir="${DEST_DIR_OUTPUT}" executable="${ASM}" failonerror="true">\r
+            <arg line="/nologo /omf ${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT} /Bl${ASMLINK} ${ASMLINK_FLAGS}"/>\r
+          </exec>\r
+          <concat destfile="${DEST_DIR_OUTPUT}/@{FILENAME}.cat" binary="yes">\r
+            <filelist dir="${MODULE_DIR}" files="Blank2.pad"/>\r
+            <filelist dir="${DEST_DIR_OUTPUT}" files="@{FILENAME}.com"/>\r
+          </concat>\r
+        </sequential>\r
+      </OnDependency>\r
     </sequential>\r
   </macrodef>\r
 \r