From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 9.mo1.mail-out.ovh.net ([178.32.108.172] helo=mo1.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5yjk-0003F5-Al for barebox@lists.infradead.org; Thu, 14 Feb 2013 13:20:29 +0000 Received: from mail610.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with SMTP id C62E1FFB161 for ; Thu, 14 Feb 2013 14:35:50 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Thu, 14 Feb 2013 14:20:17 +0100 Message-Id: <1360848017-8084-1-git-send-email-eric@eukrea.com> In-Reply-To: <201302141309.10776.jbe@pengutronix.de> References: <201302141309.10776.jbe@pengutronix.de> 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 v2] falconwing: switch to generic peristent env To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQp2MjogZml4 IHR5cG8gb24gcGVyc2lzdGVudAoKIGFyY2gvYXJtL2JvYXJkcy9jaHVtYnlfZmFsY29ud2luZy9m YWxjb253aW5nLmMgfCAzOCArLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5n ZWQsIDEgaW5zZXJ0aW9uKCspLCAzNyBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9hcmNoL2Fy bS9ib2FyZHMvY2h1bWJ5X2ZhbGNvbndpbmcvZmFsY29ud2luZy5jIGIvYXJjaC9hcm0vYm9hcmRz L2NodW1ieV9mYWxjb253aW5nL2ZhbGNvbndpbmcuYwppbmRleCAwODE4NjY2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