From patchwork Thu Mar 16 18:38:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 739953 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vkcgK3vDlz9rxm for ; Fri, 17 Mar 2017 05:38:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WOkcAwjG"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id 1A0F9C21C65; Thu, 16 Mar 2017 18:38:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 0720AC21C27; Thu, 16 Mar 2017 18:38:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 003B1C21C27; Thu, 16 Mar 2017 18:38:21 +0000 (UTC) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by lists.denx.de (Postfix) with ESMTPS id 477E8C21C26 for ; Thu, 16 Mar 2017 18:38:21 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id g2so6958591pge.2 for ; Thu, 16 Mar 2017 11:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KPA7iBT2jPKFzagOVzxfdVTjIiQKu8/OkRNHlbkRAZo=; b=WOkcAwjGNj9Wlxa7HLMP2J6L/GvmJpowF1B8MBF9YRszSp8Lue56IUa6xlfS6weEu5 0jxnHGSxtiZ9s8oRlYaO9aLWMVgGBYLpqtvbfgA/g/U5bXGp/1ih6vFJSGp9byRI4PDm zup6ar5qV0WaUgI2p0Sfu7Whg1vTTzHWleIfj00dL2JEsCPIFmce5OQ6PH8xM6vpfQ4t SC+MCwyKXTdmH8QQ6oJk3ooKcUoTj4GkbCBzaSUTVvkwsTWN6pu7eWKoctho1zDOLK8r jjwrVSL2xdUeWR4WS1AgM4TM35UyuQ1uXSwbIGB1sGj++cPaNitqha4qt7COixPqoL6p UIGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KPA7iBT2jPKFzagOVzxfdVTjIiQKu8/OkRNHlbkRAZo=; b=Gj8wTpaShXJuu3j+jKJlFTFWbFq7x2ni3HP3GSxXuhs6VHN7stjpN0o6Ta4xU1EIWD 0K46ztofqvq7XCRkzu9U5Dc+ABUhvSuEGD8/WBy6fSjCSQjmf4oaWjgEvBhOJeVny1Pl TolBQDNNuSnGZ7qaHibI6yw5u/FQm6TCgnJy0CIZznqriRtsE0QXZzkEDvA3wp63BH4S Xs8oBj0zk3VYLJP94z3eB7kQlfrjL3dh4jmh5SLFujsCTA0FM8SoyYb67FyaNS+wxSxw DqSwwQofgG8cPC3Xv3Z9RE/j4LSbAdoeDmoNinzoHu6Hn8KjJAxXdr8Iblcy6l9gj6HD oK+A== X-Gm-Message-State: AFeK/H3z559tHIf6Uu0LvQwAWJ3NdTA0EsGI1lTLZyZXa7ZCFze1sFV5Lo9RZ2ZU1jAlxw== X-Received: by 10.98.194.88 with SMTP id l85mr11697107pfg.55.1489689499972; Thu, 16 Mar 2017 11:38:19 -0700 (PDT) Received: from octofox.metropolis (corp.Cadence.COM. [158.140.1.28]) by smtp.gmail.com with ESMTPSA id x10sm11960415pfi.21.2017.03.16.11.38.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Mar 2017 11:38:19 -0700 (PDT) From: Max Filippov To: u-boot@lists.denx.de Date: Thu, 16 Mar 2017 11:38:00 -0700 Message-Id: <1489689480-23775-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 Subject: [U-Boot] [PATCH] Pass empty CFLAGS on invocation of libfdt/setup.py X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When building u-boot tools in cross-build environment CFLAGS environment variable set up for target is taken into an account when building code for host. Set it to empty on invocation of python. This fixes the following build errors when cross-compiling for xtensa: cc1: error: unrecognized command line option "-mlongcalls" cc1: error: unrecognized command line option "-mauto-litpools" Signed-off-by: Max Filippov Reviewed-by: Simon Glass --- tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 1c840d7..c224e8a 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -120,7 +120,7 @@ _libfdt.so-sharedobjs += $(LIBFDT_OBJS) libfdt: tools/_libfdt.so: $(patsubst %.o,%.c,$(LIBFDT_OBJS)) tools/libfdt_wrap.c - LDFLAGS="$(HOSTLDFLAGS)" python $(srctree)/lib/libfdt/setup.py \ + LDFLAGS="$(HOSTLDFLAGS)" CFLAGS="" python $(srctree)/lib/libfdt/setup.py \ "$(_hostc_flags)" $^ mv _libfdt.so $@