From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:adf:ea0e:: with SMTP id q14-v6mr184697wrm.15.1528977904175; Thu, 14 Jun 2018 05:05:04 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:11cc:: with SMTP id 195-v6ls1689647wmr.9.canary-gmail; Thu, 14 Jun 2018 05:05:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJkrFt5CNAHBImlStoI6EUocHBdCqQWMSpxL6dA3GaDvz1kQI4tXK8MM4kokCoTreIF9aFC X-Received: by 2002:a1c:f410:: with SMTP id z16-v6mr182706wma.29.1528977903828; Thu, 14 Jun 2018 05:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528977903; cv=none; d=google.com; s=arc-20160816; b=skjpBGbPJ8FPIv9OWh8SdIIpclIKGcUw+ftXODUE4mtu0R2lzooBWWuM7614r1q7xa 3f6ywwiLOPmDV1R/Qpxd6WkpERdMjfzOJxlwQkvTjdDI91K24WbwQHYKbV+h4K7UVKmN KX2xgPe0bc0exd3Z/fwyyxTRDaXZUhKGvLpL7tICcHYhPdA3Y0keXXPdXtDg51vXob7A XjpK9x8pDBqC/98vxngibrgP8yJL302GssIHoPyr38X3CmPAKvLwAVRLY+kPu9kLPqRG 2IuB2li1aK4x0xOSgIuy/1XlSOROhA50TeIalScLA3wGeINmwefokusQxzegJ1yAnSmF jEZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=4+o6ESwu13sJO/iluCkmNG1H3slPSCDRBebkEVV2nM0=; b=kIYLuhqwzop5tdKxJL2ZSxG2251AboaEgvcplgQsn3YU2q581utru/IxV9ADuvWoq5 3QbPoQb+QtM6Xi1bIoQezDa+3q4v/Srjkitx7u1LdWvPXShqJjtf86wWFMyBQlYVUbFv Br0NJ76w307VDyJ5vbKjGDyeT96IVqf1/+riykxUwkqYLHoLIlPLRmyXcyPaoo+WG1CW kPhJ6lFoND8vBAzBi5YdG3sgZU+ETni+06fiaQAv1/aRPaASy1nFETQnonE4Fc1dPpY0 LMAyekz9a+Id7wQ6kORApMel1OqKQiAW+bzt7hFznLZKfPxsfkGlA5vcCY6vI/UaxX1C Fy+g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id f18-v6si49347wmc.1.2018.06.14.05.05.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 05:05:03 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) client-ip=212.18.0.9; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4162PC3vTDz1qwCN; Thu, 14 Jun 2018 14:05:03 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4162PC3hWBz1r3kj; Thu, 14 Jun 2018 14:05:03 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id zKWnFe5Zrbza; Thu, 14 Jun 2018 14:04:56 +0200 (CEST) X-Auth-Info: 0mlG2+25EDDKY0umWZiVf94fHRZ4RFXnZtVXGpr3gcc= Received: from Orrorin (p578a821c.dip0.t-ipconnect.de [87.138.130.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 14 Jun 2018 14:04:56 +0200 (CEST) Message-ID: <1b45959cb29031b6d45d3243c2449656cb9380e0.camel@denx.de> Subject: Re: [RFC] [PATCH 0/9] Initial cross-compilation support From: Claudius Heine To: Alexander Smirnov , isar-users@googlegroups.com Date: Thu, 14 Jun 2018 14:04:47 +0200 In-Reply-To: <20180613130807.2461-1-asmirnov@ilbers.de> References: <20180613130807.2461-1-asmirnov@ilbers.de> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-URZ2RFaESjU8ngao+frt" X-Mailer: Evolution 3.28.2 Mime-Version: 1.0 X-TUID: NIqjPWhhNdNE --=-URZ2RFaESjU8ngao+frt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, 2018-06-13 at 15:07 +0200, Alexander Smirnov wrote: > Hi all, >=20 > this series introduces basic cross-compilation support for Isar. The > implementation > is based around new entity - buildchroot-cross, which is quite > similar to original > buildchroot, but has host architecture. Here is a crazy idea from me and Henning: Have you tried just installing an amd64-arm cross toolchain into the existing arm buildchroot, then switch to it from the 'native' toolchain using a combination of PATH variable entries, symlinks and/or wrapper scripts and let binfmt deal with calling the amd64 binaries of the toolchain in the arm chroot environment? This way the arm system would think that you are compiling nativly while in fact you are using a cross compiler that is not emulated. Would that work? Cheers, Claudius >=20 > This series tested for the following configuration only: >=20 > $ bitbake multiconfig:qemui386 >=20 > In this build: > - libhello is cross-compiled > - example-hello is compiled traditionally (but it's successfully > linked with libhello) >=20 > TODO list: > - Depending on the target architecture, various host tools should be > installed. For example > binutils package has the following names: > * binutils > * binutils-x86-64-linux-gnu > * binutils-arm-linux-gnueabihf > - Cross-dependency installation. This topic is still open for me > because 'mk-build-deps' tool > doesn't work here correctly. For example package depends on > binutils, but instead of > installation of 'binutils-arm-linux-gnueabihf' it tries to install > 'binutils:armhf' and ruins > the rootfs. >=20 > So, as usually, comments and suggestions are welcome :-) >=20 > With best redgards, > Alex >=20 > Alexander Smirnov (9): > isar-bootstrap: Add routin to determine host arch > isar-bootstrap: Move common part to include > isar-bootstrap: Add host architecture support > isar-bootstrap-helper: Add parameter to set arch > buildchroot-cross: Initial implementation > classes/dpkg*: Relocate dependency from buildchroot > classes/dpkg*: Drop hardcoded buildchroot blobs > classes/dpkg-cross: Initial implementation > [FOR TESTING] libhello: Switch to cross compilation >=20 > meta-isar/recipes-app/libhello/libhello.bb | 2 +- > meta/classes/dpkg-base.bbclass | 17 +- > meta/classes/dpkg-cross.bbclass | 15 ++ > meta/classes/dpkg-raw.bbclass | 7 +- > meta/classes/dpkg.bbclass | 7 +- > meta/classes/image.bbclass | 2 +- > meta/classes/isar-bootstrap-helper.bbclass | 13 +- > meta/conf/isar-bitbake.conf | 1 + > .../isar-bootstrap/isar-bootstrap-host.bb | 44 ++++ > .../isar-bootstrap/isar-bootstrap-target.bb | 44 ++++ > meta/recipes-core/isar-bootstrap/isar-bootstrap.bb | 259 --------- > ------------ > .../recipes-core/isar-bootstrap/isar-bootstrap.inc | 223 > ++++++++++++++++++ > .../buildchroot/buildchroot-cross.bb | 53 +++++ > meta/recipes-devtools/buildchroot/buildchroot.bb | 2 +- > .../buildchroot/files/build-cross.sh | 29 +++ > 15 files changed, 443 insertions(+), 275 deletions(-) > create mode 100644 meta/classes/dpkg-cross.bbclass > create mode 100644 meta/recipes-core/isar-bootstrap/isar-bootstrap- > host.bb > create mode 100644 meta/recipes-core/isar-bootstrap/isar-bootstrap- > target.bb > delete mode 100644 meta/recipes-core/isar-bootstrap/isar- > bootstrap.bb > create mode 100644 meta/recipes-core/isar-bootstrap/isar- > bootstrap.inc > create mode 100644 meta/recipes-devtools/buildchroot/buildchroot- > cross.bb > create mode 100644 meta/recipes-devtools/buildchroot/files/build- > cross.sh >=20 > --=20 > 2.1.4 >=20 --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153 Keyserver: hkp://pool.sks-keyservers.net --=-URZ2RFaESjU8ngao+frt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEb/LlnwDGvCgx2GTBEXPLGZgIsVMFAlsiWd8ACgkQEXPLGZgI sVME6A/+KH3yw8zhD4YmVIdSzJAznkQU56L/JHQ1k54v0Cnso2vOtqy7iX84esLC huFW097Wj5qWaEI4jub6lvUwYY1PQkR706N/OaOk09qk/LDsq+F1JwKwXcH8cHnt Xox+HseFzB0BcVvzabjD6TNw4AKW46KvdrtK9djv/yWXKiM9k++N8wzGHquQ/MbN TfatRq29oJdiUg4UB0IdObpfE1HvKs82Z7et5hjwN73FNqxjb7HUAx/ysaKr3IRi 6DxOoTwNOD37AOrSWfAVxcbbIAoa/VS+X4m6b7TLeow2cbcqsfQJizSkwkoNrJNs 4VjGbZGP1tXnlBnWqlpIxsTcYuwoGWbNY/n3/7zAJ/y5N48G6RMlcl6zzJfxyybX iujhRmpx+xx/swWXSfwrjm7rckJxPALlcidf5NerSVz4q7e6zXp0duiWwaOUBJHL zR2qKE+akb7o0MaL/n1Q2smObJ0fP8vqjJGjvfx30Er4/sqgfs8jtLF9+LpIxbmL 2pgYMwHctyFlWPH/3MxapPm2vGC5luMw90eqaZwcEYX6mYB8OnXIQ0UeT6gTFy8G 8Vf1h84LkP8C4YlMqLwhaQNkETjqIB/SrYlb4OIi4QFF2z7fvcNAQ4NHUKC/BZle uoqnDVQirCHxdreZoGTrUfe6XrTVy+j42EtlkVwRbu8/8fOb+TE= =Kgtk -----END PGP SIGNATURE----- --=-URZ2RFaESjU8ngao+frt--