From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id 121DE312 for ; Fri, 9 May 2014 12:32:13 +0200 (CEST) Received: by mail-wi0-f175.google.com with SMTP id f8so1093584wiw.2 for ; Fri, 09 May 2014 03:32:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vN8xrdAItqZg/Bh5LdNXgwcDqUlpz2zQrIUiDBm2VxA=; b=SRrlRwM8EW3ucaj+jo/0KHUGbvlZvxJh5rNkyWP2KWFifgnM8osyhkOG0cKP0kEESb kT8hgY+uilOavMt4kkInZGKeAwSXzkpx907y5BEzkAFYv8Yec7FxNhQW3GONGoeIJ/pr oQOr6ZQIYxg10bSKDP+dy/6ZQsIy9C+qyZ5P9hUJLyI0lKyF8Oyx468CH2WhmsmjB6Uf 3QVVpI10Mtu1LDas4xqQ8gBXwqT2LEw8GYWRE84FlyVtSVFJk4g/aSjw/GRHlFPc2EQ3 nuKql65LRLbIJs5OmzhWs8+jdBubmDW6wgFD0na2yoTTqVa4x3Aty5z1kwkkvaysyRZD yeaw== X-Gm-Message-State: ALoCoQnV7WR7BgvxHuNqicGtLZ/xcbZ5/vcmxNDouXtra/hWPZihm6McXoWehtF3cZVLFr+9LmCY X-Received: by 10.180.85.10 with SMTP id d10mr2897390wiz.0.1399631540398; Fri, 09 May 2014 03:32:20 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id by1sm4936710wjc.26.2014.05.09.03.32.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 May 2014 03:32:18 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Fri, 9 May 2014 12:32:04 +0200 Message-Id: <1399631530-24956-1-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.9.2 Subject: [dpdk-dev] [PATCH v2 0/6] examples: add a new makefile to build all examples X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2014 10:32:14 -0000 This patch series adds a makefile to build all examples supported by the configuration. It helps to check that all examples compile after a dpdk modification. After applying the patches, it is possible to build all examples for given targets, given the installation directory: # first, install the x86_64-default-linuxapp-gcc in # ${RTE_SDK}/x86_64-default-linuxapp-gcc directory user@droids:~/dpdk.org$ make install T=x86_64-default-linuxapp-gcc # build examples for this new installation in # ${RTE_SDK}/examples directory user@droids:~/dpdk.org$ make examples T=x86_64-default-linuxapp-gcc Or directly from examples directory: user@droids:~/dpdk.org$ cd examples user@droids:~/dpdk.org/examples$ make RTE_SDK=${PWD}/.. \ RTE_TARGET=x86_64-default-linuxapp-gcc Changes included in v2: - do not build kni example if CONFIG_RTE_LIBRTE_KNI is not set - fix rte.extsubdir.mk when there are several levels of subdirectories - allow to build examples directly from dpdk root directory - explain in commit logs that it requires an install directory Olivier Matz (6): mk: introduce rte.extsubdir.mk examples: use rte.extsubdir.mk to process subdirectories examples: add a makefile to build all examples examples: fix qos_sched makefile examples: fix netmap_compat example mk: add "make examples" target in root makefile doc/build-sdk-quick.txt | 14 +++-- examples/Makefile | 68 ++++++++++++++++++++ examples/l2fwd-ivshmem/Makefile | 9 +-- examples/multi_process/Makefile | 16 +++-- examples/multi_process/client_server_mp/Makefile | 15 ++--- examples/netmap_compat/bridge/Makefile | 5 +- examples/qos_sched/Makefile | 2 - examples/quota_watermark/Makefile | 12 +--- mk/rte.extsubdir.mk | 53 ++++++++++++++++ mk/rte.sdkexamples.mk | 79 ++++++++++++++++++++++++ mk/rte.sdkroot.mk | 4 ++ 11 files changed, 233 insertions(+), 44 deletions(-) create mode 100644 examples/Makefile create mode 100644 mk/rte.extsubdir.mk create mode 100644 mk/rte.sdkexamples.mk -- 1.9.2