From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.x-arc.de ([217.6.246.34] helo=root.phytec.de) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UKUmW-0006FY-SP for barebox@lists.infradead.org; Tue, 26 Mar 2013 14:23:22 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 04E7ABF0E6 for ; Tue, 26 Mar 2013 15:23:20 +0100 (CET) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Tue, 26 Mar 2013 15:23:16 +0100 Message-Id: <1364307796-2407-2-git-send-email-t.gamez@phytec.de> In-Reply-To: <1364307796-2407-1-git-send-email-t.gamez@phytec.de> References: <1364307796-2407-1-git-send-email-t.gamez@phytec.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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [RFC PATCH 2/2] OMAP: Add option to use enviroment from MMC To: barebox@lists.infradead.org TWFrZSBsb2FkaW5nIGVudmlyb21lbnQgZnJvbSBNTUMgZ2VuZXJpYyBmb3IgYWxsIE9NQVAuCgpU ZXN0ZWQgb24gQU0zMzV4LCBPTUFQNC4KClNpZ25lZC1vZmYtYnk6IFRlcmVzYSBHw6FtZXogPHQu Z2FtZXpAcGh5dGVjLmRlPgpUZXN0ZWQtYnk6IEphbiBXZWl0emVsIDxqLndlaXR6ZWxAcGh5dGVj LmRlPgotLS0KIGFyY2gvYXJtL2JvYXJkcy9wYW5kYS9ib2FyZC5jICAgICAgICAgICAgIHwgICAz MCAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KIGFyY2gvYXJtL21hY2gtb21hcC9pbmNsdWRl L21hY2gvZ2VuZXJpYy5oIHwgICAgMSArCiBhcmNoL2FybS9tYWNoLW9tY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2luZyBkZWZhdWx0IGVudlxuIiwgZGlza2Rldik7CisJCXJldHVybiAwOworCX0KKworCW1rZGly KCIvYm9vdCIsIDA2NjYpOworCXJldCA9IG1vdW50KGRpc2tkZXYsICJmYXQiLCAiL2Jvb3QiKTsK KwlpZiAocmV0KSB7CisJCXByaW50ZigiZmFpbGVkIHRvIG1vdW50ICVzXG4iLCBkaXNrZGV2KTsK KwkJcmV0dXJuIDA7CisJfQorCisJcHJpbnRmKCJMb2FkaW5nIGVudmlyb21lbnQgZnJvbSBNTUNc biIpOworCisJZGVmYXVsdF9lbnZpcm9ubWVudF9wYXRoID0gIi9ib290L2JhcmVib3hlbnYiOwor CisJcmV0dXJuIDA7Cit9CitsYXRlX2luaXRjYWxsKG9tYXBfZW52X2luaXQpOworI2VuZGlmCi0t IAoxLjcuMC40CgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X18KYmFyZWJveCBtYWlsaW5nIGxpc3QKYmFyZWJveEBsaXN0cy5pbmZyYWRlYWQub3JnCmh0dHA6 Ly9saXN0cy5pbmZyYWRlYWQub3JnL21haWxtYW4vbGlzdGluZm8vYmFyZWJveAo=