diff mbox

[v2,1/1] linux: add server options for NFSD

Message ID 1436830463-90993-1-git-send-email-ryan.barnett@rockwellcollins.com
State Changes Requested
Headers show

Commit Message

Ryan Barnett July 13, 2015, 11:34 p.m. UTC
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 <ryan.barnett@rockwellcollins.com>
---
Test with qemu_x86_defconfig

Changes v1 -> v2:
  - Only enable CONFIG_NFSD (suggested by Arnout)
---
 linux/linux.mk | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ryan Barnett July 14, 2015, 1:29 p.m. UTC | #1
All,

On Mon, Jul 13, 2015 at 6:34 PM, Ryan Barnett
<ryan.barnett@rockwellcollins.com> wrote:
> 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 <ryan.barnett@rockwellcollins.com>
> ---
> Test with qemu_x86_defconfig
>
> Changes v1 -> v2:
>   - Only enable CONFIG_NFSD (suggested by Arnout)
> ---
>  linux/linux.mk | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/linux/linux.mk b/linux/linux.mk
> index b602a04..90396e6 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -229,6 +229,8 @@ 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))

I need to add to add the following line:

$(call KCONFIG_ENABLE_OPT,CONFIG_NFSD_V3,$(@D)/.config))

In my hesitation to test yesterday - I didn't do a clean build and was
caught by having a kernel already having the correct option enabled.

I will be sending a v3 here shortly.

>         $(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
>                 $(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config))
>  endef

Thanks,
-Ryan
diff mbox

Patch

diff --git a/linux/linux.mk b/linux/linux.mk
index b602a04..90396e6 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -229,6 +229,8 @@  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))
 	$(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
 		$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config))
 endef