From patchwork Tue Jul 14 15:02:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Barnett X-Patchwork-Id: 495115 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id D067F140770 for ; Wed, 15 Jul 2015 01:03:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E8A6533A28; Tue, 14 Jul 2015 15:03:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dUy5KCcGzDU9; Tue, 14 Jul 2015 15:03:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9FB3232259; Tue, 14 Jul 2015 15:03:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EAB631C1FC8 for ; Tue, 14 Jul 2015 15:03:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E6E6C92178 for ; Tue, 14 Jul 2015 15:03:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YrGmLZGRmuOQ for ; Tue, 14 Jul 2015 15:03:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ch3vs01.rockwellcollins.com (ch3vs01.rockwellcollins.com [205.175.226.27]) by whitealder.osuosl.org (Postfix) with ESMTPS id E3FF692175 for ; Tue, 14 Jul 2015 15:02:59 +0000 (UTC) Received: from ofwch3n02.rockwellcollins.com (HELO ciulimr01.rockwellcollins.com) ([205.175.226.14]) by ch3vs01.rockwellcollins.com with ESMTP; 14 Jul 2015 10:02:59 -0500 X-Received: from localhost.localdomain (crp23381.rockwellcollins.com [131.199.101.196]) by ciulimr01.rockwellcollins.com (Postfix) with ESMTP id ED5C360117; Tue, 14 Jul 2015 10:02:58 -0500 (CDT) From: Ryan Barnett To: buildroot@buildroot.org Date: Tue, 14 Jul 2015 10:02:56 -0500 Message-Id: <1436886176-118956-1-git-send-email-ryan.barnett@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 Cc: Ryan Barnett Subject: [Buildroot] [PATCH v3 1/1] linux: add config options for nfs-utils X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When nfs-utils packages is selected, automatically enable the kernel options for NFSD. This will allow for an NFS server to work by only adding /etc/exports to the filesystem. Signed-off-by: Ryan Barnett --- Test with qemu_x86_defconfig Changes v2 -> v3: - Add CONFIG_NFSD_V3 option as well to really support only v3 of NFS Changes v1 -> v2: - Only enable CONFIG_NFSD (suggested by Arnout) --- linux/linux.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux/linux.mk b/linux/linux.mk index 8c535f3..31e1f01 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -217,6 +217,9 @@ define LINUX_KCONFIG_FIXUP_CMDS $(if $(BR2_PACKAGE_XTABLES_ADDONS), $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK,$(@D)/.config) $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK,$(@D)/.config)) + $(if $(BR2_PACKAGE_NFS_UTILS), + $(call KCONFIG_ENABLE_OPT,CONFIG_NFSD,$(@D)/.config) + $(call KCONFIG_ENABLE_OPT,CONFIG_NFSD_V3,$(@D)/.config)) $(if $(BR2_LINUX_KERNEL_APPENDED_DTB), $(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config)) endef