From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 4.mo4.mail-out.ovh.net ([178.32.98.131] helo=mo4.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U7jKV-0001Fn-95 for barebox@lists.infradead.org; Tue, 19 Feb 2013 09:17:40 +0000 Received: from mail433.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 0216E104FBC5 for ; Tue, 19 Feb 2013 10:28:04 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Tue, 19 Feb 2013 10:17:25 +0100 Message-Id: <1361265445-11731-3-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 3/3] falconwing: switch to generic peristent env To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQp2NDogcmVu YW1lIGZ1bmN0aW9uIGFuZCBtb3ZlIHRvIGVudmZzLmgKCiBhcmNoL2FybS9ib2FyZHMvY2h1bWJ5 X2ZhbGNvbndpbmcvZmFsY29ud2luZy5jIHwgNDEgKystLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0K IDEgZmlsZSBjaGFuZ2VkLCAzIGluc2VydGlvbnMoKyksIDM4IGRlbGV0aW9ucygtKQoKZGlmZiAt LWdpdCBhL2FyY2gvYXJtL2JvYXJkcy9jaHVtYnlfZmFsY29ud2luZy9mYWxjb253aW5nLmMgYi9h cmNoL2FybS9ib2FyZH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