From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phytec.co.uk ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XRjAK-00025i-NV for barebox@lists.infradead.org; Wed, 10 Sep 2014 14:46:37 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 10C62A005AD for ; Wed, 10 Sep 2014 16:46:09 +0200 (CEST) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Wed, 10 Sep 2014 16:46:08 +0200 Message-Id: <1410360368-18808-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: [PATCH] defaultenv: Reorder overlay append order To: barebox@lists.infradead.org VGhlIGRlZmF1bHRlbnZfYWRkX2Jhc2UoKSBmdW5jdGlvbnMgYWRkcyB0aGUgZW52aXJvbWVudCBj b21pbmcgZnJvbQpDT05GSUdfREVGQVVMVF9FTlZJUk9OTUVOVF9QQVRILiBCdXQgdGhpcyBpcyBu b3Qgb25seSBmb3IKdHJhZGl0aW9uYWwgZW52aXJvbWVudHMsIGJ1dCBhbHNvIGZvciBleHRlcm5h bCBlbnZpcm9tZW50cyBpbiBlLmcuIGJ1aWxkCnN5c3RlbXMuIFRoZSBleHRlcm5hbCBlbnZpcm9t ZW50IHNob3VsZCBvdmVycmlkZSB0aGUgZW52aXJvbWVudCBzZXQKaW4gdGhlIGJvYXJkIGZpbGUg YW5kIG5vdCB0aGUgb3RoZXIgd2F5IGFyb3VuZC4gTWFkZSBzdXJlIHRoYXQKZXh0ZXJuYWwgZW52 aXJvbWVudCBpcyBhbHdheXMgYWRkZWQgbGFzdC4KClNpZ25lZC1vZmYtYnk6IF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