]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Conf/build_rule.template
BaseTools: Update nasm file build rule to support $(INC)
[mirror_edk2.git] / BaseTools / Conf / build_rule.template
index 3ab560603f42263fbaaf8b1dd765d4161df9086a..2a53d7ed63f9cfed4df812b917179fe8f32ca7f7 100755 (executable)
@@ -62,6 +62,7 @@
 #   $(BIN_DIR)          Common directory for executable files\r
 #   $(FV_DIR)           Directory to store flash image files\r
 #   $(INC)              Search path of current module\r
+#   $(NASM_INC)         Search nasm file path of current module\r
 #   $(INC_LIST)         A file containing search pathes of current module\r
 #   $(LIBS)             Static library files of current module\r
 #   $(<tool>_FLAGS)     Tools flags of current module\r
     <Command>\r
         "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i\r
         Trim --trim-long --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i\r
-        "$(NASM)" -I${s_path}(+) $(NASM_FLAGS) -o $dst ${d_path}(+)${s_base}.iii\r
+        "$(NASM)" -I${s_path}(+) $(NASM_INC) $(NASM_FLAGS) -o $dst ${d_path}(+)${s_base}.iii\r
 \r
 [Device-Tree-Source-File]\r
     <InputFile>\r