From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TF2iZ-0005wC-QX for ptxdist@pengutronix.de; Fri, 21 Sep 2012 14:52:27 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TF2iZ-0007jf-Pq for ptxdist@pengutronix.de; Fri, 21 Sep 2012 14:52:27 +0200 Date: Fri, 21 Sep 2012 14:52:27 +0200 From: Michael Olbrich Message-ID: <20120921125227.GM6837@pengutronix.de> References: <1347635326.3679.22.camel@mars> <1347870570.3792.6.camel@mars> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1347870570.3792.6.camel@mars> Subject: Re: [ptxdist] [PATCH][v2] rootfs: add choice to link resolv.conf to /proc/net/pnp Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Mon, Sep 17, 2012 at 10:29:30AM +0200, Christoph Fritz wrote: > > Signed-off-by: Christoph Fritz Applied. Michael > --- > v2: > -change PTXCONF_ROOTFS_RESOLV to > PTXCONF_ROOTFS_RESOLV_FILE in rootfs.make too > --- > rules/rootfs.in | 27 ++++++++++++++++++++++----- > rules/rootfs.make | 5 ++++- > 2 files changed, 26 insertions(+), 6 deletions(-) > > diff --git a/rules/rootfs.in b/rules/rootfs.in > index 350f0c2..3c3765d 100644 > --- a/rules/rootfs.in > +++ b/rules/rootfs.in > @@ -390,12 +390,29 @@ config ROOTFS_PROTOCOLS > If enabled, it installs the "./projectroot/etc/protocols" file if > present, else a generic one from the ptxdist directory. > > -config ROOTFS_RESOLV > - bool > +choice > prompt "install /etc/resolv.conf" > - help > - If enabled, it installs the "./projectroot/etc/resolv.conf" file if > - present, else a generic one from the ptxdist directory. > + default ROOTFS_RESOLV_FILE > + > + config ROOTFS_RESOLV_FILE > + bool > + prompt "as generic" > + help > + If enabled, it installs the "./projectroot/etc/resolv.conf" file if > + present, else a generic one from the ptxdist directory. > + > + config ROOTFS_RESOLV_LINK > + bool > + prompt "as link" > + help > + If enabled, it installs /etc/resolv.conf as a link to /proc/net/pnp. > + > + config ROOTFS_RESOLV_NONE > + bool > + prompt "not" > + help > + If enabled, no /etc/resolv.conf will be install. > +endchoice > > config ROOTFS_SERVICES > bool > diff --git a/rules/rootfs.make b/rules/rootfs.make > index 8306c53..c60b840 100644 > --- a/rules/rootfs.make > +++ b/rules/rootfs.make > @@ -215,7 +215,7 @@ endif > ifdef PTXCONF_ROOTFS_PROTOCOLS > @$(call install_alternative, rootfs, 0, 0, 0644, /etc/protocols) > endif > -ifdef PTXCONF_ROOTFS_RESOLV > +ifdef PTXCONF_ROOTFS_RESOLV_FILE > @$(call install_alternative, rootfs, 0, 0, 0644, /etc/resolv.conf) > # # replace either by PTXCONF_BOARDSETUP_GATEWAY or nothing if not defined > ifneq ($(PTXCONF_BOARDSETUP_GATEWAY),) > @@ -226,6 +226,9 @@ else > @$(call install_replace, rootfs, /etc/resolv.conf, @NAMESERVER_LINE@, "") > endif > endif > +ifdef PTXCONF_ROOTFS_RESOLV_LINK > + @$(call install_link, rootfs, /proc/net/pnp, /etc/resolv.conf) > +endif > ifdef PTXCONF_ROOTFS_SERVICES > @$(call install_alternative, rootfs, 0, 0, 0644, /etc/services) > endif > -- > 1.7.2.5 > > > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de