From 85b0a328d71300572a3c2e8b5b722c00ed0ac6e8 Mon Sep 17 00:00:00 2001 From: Jianfeng Tan Date: Thu, 13 Jun 2019 15:01:09 +0800 Subject: 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 IT-16521 --- dpdk/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dpdk') 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 $@ -- cgit 1.2.3-korg