From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 28 Jun 2021 11:37:35 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lxnhv-0005KF-8Q for lore@lore.pengutronix.de; Mon, 28 Jun 2021 11:37:35 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lxnht-0007VF-Rk for lore@pengutronix.de; Mon, 28 Jun 2021 11:37:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=GLY4Ra/wS14e0fppRUCyTuAdp2yQDEqYHZIlG45VtTI=; b=riaBAhcID3HPLWfrBqX2LVKPIw j0Z/gHvAf5HIjBxvLTC5xBwIsqt2BzxfjNg9ihYzDK0agHY/ybuZy3OmQtYkLim2MUzQxH4CEv8MV FTNZC4JlB5j61mlPeJe2RcFWx3MY8AlacOTcJOLu4BdmgUs6azTiJH1QDiqrVx39c+DjybxIm9h4z U618i6JUPHK7z3SyZe1g1NgeY7l8YgBkhWXOGgLfHMplCjGuSlZ3JnWKwFmaIF3VInrNc8kHNcIPI dX4rcGJV8xyvlQRDI/wJmN8PXJGdijgovvTf4ObRkvSGsS0OPlyre2jdeKRSiGDZVqWe1Po2A8vhu /H4TMIXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxngT-007VBi-S6; Mon, 28 Jun 2021 09:36:05 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxngO-007VBB-9c for barebox@lists.infradead.org; Mon, 28 Jun 2021 09:36:02 +0000 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lxngK-0007A8-L6; Mon, 28 Jun 2021 11:35:56 +0200 To: Ahmad Fatoum , barebox@lists.infradead.org Cc: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= References: <20210628064036.25991-1-a.fatoum@pengutronix.de> From: Bastian Krause Message-ID: <52d74c00-f249-b87f-bbe9-0dbeb78ba1e0@pengutronix.de> Date: Mon, 28 Jun 2021 11:35:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210628064036.25991-1-a.fatoum@pengutronix.de> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210628_023600_554031_5F0D98AD X-CRM114-Status: GOOD ( 41.74 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list 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" X-SA-Exim-Connect-IP: 2607:7c80:54:e::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.8 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [PATCH 1/5] common: machine_id: support /chosen/barebox, machine-id-path override X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) T24gNi8yOC8yMSA4OjQwIEFNLCBBaG1hZCBGYXRvdW0gd3JvdGU6Cj4gVGhlIEtjb25maWcgb3B0 aW9uIGFscmVhZHkgd2FybnMgdGhhdCB0aGUgY3VycmVudCBiZWhhdmlvciBvZgo+IG1hY2hpbmVf aWRfc2V0X2hhc2hhYmxlKCkgb3ZlcnJpZGluZyBwcmV2aW91cyBjYWxscyBjYW4gbGVhZCB0byB0 aGUKPiBtYWNoaW5lLWlkIGNoYW5naW5nIG92ZXIgdXBkYXRlcy4gV2UgZG9uJ3QgeWV0IGhhdmUg dGhpcyBwcm9ibGVtIGluCj4gcHJhY3RpY2UsIGJlY2F1c2UgdGhlIG9ubHkgdHdvIHVwc3RyZWFt IHVzZXJzIGFyZSBmb3IgYnNlYyBhbmQgb2NvdHAsCj4gd2hpY2ggYXJlIGVmdXNlIGRyaXZlcnMg Zm9yIGRpZmZlcmVudCBTb0NzLiBPbiB0aGUgb3RoZXIgaGFuZCwgdXNlcnMKPiBtYXkgd2FudCB0 byBnZXQgdGhlIHVuaXF1ZSBJRCBmcm9tIGFuIEVFUFJPTSBhbmQgd2l0aCBkZWVwIHByb2JlCj4g c3VwcG9ydCwgdGhlIGluaXRjYWxsIG9yZGVyaW5nIHdpbGwgYmUgaW5kZXBlbmRlbnQgb2YgdGhl IGFjdHVhbCBwcm9iZQo+IG9yZGVyLgo+IAo+IFdvcmsgYXJvdW5kIHRoaXMgaXNzdWUgYnkgaW50 cm9kdWNpbmcgYSB3YXkgZm9yIGVhY2gg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