From patchwork Fri Jan 13 00:04:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 714713 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3v02tp1jspz9svs for ; Fri, 13 Jan 2017 11:04:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=embedded.rocks header.i=@embedded.rocks header.b="rTf7uqju"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C0336871E3; Fri, 13 Jan 2017 00:04:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ybFovwLXMQV2; Fri, 13 Jan 2017 00:04:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9544A871F6; Fri, 13 Jan 2017 00:04:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 15F641BFB06 for ; Fri, 13 Jan 2017 00:04:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1448886773 for ; Fri, 13 Jan 2017 00:04:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vzdZoP-HogAa for ; Fri, 13 Jan 2017 00:04:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8A296866E1 for ; Fri, 13 Jan 2017 00:04:42 +0000 (UTC) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3v02tT49T9zypX for ; Fri, 13 Jan 2017 01:04:33 +0100 (CET) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received; s=default; t=1484265871; x=1484870672; bh=WuFL+AuyTp56fFLLnsGBc7sYDTGelI1l0f8DrqEMr9M=; b=rTf7uqjuVopE G+ICNgfKlyayoQP/9NrAmy/OrZIRHORUv7ahVdO+fdhdS5f0XXOy5BOyw+HDpoF1 BCbJeUq5+ZMEmAbQ5SSZolmM/GzyTlUoMAd+IHT1N50llw7gYJdMuZahx0MUWrJG UF0REAuuGDlVkBT+OaOfOPzV+KIvkDrhds1k6ppvdEw8RaQsZdoyziv6IZ0H+pOF IyUAaIjFOsPVM32T/06GPF2MjbrnCIwIJx4j+ancZ6/x8ICqJeBqSZsFVWFnp60i rxK9EQOqjKJy7ZSXRS3nbdcHctWk/WR65FnY2YjNAogweaWwZD+0GJCFi9zVeCRv 2fbtbqFYJw== Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id HL40ig1QAHnO; Fri, 13 Jan 2017 01:04:31 +0100 (CET) Received: from nzxt.fritz.box (xd9ba6c09.dyn.telefonica.de [217.186.108.9]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Fri, 13 Jan 2017 01:04:31 +0100 (CET) From: =?UTF-8?q?J=C3=B6rg=20Krause?= To: buildroot@buildroot.org Date: Fri, 13 Jan 2017 01:04:28 +0100 Message-Id: <20170113000428.4112-1-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] boot/uboot: fix build for sunxi targets X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since version 2017.01 U-Boot needs to run the binman tool on the host machine for building the 'u-boot-sunxi-with-spl.bin' target. The binman tool is written in Python 2 so we need to add the python host package when building this target, otherwise the build fails: ``` BINMAN u-boot-sunxi-with-spl.bin File "./tools/binman/binman", line 49 print result ^ SyntaxError: Missing parentheses in call to 'print' make[1]: *** [Makefile:1090: u-boot-sunxi-with-spl.bin] Error 1 ``` Signed-off-by: Jörg Krause --- boot/uboot/uboot.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 6b9d54454..02415ef63 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -280,6 +280,15 @@ endif UBOOT_DEPENDENCIES += host-uboot-tools endif +# Since version 2017.01 U-Boot needs to run the binman tool on the host machine +# for building the 'u-boot-sunxi-with-spl.bin' target. The binman tool is +# written in Python 2 so we need to add the python host package here. +ifeq ($(BR2_TARGET_UBOOT_SPL),y) +ifeq ($(findstring u-boot-sunxi-with-spl.bin,$(BR2_TARGET_UBOOT_SPL_NAME)),u-boot-sunxi-with-spl.bin) +UBOOT_DEPENDENCIES += host-python +endif +endif + ifeq ($(BR2_TARGET_UBOOT)$(BR_BUILDING),yy) #