diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-01-11 08:50:39 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2016-01-11 08:50:39 +0000 |
commit | 3a02a87f9f4dd5ba6741e64e20e5ab67fe4f303b (patch) | |
tree | 9ca79dfaf563cf9e408f53b3652c551993b606e6 /BaseTools/Conf | |
parent | 819a2394f17f6e4e97893481e4acb95401e7b380 (diff) | |
download | edk2-3a02a87f9f4dd5ba6741e64e20e5ab67fe4f303b.tar.gz edk2-3a02a87f9f4dd5ba6741e64e20e5ab67fe4f303b.tar.bz2 edk2-3a02a87f9f4dd5ba6741e64e20e5ab67fe4f303b.zip |
BaseTools AARCH64: add separate GCC build rule for XIP objects
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
Diffstat (limited to 'BaseTools/Conf')
-rw-r--r-- | BaseTools/Conf/build_rule.template | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 3637ef4741..91bcc1828c 100644 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -161,6 +161,19 @@ "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}
"$(SYMRENAME)" $(SYMRENAME_FLAGS) ${dst}
+[C-Code-File.BASE.AARCH64,C-Code-File.SEC.AARCH64,C-Code-File.PEI_CORE.AARCH64,C-Code-File.PEIM.AARCH64]
+ <InputFile>
+ ?.c
+
+ <ExtraDependency>
+ $(MAKE_FILE)
+
+ <OutputFile>
+ $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
+
+ <Command.GCC>
+ "$(CC)" $(CC_FLAGS) $(CC_XIPFLAGS) -o ${dst} $(INC) ${src}
+
[C-Header-File]
<InputFile>
*.h, *.H
|