From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 9.mo3.mail-out.ovh.net ([87.98.184.141] helo=mo3.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T9xR1-0005ru-Tu for barebox@lists.infradead.org; Fri, 07 Sep 2012 12:13:20 +0000 Received: from mail91.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 03FEDFF875E for ; Fri, 7 Sep 2012 14:20:59 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 7 Sep 2012 14:13:27 +0200 Message-Id: <1347020017-12110-1-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <20120907120713.GQ20330@game.jcrosoft.org> References: <20120907120713.GQ20330@game.jcrosoft.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 01/11] defaultenv: enable glovalvar support To: barebox@lists.infradead.org This will allow to do not have 2 set of var for defaultenv and the new defaultenv-2. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/Kconfig | 1 + defaultenv/bin/init | 2 ++ 2 files changed, 3 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index f411719..8fdb2e0 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -577,6 +577,7 @@ config DEFAULT_ENVIRONMENT_GENERIC select CMD_CRC select CMD_CRC_CMP select CMD_AUTOMOUNT if HAVE_DEFAULT_ENVIRONMENT_NEW + select CMD_GLOBAL prompt "Default environment generic" help With this option barebox will use the generic default diff --git a/defaultenv/bin/init b/defaultenv/bin/init index f535e37..adb3c43 100644 --- a/defaultenv/bin/init +++ b/defaultenv/bin/init @@ -3,6 +3,8 @@ PATH=/env/bin export PATH +global hostname + . /env/config if [ -e /dev/nor0 -a -n "$nor_parts" ]; then addpart /dev/nor0 $nor_parts -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox