Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mail.openembedded.org (Postfix) with ESMTP id 79EE06AC37 for ; Tue, 16 Jun 2015 22:30:37 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 16 Jun 2015 15:30:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,628,1427785200"; d="scan'208";a="747962355" Received: from yctb02.ostc.intel.com (HELO yctb02.otcr.intel.com) ([10.23.219.47]) by orsmga002.jf.intel.com with ESMTP; 16 Jun 2015 15:30:39 -0700 From: Alejandro Hernandez To: openembedded-core@lists.openembedded.org Date: Tue, 16 Jun 2015 15:29:12 +0000 Message-Id: <1434468553-26749-1-git-send-email-alejandro.hernandez@linux.intel.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Cc: =?UTF-8?q?Jonas=20G=C3=B6ransson?= Subject: [PATCH][fido] python3-ctypes: Fix cross compilation for arm targets X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2015 22:30:39 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When cross compiling for arm targets ctypes compilation fails because it uses _sysconfigdata from the HOST, this patches makes it use the one from TARGET fixing compilation of this module [YOCTO #7873] Signed-off-by: Alejandro Hernandez Signed-off-by: Jonas Göransson --- meta/recipes-devtools/python/python3_3.3.3.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-devtools/python/python3_3.3.3.bb b/meta/recipes-devtools/python/python3_3.3.3.bb index 6147408..22ea651 100644 --- a/meta/recipes-devtools/python/python3_3.3.3.bb +++ b/meta/recipes-devtools/python/python3_3.3.3.bb @@ -72,6 +72,10 @@ export CROSS_COMPILE = "${TARGET_PREFIX}" export _PYTHON_PROJECT_BASE = "${B}" export _PYTHON_PROJECT_SRC = "${S}" +# Fix ctypes cross compilation +export CROSSPYTHONPATH = "${B}/build/lib.linux-${TARGET_ARCH}-${PYTHON_MAJMIN}:${S}/Lib:${S}/Lib/plat-linux" + + # No ctypes option for python 3 PYTHONLSBOPTS = "" -- 1.8.4.5