From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6579174846558633984 X-Received: by 2002:a50:c9c7:: with SMTP id c7-v6mr766219edi.0.1531833514197; Tue, 17 Jul 2018 06:18:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:f281:: with SMTP id f1-v6ls58959edm.6.gmail; Tue, 17 Jul 2018 06:18:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf9OZWmv/QLF1v6Ka4SxIrqhvV1XsPh/NNqgQ9yX4ZFEkYCzXtLaRyI5bwbNblWjpwotUbK X-Received: by 2002:aa7:c510:: with SMTP id o16-v6mr760477edq.7.1531833513850; Tue, 17 Jul 2018 06:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531833513; cv=none; d=google.com; s=arc-20160816; b=WxaDDN3uKbOiSfKB3UD0F3Lobm3cRFWHtUtnvtJ6Jb4xeaWR/LAKHvaqt4Hfy9UO36 rNax+Ft77vnwHyRMFp48HOnboW+gTRt6DtXbM44O91SAZDPw5CCEUOsPRAyzW95SqyXt prSuAQ45i8EQlI49JIwLw6d0c6hfEoow+FrKuLoIzoGEuTwwOt1iyKHUfpHWiqPKnwlQ dUNCol/qAtjmsUzGuvBD/T9Hhk4Wn635KiFpUxXyvx0hrkb7/ZJWGVzlG2pvSSFX/8r6 DuWmbV7MB4gPOIPnXX6ikpX/N5M15HJPzsKXTCYMyu83efu6CEm/GhyDdnHKO15X6tKP D7sA== 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=0V33tzVoW27sBiBPlNtbVoKG5ATTUQs6nOxeJ5BtLk4=; b=E6dZZXvhzIk6CU4DFpXW4xrI583XHOVJhoahsJXlH0l+Cf4Tn06Whjn1XERdmMz4gO bhSLqpwrYWggJ7nRSdTEu2RZ5okrn6XyHYr0TGQvv5ibGVb///C1fwiNe77ZVT94YX59 3+hZwoSbu8zjZUH4Z/Hu37JnubI0NUsJRqGGUL5bN1gzMcUxPGqgaQHSTCtTJtLNZ/un Nanz/oQpbQqAiHgRv4BXxzSsK+Jm8zgetE7Ey1/mYtozO5i9LQ0f7si9QIqEHaCMUX9M POkL2k2l75Er15msuebGxbEo2qSmsdo8YHlVLu8nj94p2mFvkvwrak26+hgkRkoyTU6o VVMg== 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 a26-v6si72971edn.2.2018.07.17.06.18.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 06:18:33 -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 zbook.fosdem.net ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w6HDIIY2024651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jul 2018 15:18:24 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH v3 0/7] Isar cross-compilation support Date: Tue, 17 Jul 2018 16:18:04 +0300 Message-Id: <20180717131811.14239-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 X-TUID: 1OAKehkSYUZe Hi everybody, sorry for the delay, this is the third version of cross-compilation support for Isar. Supported targets for cross-compilation: - stretch armhf - stretch amd64 Artifacts could be cross-compiled: - dpkg.bbclass users - dpkg-raw.bbclass users - kernel Known issues: - if target and host architectures are the same, there is no need to use host buildchroot. - kernel module doesn't support cross-compilation. Default linux-headers package depends from target gcc binaries. So attempt to install, for example linux-headers-armmp, tries to install gcc:armhf, what rises conflict with the host tools. To enable cross-compilation, the variable ISAR_CROSS_COMPILE should be set to "1" in local.conf file. With best regards, Alex Alexander Smirnov (7): isar-bootstrap: Update routine to determine host arch buildchroot: Split generic part buildchroot: Add host buildchroot isar-bootstrap-helper: Add target architecture for dpkg build.sh: Add additional parameter cross-compilation: Introduce variable switch linux: Add cross-compilation support meta-isar/conf/local.conf.sample | 5 ++ meta/classes/dpkg-base.bbclass | 19 ++++- meta/classes/dpkg.bbclass | 4 +- meta/classes/isar-bootstrap-helper.bbclass | 13 +++- meta/classes/wic-img.bbclass | 3 +- meta/conf/isar-bitbake.conf | 3 +- .../buildchroot/buildchroot-host.bb | 31 ++++++++ .../buildchroot/buildchroot-target.bb | 54 ++++++++++++++ meta/recipes-devtools/buildchroot/buildchroot.bb | 83 ---------------------- meta/recipes-devtools/buildchroot/buildchroot.inc | 37 ++++++++++ meta/recipes-devtools/buildchroot/files/build.sh | 17 ++++- meta/recipes-kernel/linux-module/module.inc | 7 ++ meta/recipes-kernel/linux/files/build-kernel.sh | 16 +++++ meta/recipes-kernel/linux/linux-custom.inc | 4 +- 14 files changed, 200 insertions(+), 96 deletions(-) create mode 100644 meta/recipes-devtools/buildchroot/buildchroot-host.bb create mode 100644 meta/recipes-devtools/buildchroot/buildchroot-target.bb delete mode 100644 meta/recipes-devtools/buildchroot/buildchroot.bb create mode 100644 meta/recipes-devtools/buildchroot/buildchroot.inc -- 2.1.4