From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6581862148598661120 X-Received: by 2002:a2e:95ce:: with SMTP id y14-v6mr1034216ljh.12.1532459203776; Tue, 24 Jul 2018 12:06:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9910:: with SMTP id v16-v6ls1344543lji.0.gmail; Tue, 24 Jul 2018 12:06:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcD5VSh7SUV66GFRFfZRKkQNzlSG9AISr+MaggMqUQ/u51Cz0wxMHYH4b9wezmYfYbC76XU X-Received: by 2002:a2e:3203:: with SMTP id y3-v6mr1033863ljy.4.1532459203354; Tue, 24 Jul 2018 12:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532459203; cv=none; d=google.com; s=arc-20160816; b=B9PYFQnQDLf1PZhPf6EhUYfcEL1iVcjCDC63fsawD6ZxhQrRTvk2wkaeRIMRcwRtCB gwMEhF4fEQkXBBYPNSvyMmzmruAt/YHVx/uA2K5BM9+mOEbRK+MXovTjAE+ZPWTNe/RO raGVm8W5gWy6yOWmLJKs654n9aMINLtTIywZd20tPkbgztEgijoZtayDCI5fmCfHYnof jQctfSnN3L9teAYX/BWgaYBdvQsE3VEBVX9qULKQl8gQh0SRKRqGR/ZEeB1+gXC+LxQ1 hSFlD1wJfkPGyrhfdWZE4NAGg6gGjr8tGrLOfoQ7CSvQwv1Myywew+VcqwR5SLjJWD4I eH3w== 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=tdc+K3HGqCgiB4IHb2Rfk42RCG88KQgUeVI4XaPlvEY=; b=VlupsZXaJw/gGGUKOjvr9W0GrHBM9nffKGrBc9fIDusAEPOelaSQifDs/RxaGJjU9D Dk0a9CCMLKcgLabVhZutiXfhjYXTTLTVfsmWV0ikGi1CYVCew73Skn95jBR1boJUNjGM gph/5YUeUtbZjoqz+MkJEQtNKLhct/3ou5sLU1G6anwInImik82S+y57WUlzQ/vnCvUU 69ZbgKNx+Ed61Qbi6YywzoW8KSopBczre7fY3U5fxDVY/OwxilyauN42MkMXcBUc7X0a TEGxd756z67XjP93tMbyS3wbuFI5CrlapKRsOVpqGtLD8dHaLFyjt77ii/avkBOWt+U6 4m3A== 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 l3-v6si423323ljc.2.2018.07.24.12.06.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 12:06:43 -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 w6OJ6PE0020773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Jul 2018 21:06:35 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH v4 06/10] isar: Add ARM64 cross-compilation support Date: Tue, 24 Jul 2018 22:06:14 +0300 Message-Id: <20180724190618.19155-7-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180724190618.19155-1-asmirnov@ilbers.de> References: <20180724190618.19155-1-asmirnov@ilbers.de> X-TUID: vyHhqnGgyOYs Add possibility to cross-compile ARM64 target. Signed-off-by: Alexander Smirnov --- meta/recipes-devtools/buildchroot/buildchroot-host.bb | 3 +++ meta/recipes-kernel/linux/files/build-kernel.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/meta/recipes-devtools/buildchroot/buildchroot-host.bb b/meta/recipes-devtools/buildchroot/buildchroot-host.bb index 048998d..7bdd7e0 100644 --- a/meta/recipes-devtools/buildchroot/buildchroot-host.bb +++ b/meta/recipes-devtools/buildchroot/buildchroot-host.bb @@ -26,6 +26,9 @@ BUILDCHROOT_PREINSTALL ?= "make \ # http://emdebian.org/tools/debian/ BUILDCHROOT_PREINSTALL_append_armhf += "binutils-arm-linux-gnueabihf \ crossbuild-essential-armhf" +BUILDCHROOT_PREINSTALL_append_arm64 += "binutils-aarch64-linux-gnu \ + crossbuild-essential-arm64" + PARAMS = "--host-arch" do_build[depends] = "isar-apt:do_cache_config isar-bootstrap-host:do_bootstrap" diff --git a/meta/recipes-kernel/linux/files/build-kernel.sh b/meta/recipes-kernel/linux/files/build-kernel.sh index cc137a8..8b58e93 100644 --- a/meta/recipes-kernel/linux/files/build-kernel.sh +++ b/meta/recipes-kernel/linux/files/build-kernel.sh @@ -18,6 +18,10 @@ if [ "$host_arch" != "$target_arch" ]; then export ARCH=arm export CROSS_COMPILE="arm-linux-gnueabihf-" ;; + arm64) + export ARCH=arm64 + export CROSS_COMPILE="aarch64-linux-gnu-" + ;; *) echo "error: unsupported architecture ($target_arch)" exit 1 -- 2.1.4