From patchwork Fri Jul 27 22:23:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 950407 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="LTnRsGAr"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41ck566C4sz9s1x for ; Sat, 28 Jul 2018 08:23:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id DC7C488EED; Fri, 27 Jul 2018 22:23:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pgFW34fbrgMG; Fri, 27 Jul 2018 22:23:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D1FF388E99; Fri, 27 Jul 2018 22:23:35 +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 0EDC31C20F0 for ; Fri, 27 Jul 2018 22:23:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0CA9D88B9B for ; Fri, 27 Jul 2018 22:23:35 +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 LsYVIiJh9jhT for ; Fri, 27 Jul 2018 22:23:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by whitealder.osuosl.org (Postfix) with ESMTPS id A9C2D88B4A for ; Fri, 27 Jul 2018 22:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GYSO8qzvl8/8iH3WwKhzDyizG/EIkP8UbRXpuylCbss=; b=LTnRsGArPy0E77RpzxP1o1RwN 6b8o9Gmm/xXEPcekRGqx+707CJKmF2BZ4D1nuUzFS9yUooULeEGPFLcH/JxIZf/NNcx9bKCfbBoS5 dVKCnozSZ7wTQVoX3AaQsEFRE5mCej2wBr8ea+UbmT/cjIdSWrdjRzFHyoGKLbhSV2q4YWCN6aeGc QLSvgRXg6W1u4CNt/EbjIUSo7f5p/FotS+tFUeSOsJ+7PE/nkgacsQJIBkmaLzWkukUB8NuABDR4s gn7GTBBm/al3me2Uj1F6XT1IzHUk59spKEsuqRvA2fDD3ccIBtNoMZnWENEQ4LgaEpNN8ZFKaa7xi AFocOMoig==; Received: from 50-233-148-155-static.hfc.comcastbusiness.net ([50.233.148.155] helo=[10.18.6.178]) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fjB8y-0003Qs-QA; Fri, 27 Jul 2018 22:23:28 +0000 To: Thomas Petazzoni References: <28d7fee033a5e5ef512c02d5291d20b1d19fdbbf.1532460521.git.geoff@infradead.org> <20180727110728.300c06e2@windsurf> From: Geoff Levand Message-ID: Date: Fri, 27 Jul 2018 15:23:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180727110728.300c06e2@windsurf> Content-Language: en-US Subject: [Buildroot] [PATCH v1] dtc: Add set-ldshared.patch X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: buildroot@busybox.net, Simon Glass , devicetree-compiler@vger.kernel.org Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes pylibfdt cross compile errors. http://autobuild.buildroot.net/?reason=%dtc-1.4.7 Signed-off-by: Geoff Levand --- Hi Thomas, This gets the dtc package to build with python support, but it seems the real problem is that python distutils doesn't set LDSHARED correctly, which should default to CC. -Geoff package/dtc/set-ldshared.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/dtc/set-ldshared.patch diff --git a/package/dtc/set-ldshared.patch b/package/dtc/set-ldshared.patch new file mode 100644 index 0000000000..09220da359 --- /dev/null +++ b/package/dtc/set-ldshared.patch @@ -0,0 +1,13 @@ +diff --git a/pylibfdt/Makefile.pylibfdt b/pylibfdt/Makefile.pylibfdt +index 9507d3d..c2ac8e9 100644 +--- a/pylibfdt/Makefile.pylibfdt ++++ b/pylibfdt/Makefile.pylibfdt +@@ -8,7 +8,7 @@ PYMODULE = $(PYLIBFDT_objdir)/_libfdt.so + define run_setup + SOURCES="$(1)" CPPFLAGS="$(CPPFLAGS)" OBJDIR="$(PYLIBFDT_objdir)" + VERSION="$(dtc_version)" +- $(PYLIBFDT_objdir)/setup.py --quiet $(2) ++ LDSHARED="$(CC) -shared" $(PYLIBFDT_objdir)/setup.py --quiet $(2) + endef + + $(PYMODULE): $(PYLIBFDT_srcs)