]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/tools_def: use separate PP definition for DTC
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 27 Feb 2018 17:47:06 +0000 (17:47 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 28 Feb 2018 08:11:48 +0000 (08:11 +0000)
commita68749f39a2e04ef68e5656b7b72fca25a2e23dc
treea66618af42e606ed959948239acdfbeb469a3dfd
parentd429d00f97eace52c94af73088f1b61413405bbf
BaseTools/tools_def: use separate PP definition for DTC

Clang's preprocessor behaves differently from GCC's, and produces
intermediate device tree source that still contains #pragma pack()
and other directives that the device tree compiler chokes on.

For assembling device tree sources, it matters very little which
preprocessor is being used, so let's just use GNU CPP explicitly.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Conf/build_rule.template
BaseTools/Conf/tools_def.template