From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6581862148598661120 X-Received: by 2002:a1c:968b:: with SMTP id y133-v6mr428085wmd.22.1532459200085; Tue, 24 Jul 2018 12:06:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:751a:: with SMTP id o26-v6ls2909348wmc.7.canary-gmail; Tue, 24 Jul 2018 12:06:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfnf6K3XaDrIDCkIFZzFiTPH4LRRt/ZMV4UWbxgyVKuSDdMjXe9jfD2XWwX/VBBzhJvN/YJ X-Received: by 2002:a1c:6a01:: with SMTP id f1-v6mr418285wmc.18.1532459199629; Tue, 24 Jul 2018 12:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532459199; cv=none; d=google.com; s=arc-20160816; b=HvxsxpR//X2faEhZW0qWz/YbvmO6S842ofiyyBIAKBwDEuVDHuh8yBDiGLkR6kAaJk nK1RERXLpwdTDmiJ7AMcGMjpSEtvumaHRI+wkJVvgUTwyaiVV2GwFa44IGL/UMu9RJw8 6XJ6FlT9Mh6snOEw1M5JwkKGZ46h88wWfzQr70vhbpVXTuR31bRg1lGaB+MhSFy8yS9Z xrchmjE96UVigE/Ewz/LwLMs2ZriK41V5b1EVzir533rYzKOC226jKd4TrxL5DSnnhuj AhV0cifH9ywHWH6fKNXbFk32SAV+oRYbYY+lmicUHHhLo69cFsj2sHSrDX8XrIlFuBjH SccQ== 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=EJoz43N6cV1Ne5+LmIOKVfXMVHE4e63dclzTnNv50lQ=; b=Q8/+xsXXYJDCUd5aM/Ug4lvONKAFT0Iv4B8pPbLIzp/ue896V5s54KzOJnBlOBIzgC buFZFlmlXei6yccEtlGT8/UzP0mmW4qAVdOC1oXzzhiRFC2/NJ4Bf/NEcAz03NVhGbsF 35cytopc2NuoPwYUMvGOBtKUV2LFgrP8hUsdsiv3AC98lg8ziW4uVKCuOR7Lh5CRH2wa ujLQUTyC02noP9FukltM3Y9vuKs3Uwr9GEGmg/zyt9kRBz5jvlzDxVBZWnFxYMLWpT2R mj5BJ4ouzXBJzC/ioVbVD5+9c2rIT71ocQVeWYcaiTpGVQiCd+6A3bcm5u+R42fZdFrW ci9g== 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 s8-v6si297618wrn.4.2018.07.24.12.06.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 12:06:39 -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 localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w6OJ6PDs020773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Jul 2018 21:06:31 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH v4 00/10] Add cross-compilation support Date: Tue, 24 Jul 2018 22:06:08 +0300 Message-Id: <20180724190618.19155-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 X-TUID: pGI1tqyTNMCa Hi Jan, here is the latest version of cross-compilation. Current achievements: 1. Default Isar build stays untouched :-) 2. Added ARM64 support 3. Fixed and *tested* building of ARM/ARM64 custom kernel and modules 4. I was able to build 'jailhouse-images' for QEMU ARM64 The known issues are unfortunately the same: 1. Check if target_arch = host_arch to disable cross-compilation 2. wic image depends on target buildchroot 3. Document this stuff (I've already started this) Branch to try: asmirnov/devel Alexander Smirnov (11): buildchroot: Add host buildchroot isar-bootstrap-helper: Add target architecture for dpkg build.sh: Add additional parameter cross-compilation: Introduce variable switch linux: Add ARM cross-compilation support isar: Add ARM64 cross-compilation support linux-module: Export ARCH and CROSS_COMPILE linux: Drop gcc from dependencies build.sh: Do not check deps in dpkg-buildpackage build.sh: Do not check deps in dpkg-buildpackage linux-module: Enable cross-build for testing meta-isar/conf/local.conf.sample | 5 ++++ meta/classes/dpkg-base.bbclass | 19 ++++++++++-- meta/classes/dpkg-raw.bbclass | 1 - meta/classes/dpkg.bbclass | 4 +-- meta/classes/isar-bootstrap-helper.bbclass | 5 ++++ meta/conf/isar-bitbake.conf | 1 + .../buildchroot/buildchroot-host.bb | 34 ++++++++++++++++++++++ meta/recipes-devtools/buildchroot/files/build.sh | 17 +++++++++-- .../recipes-kernel/linux-module/files/debian/rules | 12 ++++++++ meta/recipes-kernel/linux-module/module.inc | 7 +++++ meta/recipes-kernel/linux/files/build-kernel.sh | 28 ++++++++++++++++-- meta/recipes-kernel/linux/linux-custom.inc | 4 +-- 12 files changed, 123 insertions(+), 14 deletions(-) create mode 100644 meta/recipes-devtools/buildchroot/buildchroot-host.bb -- 2.1.4