From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6523072403514327040 X-Received: by 10.46.21.81 with SMTP id 17mr281471ljv.9.1518771147652; Fri, 16 Feb 2018 00:52:27 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.25.0.207 with SMTP id 198ls182925lfa.16.gmail; Fri, 16 Feb 2018 00:52:27 -0800 (PST) X-Google-Smtp-Source: AH8x224hBloUvYsusX5qhtOwR57I/keu9G/Z3vWLaOkWSvtwq5W2rK50b0S+pvnEg/+vhKZUtb5I X-Received: by 10.25.209.146 with SMTP id i140mr382105lfg.34.1518771146981; Fri, 16 Feb 2018 00:52:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518771146; cv=none; d=google.com; s=arc-20160816; b=L8e4QLMT3bsACa8go6nIMo7eHEIREmfSMNCEycf53jFt1D+XuWODLV4owaNC8o8xC3 d76cr5X0ib4IMVnMfiqLg6HWwtyP03e6xm0/02BINCm2IXWNmNpucptBJ550105xwoJy 00h9Yo6GeJnG1TDFO8S9qXIRexiYtH0PgetrGiGi1wRXqJD7spPWUTHfVZAlU4DY9d9e VcpAte0793mtfbBbNl7I4KGvjxPYgoQY9RlhYyeEW6CyWXFjrT9iCPBoS2h3gS5vcg1O iI8efqFKU9PNl+V3wLXkL7UwApsGQKJ+e4bgEh7FAy0Cbfh/H21yXAcafJ+h2hIzYwGl gqPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:references:in-reply-to:message-id:date :subject:to:from:arc-authentication-results; bh=UuJnWsg2bBDWda2HJ9BT+JfOz0BenBxCm3ca9tB1yMI=; b=vVb6KnSpYvhknJPB1MLk2VSu16Hdb3XLAXtI9zuFU/7CNz+3Whpaa+twxDt5GobpRm T/OG5wsVZNzIAnJedpHTUFfBnWRlqBD6o+c7CTcgMxtZG6qzKHiuAQU3//ptxEBX18+P 2kibxrlKKUKxMk9NelOs4B2ex+fbJHR+Kt1mNSiL1Bify0hHm6VOPG4sIrCQs/NpEvFV RtuojT3jxXtlk3y5kCorMUO62DdV0NhZFcJHgT6zOKxXSmDaT0ihwM3HAuBK9WENrrs6 rj1s3+NCDaUpomV9wxFWQjnghoNriWZ41TdTWr+a2U2TDMLIqT2X+HjIF4ZNxv6qW3pJ RhpA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id l30si22857ljb.3.2018.02.16.00.52.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 00:52:26 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@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 jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w1G8qQ9r026186 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 16 Feb 2018 09:52:26 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.7.207]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w1G8qPVR025341 for ; Fri, 16 Feb 2018 09:52:26 +0100 From: Jan Kiszka To: isar-users Subject: [PATCH 4/8] Add Debian arm64 support to the core Date: Fri, 16 Feb 2018 09:52:20 +0100 Message-Id: <5ed4dc5f337965002693714ea640d241e25f2674.1518771143.git.jan.kiszka@siemens.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: References: In-Reply-To: References: X-TUID: QDDiP9EnmQdy From: Jan Kiszka Required changes for the meta layer to build arm64 targets. Signed-off-by: Jan Kiszka --- meta/recipes-devtools/buildchroot/files/setup.sh | 18 ++++++++++++++---- meta/recipes-devtools/isar-apt/files/distributions.in | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/meta/recipes-devtools/buildchroot/files/setup.sh b/meta/recipes-devtools/buildchroot/files/setup.sh index 21c004e..1257739 100755 --- a/meta/recipes-devtools/buildchroot/files/setup.sh +++ b/meta/recipes-devtools/buildchroot/files/setup.sh @@ -14,6 +14,7 @@ set -e # setup.sh needs to be executable. TARGET=$1 +ARCH=$2 # Prevent daemons from starting in buildchroot if [ -x "$TARGET/sbin/start-stop-daemon" ]; then @@ -54,11 +55,20 @@ EOF chmod a+x $TARGET/usr/sbin/policy-rc.d fi -# Install QEMU emulator to execute ARM binaries -if [ ! -x /usr/bin/qemu-arm-static ]; then - echo "qemu-arm-static binary not present, unable to execute ARM binaries" +case $ARCH in + armel|armhf) + qemu_arch=arm + ;; + arm64) + qemu_arch=aarch64 + ;; +esac + +# Install QEMU emulator to execute foreign binaries +if [ ! -x /usr/bin/qemu-${qemu_arch}-static ]; then + echo "qemu-${qemu_arch}-static binary not present, unable to execute target binaries" else - sudo cp /usr/bin/qemu-arm-static ${TARGET}/usr/bin + sudo cp /usr/bin/qemu-${qemu_arch}-static ${TARGET}/usr/bin fi # Set hostname diff --git a/meta/recipes-devtools/isar-apt/files/distributions.in b/meta/recipes-devtools/isar-apt/files/distributions.in index cd214c6..cc82c57 100644 --- a/meta/recipes-devtools/isar-apt/files/distributions.in +++ b/meta/recipes-devtools/isar-apt/files/distributions.in @@ -1,3 +1,3 @@ Codename: {DISTRO_NAME} -Architectures: i386 armhf amd64 source +Architectures: i386 armhf arm64 amd64 source Components: main -- 2.13.6