From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 13.mo1.mail-out.ovh.net ([178.33.253.128] helo=mo1.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5zDK-0006Dv-RD for barebox@lists.infradead.org; Thu, 14 Feb 2013 13:51:04 +0000 Received: from mail610.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with SMTP id 695C2FFB2C8 for ; Thu, 14 Feb 2013 15:06:26 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Thu, 14 Feb 2013 14:50:51 +0100 Message-Id: <1360849851-8321-1-git-send-email-eric@eukrea.com> In-Reply-To: <1360848017-8084-1-git-send-email-eric@eukrea.com> References: <1360848017-8084-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 v3] falconwing: switch to generic peristent env To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQp2MzogYWxz byBmaXggdGhlIHR5cG8gaW4gdGhlIHByaW50Zgp2MjogZml4IHR5cG8gaW4gcGVyc2lzdGVudAoK IGFyY2gvYXJtL2JvYXJkcy9jaHVtYnlfZmFsY29ud2luZy9mYWxjb253aW5nLmMgfCA0MCArKy0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKSwg MzggZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvYXJjaC9hcm0vYm9hcmRzL2NodW1ieV9mYWxj b253aW5nL2ZhbGNvbndpbmcuYyBiL2FyY2gvYXJtL2JvYXJ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