From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 28 Jun 2021 12:12:48 +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 1lxoFz-0005V9-Vs for lore@lore.pengutronix.de; Mon, 28 Jun 2021 12:12:48 +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 1lxoFy-0003dR-Gw for lore@pengutronix.de; Mon, 28 Jun 2021 12:12:47 +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=cGldkdw2P6OcNgTqtZviYXCBmlOivKu7woiB4EvDwVc=; b=x7Q+ER9WNZxuW7LrliRftz1QMe MFX8FPPDQ8hVIlH58M5ocJjPCZKA0Rr0H50AYGkEhltAa/UeuUn/2/v8dZ1z9VUiI1G+9+W3tnZg/ yS2CQu6rGOfRYaNCq86B3vGwTehdb65rePuWyU3M+LoOQTZVccawy4Qfpvz1LEokXVl/EqEsawUch YzhPz+sTL49ih5k7Ze6U1Xf0QxY9GkyzR3yPwaacihvAq8xO3TTiNn9XBT9bqy+vPCmlzJ8K/U2z1 KMPemoCzZ3Ju/pIUe4Q9w4naM3Og0amGDF75qOUaKPJhlPh20ngNpYWVkQ+yGRgI2NP6/EOws7NEB 8yIEVT5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxoEX-007a0k-1t; Mon, 28 Jun 2021 10:11:17 +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 1lxoEQ-007ZzE-Nr for barebox@lists.infradead.org; Mon, 28 Jun 2021 10:11:13 +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 1lxoEP-0002st-4C; Mon, 28 Jun 2021 12:11:09 +0200 To: Bastian Krause , barebox@lists.infradead.org Cc: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= References: <20210628064036.25991-1-a.fatoum@pengutronix.de> <52d74c00-f249-b87f-bbe9-0dbeb78ba1e0@pengutronix.de> From: Ahmad Fatoum Message-ID: <777bf87b-0315-ce59-7581-fbc6ed671cd2@pengutronix.de> Date: Mon, 28 Jun 2021 12:11:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <52d74c00-f249-b87f-bbe9-0dbeb78ba1e0@pengutronix.de> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210628_031110_988948_A490834F X-CRM114-Status: GOOD ( 36.17 ) 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.7 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) SGVsbG8gQmFzdGksCgpPbiAyOC4wNi4yMSAxMTozNSwgQmFzdGlhbiBLcmF1c2Ugd3JvdGU6Cj4g T24gNi8yOC8yMSA4OjQwIEFNLCBBaG1hZCBGYXRvdW0gd3JvdGU6Cj4+IFRoZSBLY29uZmlnIG9w dGlvbiBhbHJlYWR5IHdhcm5zIHRoYXQgdGhlIGN1cnJlbnQgYmVoYXZpb3Igb2YKPj4gbWFjaGlu ZV9pZF9zZXRfaGFzaGFibGUoKSBvdmVycmlkaW5nIHByZXZpb3VzIGNhbGxzIGNhbiBsZWFkIHRv IHRoZQo+PiBtYWNoaW5lLWlkIGNoYW5naW5nIG92ZXIgdXBkYXRlcy4gV2UgZG9uJ3QgeWV0IGhh dmUgdGhpcyBwcm9ibGVtIGluCj4+IHByYWN0aWNlLCBiZWNhdXNlIHRoZSBvbmx5IHR3byB1cHN0 cmVhbSB1c2VycyBhcmUgZm9yIGJzZWMgYW5kIG9jb3RwLAo+PiB3aGljaCBhcmUgZWZ1c2UgZHJp dmVycyBmb3IgZGlmZmVyZW50IFNvQ3MuIE9uIHRoZSBvdGhlciBoYW5kLCB1c2Vycwo+PiBtYXkg d2FudCB0byBnZXQgdGhlIHVuaXF1ZSBJRCBmcm9tIGFuIEVFUFJPTSBhbmQgd2l0aCBkZWVwIHBy b2JlCj4+IHN1cHBvcnQsIHRoZSBpbml0Y2FsbCBvcmRlcmluZyB3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