aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk/Makefile
diff options
context:
space:
mode:
authorJianfeng Tan <henry.tjf@antfin.com>2019-06-13 15:01:09 +0800
committerDaniel Pono Takamori <dtakamori@contractor.linuxfoundation.org>2019-06-27 11:57:30 -0700
commit85b0a328d71300572a3c2e8b5b722c00ed0ac6e8 (patch)
treef4bc8beb9569081705b404650f60c24be183031b /dpdk/Makefile
parentcecfc87fc706a6ac819aa213b368072fa011bcae (diff)
dpdk: automate make config
Users need two steps to compile DPDK: $ make config -C dpdk $ make -C dpdk We don't see the value for that. Add config as a dependency so that we can compile it with only one step: $ make -C dpdk Change-Id: I78bc728e904d969be9ef7575029eea9fda105bc6 Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com> IT-16521
Diffstat (limited to 'dpdk/Makefile')
-rw-r--r--dpdk/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/dpdk/Makefile b/dpdk/Makefile
index ddb4287..15204fa 100644
--- a/dpdk/Makefile
+++ b/dpdk/Makefile
@@ -155,9 +155,7 @@ $(B)/.config.ok: $(B)/.patch.ok $(B)/custom-config
.PHONY: config
config: $(B)/.config.ok
-$(B)/.build.ok: $(DPDK_SOURCE_FILES)
- @if [ ! -e $(B)/.config.ok ] ; then echo 'Please run "make config" \
- first' && false ; fi
+$(B)/.build.ok: $(DPDK_SOURCE_FILES) $(B)/.config.ok
@make $(DPDK_MAKE_ARGS) install
@cp $(I)/.config $(B)/.config
@touch $@