From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:a2e:9dc6:: with SMTP id x6-v6mr95780ljj.39.1528975243984; Thu, 14 Jun 2018 04:20:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:ee0b:: with SMTP id g11-v6ls767172lfb.0.gmail; Thu, 14 Jun 2018 04:20:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJjxhr9I9Byh2iyibqK0SzwsWIgap0GmDLo7Jx2ChhqdvztZ4++NblIW0+6m2z0c5FtJEE X-Received: by 2002:a19:18a2:: with SMTP id 34-v6mr93317lfy.0.1528975243535; Thu, 14 Jun 2018 04:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528975243; cv=none; d=google.com; s=arc-20160816; b=ReKARzgp8Mdx64JeKoLdqkh0yyaI0kp+hftC+bhy8uJ2aZFVZdQjo1dP8V3UXgjl8/ EwZTeKJyzMZfsEuK+T377Vka7aHXloJYiUGMHm0abG+0OlzjlKeW8WmtXigJkZDNiQLW BuT5ZLIw6GyP4Bm/H13yUBtko5wUDT2K7p6sMRKMkcgVvk2CppNUSmGzWfMg+mdoZVBm J8BOLDpWyLC3nGaivbNmC1CE0rz1bsdwF+7692NSzsRSZMkOZbiCsBfc1YQr8EO7MCYZ YKNookEz6fwlIqqaKixUn9rU1xx8OmOPGY8wO42tK9vjGuN5JvWuIwGLeSQ3jBBROinD X4Bg== 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=VXLQE35mw8vmNGuWDMibuxskJ6QpVJHFkhQWRgQYm9k=; b=lW2OXqIoDsl3ZNDoEqV7jQyK19FXiIIE1dTV61frhRrjLPHnjnmreJeUjRrwsDm+iQ P5B+TPhP3zPLWq/Nu4bmzDfPFnHv1pXlKJdkEhTarky6BDeCC3Fn+9YKaQcBm8jDB/8a zSS7NiBzrd8EI+MkN2YvzMjhnff/QBz9vQX5R9f8nBgeJYWRB7wzm7tNa1Kiuz9KZwKC A7myQ4m9fkChAbzOTZNJyzDNwCpYPlIts9RyBJ/LkmGKZY08687+v6bjQPUd7aQ5WAHu 6vDAH3/HZNaND0U1SaVX/xDDCrxuYEQR0gheS2sVfhTIJNQOhDix8iEiCXNswBFCT6lZ eOqA== 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 y20-v6si133474ljh.2.2018.06.14.04.20.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 04:20:43 -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 mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w5EBKgtV015542 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Jun 2018 13:20:42 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w5EBKgbR028513; Thu, 14 Jun 2018 13:20:42 +0200 Date: Thu, 14 Jun 2018 13:20:41 +0200 From: Henning Schild To: Alexander Smirnov Cc: Subject: Re: [RFC] [PATCH 0/9] Initial cross-compilation support Message-ID: <20180614132041.02ee1d78@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: EaMJDCh81RMT 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. mk-build-deps supports the following switches "--arch foo --host-arch foo", maybe they help? Henning > 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 >