From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 4.mo1.mail-out.ovh.net ([46.105.76.26] helo=mo1.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5xQz-0006Mf-CS for barebox@lists.infradead.org; Thu, 14 Feb 2013 11:57:03 +0000 Received: from mail610.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with SMTP id 99BC6FF9122 for ; Thu, 14 Feb 2013 13:12:24 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Thu, 14 Feb 2013 12:56:50 +0100 Message-Id: <1360843011-7807-2-git-send-email-eric@eukrea.com> In-Reply-To: <1360843011-7807-1-git-send-email-eric@eukrea.com> References: <20130214121716.1f3ef4f7@e6520eb> <1360843011-7807-1-git-send-email-eric@eukrea.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/3] imx23-olinuxino: swith to generic peristent env To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQogYXJjaC9h cm0vYm9hcmRzL2lteDIzMy1vbGludXhpbm8vaW14MjMtb2xpbnV4aW5vLmMgfCA0NCArLS0tLS0t LS0tLS0tLS0tLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgMiBpbnNlcnRpb25zKCspLCA0MiBkZWxl dGlvbnMoLSkKCmRpZmYgLS1naXQgYS9hcmNoL2FybS9ib2FyZHMvaW14MjMzLW9saW51eGluby9p bXgyMy1vbGludXhpbm8uYyBiL2FyY2gvYXJtL2JvYXJkcy9pbXgyMzMtb2xpbnV4aW5vL2lteDIz LW9saW51eGluby5jCmluZGV4I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CXJjID0gcmVnaXN0ZXJf cGVyc2lzdGVudF9lbnZpcm9ubWVudCgiZGlzazAiLCAxKTsKIAlpZiAocmMgIT0gMCkKLQkJcHJp bnRmKCJDYW5ub3QgY3JlYXRlIHRoZSAnZW52MCcgcGVyc2lzdGFudCAiCisJCXByaW50ZigiQ2Fu bm90IGNyZWF0ZSB0aGUgJ2VudjAnIHBlcnNpc3RlbnQgIgogCQkJICJlbnZpcm9ubWVudCBzdG9y YWdlICglZClcbiIsIHJjKTsKIAogCXJldHVybiAwOwotLSAKMS43LjExLjcKCgpfX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpiYXJlYm94IG1haWxpbmcgbGlz dApiYXJlYm94QGxpc3RzLmluZnJhZGVhZC5vcmcKaHR0cDovL2xpc3RzLmluZnJhZGVhZC5vcmcv bWFpbG1hbi9saXN0aW5mby9iYXJlYm94Cg==