{"id":809281,"url":"http://patchwork.ozlabs.org/api/patches/809281/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170903131342.1092-1-marek.behun@nic.cz/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170903131342.1092-1-marek.behun@nic.cz>","list_archive_url":null,"date":"2017-09-03T13:13:42","name":"[U-Boot] mvebu: turris_omnia: Only set eth?addr env if CONFIG_CMD_NET","commit_ref":null,"pull_url":null,"state":"deferred","archived":false,"hash":"bcdccaea160fa8753f20a2bd798527ec79dce79f","submitter":{"id":71605,"url":"http://patchwork.ozlabs.org/api/people/71605/?format=json","name":"Marek Behún","email":"marek.behun@nic.cz"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170903131342.1092-1-marek.behun@nic.cz/mbox/","series":[{"id":1230,"url":"http://patchwork.ozlabs.org/api/series/1230/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=1230","date":"2017-09-03T13:13:42","name":"[U-Boot] mvebu: turris_omnia: Only set eth?addr env if CONFIG_CMD_NET","version":1,"mbox":"http://patchwork.ozlabs.org/series/1230/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809281/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809281/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tsecure) header.d=nic.cz header.i=@nic.cz header.b=\"QpyEnM+i\"; \n\tdkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlYNy22FWz9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 23:14:56 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 815F9C21EB4; Sun,  3 Sep 2017 13:14:48 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 4D454C21D04;\n\tSun,  3 Sep 2017 13:14:46 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 25E15C21D04; Sun,  3 Sep 2017 13:14:45 +0000 (UTC)","from mail.nic.cz (mail.nic.cz [217.31.204.67])\n\tby lists.denx.de (Postfix) with ESMTPS id CBC6BC21C4F\n\tfor <u-boot@lists.denx.de>; Sun,  3 Sep 2017 13:14:44 +0000 (UTC)","from dellmb.labs.office.nic.cz (unknown\n\t[IPv6:2001:1488:fffe:6:8982:ed8c:62b1:c0c8])\n\tby mail.nic.cz (Postfix) with ESMTP id 6CAA761E0D;\n\tSun,  3 Sep 2017 15:14:44 +0200 (CEST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default;\n\tt=1504444484; bh=utl03polcZpDmG6jfkT9Jtniy9jEjgSOsvIdJtBz28I=;\n\th=From:To:Date;\n\tb=QpyEnM+ijG9cQQ9zQxH1nsuhvMGGZjOboF7zSCyW+tDISKs+zqPRwEcI69BBmDDnD\n\t+2LnKIv8zmQ2ePBB+KnMHbUpOioTsfL+HnezrBMnNP7XJrcQ2esaR6M+5UzwNe9cgo\n\t6P+nt5gBXURCkA4GnJWcQaBjVCLwCbBUGr+5ccI4=","From":"=?utf-8?q?Marek_Beh=C3=BAn?= <marek.behun@nic.cz>","To":"u-boot@lists.denx.de","Date":"Sun,  3 Sep 2017 15:13:42 +0200","Message-Id":"<20170903131342.1092-1-marek.behun@nic.cz>","X-Mailer":"git-send-email 2.13.5","X-Virus-Scanned":"clamav-milter 0.99.2 at mail","X-Virus-Status":"Clean","Cc":"Stefan Roese <sr@denx.de>, =?utf-8?q?Andreas_F=C3=A4rber?=\n\t<afaerber@suse.de>","Subject":"[U-Boot] [PATCH] mvebu: turris_omnia: Only set eth?addr env if\n\tCONFIG_CMD_NET","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"Otherwise the linking will fail since eth_env_set_enetaddr cannot\nbe found.\n\nSigned-off-by: Marek Behun <marek.behun@nic.cz>\n---\n board/CZ.NIC/turris_omnia/turris_omnia.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)","diff":"diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c\nindex af66837909..7db3b8ff3b 100644\n--- a/board/CZ.NIC/turris_omnia/turris_omnia.c\n+++ b/board/CZ.NIC/turris_omnia/turris_omnia.c\n@@ -470,6 +470,7 @@ out:\n \treturn 0;\n }\n \n+#if defined(CONFIG_ATSHA204A) && defined(CONFIG_CMD_NET)\n static void increment_mac(u8 *mac)\n {\n \tint i;\n@@ -480,10 +481,11 @@ static void increment_mac(u8 *mac)\n \t\t\tbreak;\n \t}\n }\n+#endif\n \n int misc_init_r(void)\n {\n-#ifdef CONFIG_ATSHA204A\n+#if defined(CONFIG_ATSHA204A) && defined(CONFIG_CMD_NET)\n \tint err;\n \tstruct udevice *dev = get_atsha204a_dev();\n \tu8 mac0[4], mac1[4], mac[6];\n","prefixes":["U-Boot"]}