From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 8.mo4.mail-out.ovh.net ([188.165.33.112] helo=mo4.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U7jLE-0001Fo-Hl for barebox@lists.infradead.org; Tue, 19 Feb 2013 09:18:25 +0000 Received: from mail433.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo4.mail-out.ovh.net (Postfix) with SMTP id E016E104FB92 for ; Tue, 19 Feb 2013 10:28:03 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Tue, 19 Feb 2013 10:17:24 +0100 Message-Id: <1361265445-11731-2-git-send-email-eric@eukrea.com> In-Reply-To: <1361265445-11731-1-git-send-email-eric@eukrea.com> References: <20130214193135.GA1906@pengutronix.de> <1361265445-11731-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 v4 2/3] imx23-olinuxino: swith to generic peristent env To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQp2NDogcmVu YW1lIGZ1bmN0aW9uIGFuZCBtb3ZlIHRvIGVudmZzLmgKCiBhcmNoL2FybS9ib2FyZHMvaW14MjMz LW9saW51eGluby9pbXgyMy1vbGludXhpbm8uYyB8IDQ1ICsrLS0tLS0tLS0tLS0tLS0tLS0tLS0K IDEgZmlsZSBjaGFuZ2VkLCAzIGluc2VydGlvbnMoKyksIDQyIGRlbGV0aW9ucygtKQoKZGlmZiAt LWdpdCBhL2FyY2gvYXJtL2JvYXJkcy9pbXgyMzMtb2xpbnV4aW5vL2lteDIzLW9saW51eGluby5j IGIvYXJjaC9hcm0vYm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