From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:adf:f911:: with SMTP id b17-v6mr453850wrr.3.1528895323217; Wed, 13 Jun 2018 06:08:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:7c18:: with SMTP id x24-v6ls1080155wmc.2.gmail; Wed, 13 Jun 2018 06:08:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLoKsFWEczfFu90EWHW/i1WHv/0eTOPnYtoAfWH7IQbKwii1nkzyEzA7CAoXLJgJjIDi5f/ X-Received: by 2002:a1c:a00e:: with SMTP id j14-v6mr393643wme.8.1528895322704; Wed, 13 Jun 2018 06:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528895322; cv=none; d=google.com; s=arc-20160816; b=ygjP2scw9hI8s/B5ZHyhu0l+/at5ZsBS0/og04SD9JK0InS2+CcM5LaB7w2fADui0k QM7M953tkcIWjxPD+1WQbYOByL0+DsjICBqOxqugwsuyjLyb2/p11Hi8zh2uj+i/3c5U jZEK5ETzGYOkdIBJm2QxngogUhl9y4r+2DZ38nMQBcdOR5d1xZ8ViRi4J3bHdSW14OuV t7xlkloiQzuqb6+bab0vMRSMkGpeaQOOy4PL9eoa01NE85mSm0T2/CU98UdXkKtTNWcM zMh9CR3Wnbp/jcGSI0KfGP9nNT02Pnqun/4Rwje8a4amxTn8b6HcIfX1wbWrH74uWxFF bpig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=NpMS2+CDrI/gH6mwPPGyvadX+w5tr1l7denRUu6y/YI=; b=lXOmoxVot38D1hgsjoElfHjl9dAxGXIWc1OkaB3Eqqux4tb422CF1t3DsZ2xpVOICm FFvNLFG+VUD/4KnyakxYK7+1iP9GSCj65mN1sWV6d2gri2hanCIGJIJGcYx1RsC6uhWI rY8y3IicdOxxqhB5r0E+Rk7ld6fqSkHDQvfDCj0r1RXegnnT100VjHxARzQ8Ygjj7RME jGM7PmFXdMm2QauRMpb7kv1btmykBTTixyvJO4VbvWYdBMehU2RHsto+/k52bOR14qCW w23Pi82C9pcLmXWwD215SxHZHq/eT67S/rTwpw3NypmoOXWkPeltsumGqIwaWQo6HTAL iJMg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id m16-v6si81689wrr.3.2018.06.13.06.08.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 06:08:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from azat.i.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w5DD8Pxx030010 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT); Wed, 13 Jun 2018 15:08:33 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [RFC] [PATCH 0/9] Initial cross-compilation support Date: Wed, 13 Jun 2018 15:07:58 +0200 Message-Id: <20180613130807.2461-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.11.0 X-TUID: +FxFmQ6ApyvS 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 -- 2.1.4