From patchwork Fri Mar 13 23:35:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Waugh X-Patchwork-Id: 450379 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3DCE714009B for ; Mon, 16 Mar 2015 15:15:57 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C080F2803F3; Mon, 16 Mar 2015 05:15:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 58B7C2803EE for ; Mon, 16 Mar 2015 05:15:14 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .bethesignal. - helo: .mail-pa0-f47.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 16 Mar 2015 05:15:13 +0100 (CET) Received: by padcy3 with SMTP id cy3so52443696pad.3 for ; Sun, 15 Mar 2015 21:15:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=yEGcytfX3v7IkfUzZV7UEgAykNOeTSI/1M+bXxn7/qw=; b=CL9BEJbC6l+8/AXd6VmoBY0caZ5L0qyrKE1YN30ZtMnWFFKx9S6tmVBs0cjk24Anfl AE94+2S21rBr19WPqVNYp61bv/ai8yeAl1jZoCiEPaoXC3nToHDSu7aAsKqtW+ux7osa olzVwY5IWTFMCpGyOuXptkkkgcIqXhTKZeDdP0+HrA1msrbJWkzIR2XHjhjzztV5ss+k 0n5GVlxV1LnNHX7sGOhu0I2XeKliRRtWsRZrUIwVQ77D6JEi/ep8Ojiz0SrThuyhH16Q 8eYEzxXHAE/3J5YugHL5LM8khv1BEtJnwg0pOWFFntwTiDMmnFHHsYi/ryKveHwNdgBG ttmQ== X-Gm-Message-State: ALoCoQkOeOaE8++2rHbh6IkMONlKCyXDBLphZ3W2KnKMSeihV81RGhhgRsSizVYUbd9yfhP6EJ7Y X-Received: by 10.66.158.66 with SMTP id ws2mr131912819pab.37.1426479335102; Sun, 15 Mar 2015 21:15:35 -0700 (PDT) Received: from ubuntu (ppp121-44-32-87.lns20.syd4.internode.on.net. [121.44.32.87]) by mx.google.com with ESMTPSA id z4sm14627054pdi.90.2015.03.15.21.15.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 15 Mar 2015 21:15:34 -0700 (PDT) Date: Sat, 14 Mar 2015 10:35:12 +1100 From: Jeff Waugh To: openwrt-devel@lists.openwrt.org Message-ID: <20150313233512.GA4157@ubuntu> References: <5505E270.2080703@openwrt.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5505E270.2080703@openwrt.org> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [OpenWrt-Devel] [PATCH] kernel: Support kernel options required by systemd X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" (John: This patch takes into account r44765, but moves the FHANDLE config stanza to a more understandable position in the file.) These are all likely to be widely useful in this modern age, but my interest is primarily in systemd support. :-) c.f. http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild?&view=markup#l118 Adapted from a patch by Adam Porter. Signed-off-by: Jeff Waugh --- config/Config-kernel.in | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 34e07bd..ae5b3d5 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -115,6 +115,18 @@ config KERNEL_DIRECT_IO bool "Compile the kernel with direct IO support" default n +config KERNEL_FHANDLE + bool "Compile the kernel with support for fhandle syscalls" + default n + +config KERNEL_FANOTIFY + bool "Compile the kernel with modern file notification support" + default n + +config KERNEL_BLK_DEV_BSG + bool "Compile the kernel with SCSI generic v4 support for any block device" + default n + config KERNEL_MAGIC_SYSRQ bool "Compile the kernel with SysRq support" default y @@ -164,6 +176,22 @@ config USE_SPARSE bool "Enable sparse check during kernel build" default n +config KERNEL_DEVTMPFS + bool "Compile the kernel with device tmpfs enabled" + default n + help + devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates + devices nodes for all registered devices ti simplify boot, but leaves more + complex tasks to userspace (e.g. udev). + +if KERNEL_DEVTMPFS + + config KERNEL_DEVTMPFS_MOUNT + bool "Automatically mount devtmpfs after root filesystem is mounted" + default n + +endif + # # CGROUP support symbols # @@ -481,9 +509,3 @@ config KERNEL_SECCOMP_FILTER default n help Build kernel with support for seccomp BPF programs. - -config KERNEL_FHANDLE - bool "Enable open by fhandle syscalls" - default n - help - Build kernel with support for open by fhandle syscalls