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 D2B60C60E for ; Thu, 30 Jul 2015 15:42:21 +0200 (CEST) Received: by wicmv11 with SMTP id mv11so21777397wic.0 for ; Thu, 30 Jul 2015 06:42:21 -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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=9A3g3B5cvZB/bmzpFVaN1t9Xvl5IPfxzpF4OnULJ+Uc=; b=Z5/QNOJKiqPHP9uI8DKuh5s2aq5UedUb3ZcNyMWYpAORe6BHVrgYpCO9tsOzhGJ7Rw hSY1pNYRDcvBCm/r6EhFvYO7AtrtLFfQ7/jWCVbEn0CJ2HWAkPdWCvcOgCm3YVhgIZjL dDWRTF0w0mlVfhqXj6Ir4fjOoQDiPI/EpJ3BjtIBGe28f1diAZLe7sZTdQ/FQz0t+q7O 1vsJd9e0+1Wz+LLMXHXIjO3VSdd+IiVjHBkHXOZfuF1jc62o286o/85j0F5hAoN5/eeq S73906/KOo9ImrPn29LHpk3yHxV9BCfAkROGj6dGQezPCD7kvF2unHscofmOI52k0X84 Q8ow== X-Gm-Message-State: ALoCoQkQmuPI/HVaTqd3I3aQ7xxoNjd9HMtc7o9ddY/3lTPxdyX1pUig7g8iZmHuppusJzwcdM2l X-Received: by 10.180.79.4 with SMTP id f4mr6649678wix.83.1438263741671; Thu, 30 Jul 2015 06:42:21 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.151.210]) by smtp.gmail.com with ESMTPSA id fa8sm3123835wib.14.2015.07.30.06.42.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 06:42:20 -0700 (PDT) From: Thomas Monjalon To: "Montorsi, Francesco" Date: Thu, 30 Jul 2015 15:41:05 +0200 Message-ID: <2025124.I4vGd0nnt1@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <3de835af894c404992e45f26bb3e0dd1@bilemail1.empirix.com> References: <43558cd25af0485cb5bf2589bf16904e@bilemail1.empirix.com> <1878577.oRiCv6NX9u@xps13> <3de835af894c404992e45f26bb3e0dd1@bilemail1.empirix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] how to compile kernel drivers only 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: Thu, 30 Jul 2015 13:42:22 -0000 Francesco, please reply below (easier to follow the thread). 2015-07-30 12:48, Montorsi, Francesco: > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > 2015-07-30 12:17, Montorsi, Francesco: > > > How can I avoid building any app like dump_cfg? > > > > In app/Makefile, you'll find the options to disable: > > DIRS-$(CONFIG_RTE_APP_TEST) += test > > DIRS-$(CONFIG_RTE_LIBRTE_ACL) += test-acl > > DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += test-pipeline > > DIRS-$(CONFIG_RTE_TEST_PMD) += test-pmd > > DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_test > > DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += proc_info > > My problem is that I have in app/Makefile: > > DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += dump_cfg > > So that I should put > > CONFIG_RTE_LIBRTE_EAL_LINUXAPP=n > > To disable dump_cfg application build. However, If I do so, the kernel drivers are not built at all and make just says: > > make T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc EXTRA_LDFLAGS="" --directory=dpdk-2.0.0 all > make[1]: Entering directory `/home/hammer/share/CSA-Hamachi-Sprint/HW-Accel/drivers/dpdk/dpdk-2.0.0' > == Build lib > == Build lib/librte_compat > SYMLINK-FILE include/rte_compat.h > == Build lib/librte_eal > == Build app > Build complete > > So that > CONFIG_RTE_LIBRTE_EAL_LINUXAPP=y > Seems to be a pre-requisite of kernel drivers... or am I missing something? You're right. You cannot build only kernel drivers. You are welcome to add a new config option to enable/disable apps.