What is the correct process to update the *.template files? 

These updates are required to process ACPI files with Xcode. 

Thanks,

Andrew Fish

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: [email protected]

~/work/BaseTools>svn diff --diff-cmd diff
Index: Conf/build_rule.template
===================================================================
--- Conf/build_rule.template    (revision 2567)
+++ Conf/build_rule.template    (working copy)
@@ -361,6 +361,12 @@
         "$(ASLPP)" $(ASLPP_FLAGS) $(INC) -I${s_path} 
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > 
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
         "$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} 
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
 
+    <Command.XCODE>
+        Trim --asl-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i -i 
$(INC_LIST) ${src}
+        "$(ASLPP)" $(ASLPP_FLAGS) $(INC) -I${s_path} 
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > 
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
+        Trim --source-code -l -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii 
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii 
+        "$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} 
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii
+
 [C-Code-File.AcpiTable]
     <InputFile>
         ?.c
Index: Conf/tools_def.template
===================================================================
--- Conf/tools_def.template     (revision 2567)
+++ Conf/tools_def.template     (working copy)
@@ -4726,9 +4726,10 @@
   DEBUG_XCLANG_X64_CC_FLAGS   = -ccc-host-triple x86_64-pc-win32-macho -c -g 
-O0  -Wall -Werror -include AutoGen.h -fno-stack-protector -fno-builtin 
-fshort-wchar -mdynamic-no-pic -Wno-empty-body -Wno-pointer-sign 
-Wno-unused-function -Wno-unused-value -Wno-missing-braces 
-Wno-tautological-compare -Wreturn-type -Wno-unused-variable 
-ftrap-function=undefined_behavior_has_been_optimized_away_by_clang
 RELEASE_XCLANG_X64_CC_FLAGS   = -ccc-host-triple x86_64-pc-win32-macho -c    
-Os  -Wall -Werror -include AutoGen.h -fno-stack-protector -fno-builtin 
-fshort-wchar -mdynamic-no-pic -Wno-empty-body -Wno-pointer-sign 
-Wno-unused-function -Wno-unused-value -Wno-missing-braces 
-Wno-tautological-compare -Wreturn-type -Wno-unused-variable 
-ftrap-function=undefined_behavior_has_been_optimized_away_by_clang
 *_XCLANG_*_ASLCC_FLAGS      = -x c -save-temps -g -O0 -fshort-wchar 
-fno-strict-aliasing -Wall -Werror -Wno-missing-braces -c -include AutoGen.h 
-mdynamic-no-pic
-*_XCLANG_*_ASLDLINK_FLAGS   = -e _main -preload -segalign 0x20  -pie -seg1addr 
0x240 -read_only_relocs suppress -map $(DEST_DIR_DEBUG)/$(BASE_NAME).map
+*_XCLANG_*_ASLDLINK_FLAGS   = -e _ReferenceAcpiTable -preload -segalign 0x20  
-pie -seg1addr 0x240 -read_only_relocs suppress -map 
$(DEST_DIR_DEBUG)/$(BASE_NAME).map
 *_XCLANG_*_ASLPP_FLAGS      = -x c -E 
 *_XCLANG_*_ASL_FLAGS        =
+*_XCLANG_*_ASL_OUTFLAGS     = DEF(IASL_OUTFLAGS)
 
 
####################################################################################
 #



------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel

Reply via email to