From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] scripts: add script for generating customised build config Date: Tue, 19 Apr 2016 14:30:08 +0200 Message-ID: <1699866.SDLcjre87A@xps13> References: <1461061640-7611-1-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id CC01E2C5A for ; Tue, 19 Apr 2016 14:30:11 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id n3so26981987wmn.0 for ; Tue, 19 Apr 2016 05:30:11 -0700 (PDT) In-Reply-To: <1461061640-7611-1-git-send-email-bruce.richardson@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Bruce, Thanks for pushing this idea. 2016-04-19 11:27, Bruce Richardson: > This patch adds in the dpdk_config.py script file. It can be used > to generate custom build-time configurations for DPDK either manually on > the commandline or by calling it from other scripts. It takes as parameters > the base config template to use, and output directory to which the modified > configuration will be written. Other optional parameters are then taken > as y/n values which should be adjusted in the config file, and a special > -m flag is provided to override the default RTE_MACHINE setting in the > config template too. > > Example, to create a build configuration with extra non-default PMDs > enabled, and the kernel modules disabled: > > ./scripts/dpdk_config.py -b $RTE_TARGET -o $RTE_TARGET PMD_PCAP=y \ > IGB_UIO=n KNI_KMOD=n MLX4_PMD=y MLX5_PMD=y SZEDATA2=y \ > NFP_PMD=y BNX2X_PMD=y Would it be possible to use it without -b option to update a configuration? Why not name it scripts/configure.py with a symlink ./configure in the top directory? Should we be able to list every options for a "-b defconfig"? Would it be a good idea to manage dependencies checks in this script?