]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools AARCH64: add separate GCC build rule for XIP objects
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 11 Jan 2016 08:50:39 +0000 (08:50 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Mon, 11 Jan 2016 08:50:39 +0000 (08:50 +0000)
This introduces a special .c to .obj build rule for GCC/AARCH64 that
takes into account additional compiler flags that have been specified
via *_*_*_CC_XIPFLAGS. These will be passed after (and in addition to)
the ordinary CC_FLAGS.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19637 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Conf/build_rule.template

index 3637ef47414eb6a8c489ba8a3c8b2743417b8399..91bcc1828cb5604fa04f29cc43b81a5ae69170ee 100644 (file)
         "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}\r
         "$(SYMRENAME)" $(SYMRENAME_FLAGS) ${dst}\r
 \r
+[C-Code-File.BASE.AARCH64,C-Code-File.SEC.AARCH64,C-Code-File.PEI_CORE.AARCH64,C-Code-File.PEIM.AARCH64]\r
+    <InputFile>\r
+        ?.c\r
+\r
+    <ExtraDependency>\r
+        $(MAKE_FILE)\r
+\r
+    <OutputFile>\r
+        $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj\r
+\r
+    <Command.GCC>\r
+        "$(CC)" $(CC_FLAGS) $(CC_XIPFLAGS) -o ${dst} $(INC) ${src}\r
+\r
 [C-Header-File]\r
     <InputFile>\r
         *.h, *.H\r