From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:a19:1659:: with SMTP id m86-v6mr100184lfi.39.1528977716445; Thu, 14 Jun 2018 05:01:56 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:99c5:: with SMTP id l5-v6ls817278ljj.6.gmail; Thu, 14 Jun 2018 05:01:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJGnDsWXWKcJdWr3W4KZgVckvZwXDpYhrpnrpcNFyyqWiYHYhF8O/1zeFk1C4r2ZepyALX7 X-Received: by 2002:a2e:8703:: with SMTP id m3-v6mr104242lji.30.1528977716016; Thu, 14 Jun 2018 05:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528977715; cv=none; d=google.com; s=arc-20160816; b=BnvpBXe0uuUw+ye3vfFlvLHT5Qmro8Py+TV8pva/koPjz92WtXc8tGhZK/rbtgS563 xkr4oiHBmDlvawqs6eK8hjj3JXK87AvmQEbm9XzBVWF7litu6vgHR2cQPN89TpKLSEac 4OXhnCWOFx8nj3xaIaiGxwXP2SJeF/ie8LDPrcMl2F8AzczV3LuIdCfXJH4xE6NDUpT0 1cEZJF8oBk7OyBFYddT3yhOsf0l6zffJo1xbt0thryL8VxiyrzzOV1kkYoP3yS1+PROb 0wQ00aFdbMh0PoSqr/PgEmAGm03uswX1lome4ncBjN9hGx3AxOfjdfv+teL8FNZubFhV tnVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=aoyVY+RyAW01ox72XvCzIBsKS7Vj5rw2l9cbyzQjVdM=; b=olFN2Heb8YwQBBDGEh6CDBYjvlxEM1uwHXowOjT9G6UYwwdhdL9OPkmXthgyKtOtY9 2f8CcJT3TFwROfOEF3Z98kL60cLzGhoMGYPYs+qyhCntGEltkQaQyaVxax/7m0JIPAF1 CLELzQJUaXDmSE4BG0MKDR7u7I9SNyfPoJfaXtx3cUtiSrmMDqg83AOoYwwhSh1wzVLT zF2t9zbzWNTIYSOaUR+gEGEthe0LLr5QacKa4jGtOFOgVROx1fzyT5iWRYDDjfD8Cj0F 860Lg6vhpB0W7t1OE6BaonvAVJNqKn5WyT55VDdscmp5LTOaTG8uuatQ/CkHg8RWdnJr Orog== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id c20-v6si249708ljk.0.2018.06.14.05.01.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 05:01:55 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w5EC1tR8020958 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Jun 2018 14:01:55 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w5EC1tvR002637; Thu, 14 Jun 2018 14:01:55 +0200 Date: Thu, 14 Jun 2018 14:01:54 +0200 From: Henning Schild To: Alexander Smirnov Cc: Subject: Re: [RFC] [PATCH 0/9] Initial cross-compilation support Message-ID: <20180614140154.0ef525cc@md1pvb1c.ad001.siemens.net> In-Reply-To: <20180613130807.2461-1-asmirnov@ilbers.de> References: <20180613130807.2461-1-asmirnov@ilbers.de> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: WiIfN/8ZR3F9 Cool, i will look into that for an arm image i am working on for some time now. That might result on some more "hands-on" comments. Henning Am Wed, 13 Jun 2018 15:07:58 +0200 schrieb Alexander Smirnov : > Hi all, > > 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. > > This series tested for the following configuration only: > > $ bitbake multiconfig:qemui386 > > In this build: > - libhello is cross-compiled > - example-hello is compiled traditionally (but it's successfully > linked with libhello) > > 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. > > So, as usually, comments and suggestions are welcome :-) > > With best redgards, > Alex > > 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 > > 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 >