summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIntel <intel.com>2013-11-08 03:00:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-11-19 18:23:24 +0100
commit63baec8781f1053842c7d0ef0ce533bbb03dd022 (patch)
tree8663e53a1753c6fcd2bcfbfe7fbfe9f164125887 /mk
parentac330305244d6842704082d6d0231b73526372a9 (diff)
downloaddpdk-63baec8781f1053842c7d0ef0ce533bbb03dd022.zip
dpdk-63baec8781f1053842c7d0ef0ce533bbb03dd022.tar.gz
dpdk-63baec8781f1053842c7d0ef0ce533bbb03dd022.tar.xz
mk: always preprocess template config file
Signed-off-by: Intel
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.sdkconfig.mk9
1 files changed, 3 insertions, 6 deletions
diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk
index ace65b0..552ba69 100644
--- a/mk/rte.sdkconfig.mk
+++ b/mk/rte.sdkconfig.mk
@@ -54,12 +54,9 @@ else
$(RTE_OUTPUT)/.config: $(RTE_CONFIG_TEMPLATE) FORCE
@[ -d $(RTE_OUTPUT) ] || mkdir -p $(RTE_OUTPUT)
$(Q)if [ "$(RTE_CONFIG_TEMPLATE)" != "" -a -f "$(RTE_CONFIG_TEMPLATE)" ]; then \
- if grep -q '#include' $(RTE_CONFIG_TEMPLATE) ; then \
- $(CPP) -undef -C -P -x assembler-with-cpp -fdirectives-only \
- -o $(RTE_OUTPUT)/.config_tmp $(RTE_CONFIG_TEMPLATE) ; \
- else \
- cp $(RTE_CONFIG_TEMPLATE) $(RTE_OUTPUT)/.config_tmp ; \
- fi ; \
+ $(CPP) -undef -P -x assembler-with-cpp \
+ -fdirectives-only -ffreestanding \
+ -o $(RTE_OUTPUT)/.config_tmp $(RTE_CONFIG_TEMPLATE) ; \
if ! cmp -s $(RTE_OUTPUT)/.config_tmp $(RTE_OUTPUT)/.config; then \
cp $(RTE_OUTPUT)/.config_tmp $(RTE_OUTPUT)/.config ; \
fi ; \