From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6579174846558633984 X-Received: by 2002:a19:ec09:: with SMTP id b9-v6mr72274lfa.5.1531833516678; Tue, 17 Jul 2018 06:18:36 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:e947:: with SMTP id g68-v6ls117333lfh.4.gmail; Tue, 17 Jul 2018 06:18:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcmRiGSOtQv8yThmp8H5vR67JZix1wjVr2mMdET93mSFI+kloOOwVk4n7lGkwIbFdPEz4sC X-Received: by 2002:a19:a8d4:: with SMTP id r203-v6mr74560lfe.14.1531833516150; Tue, 17 Jul 2018 06:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531833516; cv=none; d=google.com; s=arc-20160816; b=JhRLJCiADea0IEl8qG5EtyOqir7xM7SkLTTO4LPMxjrbD7jA/DzF04br90/0dLdVUO /5+r31Fjvp3dHhshiHLoPq39Gx/WExFJcQG66mDu+oc9TDoXqJwd5tukLXuNBEgnPTgg fSKTjuaAJxmj1JKWqxyweohNF+tYQovpSc8VuemlEsXm9stSt6DcizOBkbY0cO3f/bI4 BsCUfNuGzweNsO35WkIM2DgytVroBdFnLF1L77gMduE4P95VvLBmQMwH0BhuoyCdgLWV UpxA6/LQ/xKQ/EBI+Z+SqtBc2yJ0OqAqPv8buQx3rbO1i9v8iKdD4dXhfmNTuoCg1Imz sOSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zXsRc+Wkc5+ai0Se+MQEr1J5AoI4Ft2V47K5x1zniww=; b=dkhaY0KMOitZ8zXUmnoH+BynTvYmp1j8Rpva1pO9PuT+RjufO6hUnvitjdNjfjfv95 CkyfhaTJ5duceXEX8JeK5qn7ARIov3PKo1Cus67U0QIsVyK42CUvqBXKfZzvVMU7WmuB fbBWSGqvmtW6bF4YRL9NOQKJz6gCDzk8qhyxqhuE2Va72XUy+DF4UYTBL2RKwLAmFtQf LKs1gdvAP/bkk+9bLige+3TcDv/ixta/jsWF2m6xlL89p3hxm1Gv9hlUanDXePvyKEi/ ZCcSOR5zhg2XTQ48K6E60jXZSqZxatAkxbmnWPVB9ecRpjc4FbHP7IxgtqkQUNrPiTSG wdkA== 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 u1-v6si42348lfc.0.2018.07.17.06.18.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 06:18:36 -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 w6HDIIY5024651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jul 2018 15:18:26 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH v3 3/7] buildchroot: Add host buildchroot Date: Tue, 17 Jul 2018 16:18:07 +0300 Message-Id: <20180717131811.14239-4-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180717131811.14239-1-asmirnov@ilbers.de> References: <20180717131811.14239-1-asmirnov@ilbers.de> X-TUID: GtAIBz10JkwS Add buildchroot for host architecture. Signed-off-by: Alexander Smirnov --- meta/conf/isar-bitbake.conf | 1 + .../buildchroot/buildchroot-host.bb | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 meta/recipes-devtools/buildchroot/buildchroot-host.bb diff --git a/meta/conf/isar-bitbake.conf b/meta/conf/isar-bitbake.conf index aaba96e..666c4a3 100644 --- a/meta/conf/isar-bitbake.conf +++ b/meta/conf/isar-bitbake.conf @@ -21,6 +21,7 @@ WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PF}" DL_DIR = "${TOPDIR}/downloads" SSTATE_DIR ?= "${TMPDIR}/sstate-cache" +BUILDCHROOT_HOST_DIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/buildchroot-host/rootfs" BUILDCHROOT_TARGET_DIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/buildchroot-target/rootfs" CACHE = "${TMPDIR}/cache" diff --git a/meta/recipes-devtools/buildchroot/buildchroot-host.bb b/meta/recipes-devtools/buildchroot/buildchroot-host.bb new file mode 100644 index 0000000..20b1e79 --- /dev/null +++ b/meta/recipes-devtools/buildchroot/buildchroot-host.bb @@ -0,0 +1,31 @@ +# Root filesystem for packages building +# +# This software is a part of ISAR. +# Copyright (C) 2015-2018 ilbers GmbH + +DESCRIPTION = "Isar development filesystem for host" + +include buildchroot.inc + +BUILDCHROOT_PREINSTALL ?= "make \ + debhelper \ + autotools-dev \ + dpkg \ + locales \ + docbook-to-man \ + apt \ + automake \ + devscripts \ + equivs \ + libc6:${DISTRO_ARCH}" + +# Please note: this works for Stretch distro only. According to the wiki page: +# https://wiki.debian.org/CrossToolchains +# Jessie doesn't contain toolchain. It should be fetched from the external +# repository: +# http://emdebian.org/tools/debian/ +BUILDCHROOT_PREINSTALL_append_armhf += "binutils-arm-linux-gnueabihf \ + crossbuild-essential-armhf" + +PARAMS = "--host-arch" +do_build[depends] = "isar-apt:do_cache_config isar-bootstrap-host:do_bootstrap" -- 2.1.4