aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManish Pandey <manish.pandey2@arm.com>2019-01-21 14:50:10 +0000
committerManish Pandey <manish.pandey2@arm.com>2019-01-24 12:06:08 +0000
commit7e94a699ddd0b16a281fe65b08c7fc0bf29d9e91 (patch)
tree0aad8ccfb85349237187b848e598492ffe4da58e /Makefile
parentae478c26e53993b18af5b0a79220ad2d4bb5ea32 (diff)
downloadtrusted-firmware-a-7e94a699ddd0b16a281fe65b08c7fc0bf29d9e91.tar.gz
Make device tree pre-processing similar to U-boot/Linux
Following changes are done to make DT pre-processing similar to that of U-boot/Linux kernel. 1. Creating seperate CPPFLAGS for DT preprocessing so that compiler options specific to it can be accommodated. e.g: "-undef" compiler option avoids replacing "linux" string(used in device trees) with "1" as "linux" is a pre-defined macro in gnu99 standard. 2. Replace CPP with PP for DT pre-processing, as CPP in U-boot/Linux is exported as "${CROSS_COMPILE}gcc -E" while in TF-A it is exported as "${CROSS_COMPILE}cpp". Change-Id: If4c61a249d51614d9f53ae30b602036d50c02349 Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ad1ba152fd..4e606a2ca9 100644
--- a/Makefile
+++ b/Makefile
@@ -242,6 +242,7 @@ TF_LDFLAGS += --gc-sections
TF_LDFLAGS += $(TF_LDFLAGS_$(ARCH))
DTC_FLAGS += -I dts -O dtb
+DTC_CPPFLAGS += -nostdinc -Iinclude -undef -x assembler-with-cpp
################################################################################
# Common sources and include directories