From patchwork Fri Mar 13 14:55:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: naresh.bhat@linaro.org X-Patchwork-Id: 45785 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F0013214CB for ; Fri, 13 Mar 2015 14:56:48 +0000 (UTC) Received: by wghl18 with SMTP id l18sf16854836wgh.1 for ; Fri, 13 Mar 2015 07:56:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list; bh=Odl3rd0FPtew0lfn4z5kPsKuFbuk6gVG25CFV2pkLFo=; b=e2ulfNkw/Uvn9yQazZL1N3W0yPY1ohYhP3ejIJm0BIIfKnv9ffGqCJEfHYGwXoNaWt GomPNsXHrMRJSDZ3/QyiCT5f41okdP1JLq56o2peXhqxEXMn0waLK2Y8Zcn9xjVB6qma TvFvDkjB92/Hq0gNiBwn+u7yAuo0/QX8iMXeVsi8kGGTlK+CI3Zsf2RXuH7j/p39RBfx rNFP/qN1JOeTJaEw+5/JSpbN1/7AcRTtTfmKmZfJis6iGP/Yavx9gGvTRagQ2GjMm1Uz GP1QTyGs+AQibyv4Mc3AWU9mL/nwIPs6xnHmpwbkJ84VXl705Tbb96pNS8q0LOYU4oFB 0A9w== X-Gm-Message-State: ALoCoQmPqpiKQHo7w7jWxTL3sT+aD2EWBRHUsehcgvISD4QfonMUg8lKpgousKkQQKa3Nm38tEcV X-Received: by 10.180.150.115 with SMTP id uh19mr4237396wib.7.1426258608262; Fri, 13 Mar 2015 07:56:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.236 with SMTP id uh12ls389918lac.54.gmail; Fri, 13 Mar 2015 07:56:48 -0700 (PDT) X-Received: by 10.112.182.69 with SMTP id ec5mr42159503lbc.118.1426258608082; Fri, 13 Mar 2015 07:56:48 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id n1si1550227lae.91.2015.03.13.07.56.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 07:56:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbiw7 with SMTP id w7so23361950lbi.7 for ; Fri, 13 Mar 2015 07:56:48 -0700 (PDT) X-Received: by 10.152.87.3 with SMTP id t3mr43968989laz.19.1426258608004; Fri, 13 Mar 2015 07:56:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp967988lbj; Fri, 13 Mar 2015 07:56:47 -0700 (PDT) X-Received: by 10.67.7.135 with SMTP id dc7mr104593280pad.140.1426258606322; Fri, 13 Mar 2015 07:56:46 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id di5si4502219pdb.83.2015.03.13.07.56.45; Fri, 13 Mar 2015 07:56:46 -0700 (PDT) Received-SPF: none (google.com: openembedded-core-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 03D8C73922; Fri, 13 Mar 2015 14:56:34 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-yk0-f170.google.com (mail-yk0-f170.google.com [209.85.160.170]) by mail.openembedded.org (Postfix) with ESMTP id 9F68F6013D for ; Fri, 13 Mar 2015 14:56:13 +0000 (UTC) Received: by ykp131 with SMTP id 131so10695906ykp.12 for ; Fri, 13 Mar 2015 07:56:14 -0700 (PDT) X-Received: by 10.236.25.68 with SMTP id y44mr47312882yhy.4.1426258574537; Fri, 13 Mar 2015 07:56:14 -0700 (PDT) Received: from Latitude-E6430.caveonetworks.com ([111.93.218.67]) by mx.google.com with ESMTPSA id a74sm1773572yhq.31.2015.03.13.07.56.10 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Mar 2015 07:56:13 -0700 (PDT) From: Naresh Bhat To: openembedded-core@lists.openembedded.org Date: Fri, 13 Mar 2015 20:25:27 +0530 Message-Id: <1426258527-2329-6-git-send-email-naresh.bhat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1426258527-2329-1-git-send-email-naresh.bhat@linaro.org> References: <1426258527-2329-1-git-send-email-naresh.bhat@linaro.org> Cc: matt.fleming@intel.com Subject: [OE-core] [OE-core v1 PATCH 5/5] grub-efi: Add to support to install grubaa64 efi X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: naresh.bhat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add support to install grubaa64 efi image. By default GRUB_IMAGE contains the bootia32.efi image. Depending on the architecture type the variable is being updated to bootia64.efi or grubaa64.efi Signed-off-by: Naresh Bhat --- meta/classes/grub-efi.bbclass | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass index 47bd35e..cded1a0 100644 --- a/meta/classes/grub-efi.bbclass +++ b/meta/classes/grub-efi.bbclass @@ -31,15 +31,20 @@ efi_populate() { # nested under a top level directory. DEST=$1 - install -d ${DEST}${EFIDIR} - GRUB_IMAGE="bootia32.efi" - if [ "${TARGET_ARCH}" = "x86_64" ]; then + + case ${TARGET_ARCH} in + x86_64 ) GRUB_IMAGE="bootx64.efi" - fi - install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR} + ;; + aarch64 ) + GRUB_IMAGE="grubaa64.efi" + ;; + esac + + install -m 0644 -D ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR} - install -m 0644 ${GRUBCFG} ${DEST}${EFIDIR} + install -m 0644 -D ${GRUBCFG} ${DEST}${EFIDIR} } efi_iso_populate() {