From patchwork Mon Mar 9 18:31:16 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: 45559 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D5DC20285 for ; Mon, 9 Mar 2015 18:32:25 +0000 (UTC) Received: by widex7 with SMTP id ex7sf10696146wid.2 for ; Mon, 09 Mar 2015 11:32:24 -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: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=Z9RYXxtZrFajpidC7vrwZcpBomcFouJQptdUVuVPKA0=; b=FCBb5li8H0z4dFAvtAUQG/QAYqtRPT5s6UlboUlr1iGV09qkXi4AT8/ZykDf1+cH1b RcdPp8+maul19oU7A4Z/YzlwQV2QH9cvowx+0b7OK+tPd8Bnt0bpONt0A+sm9n5at2mA ph5JDIXs4aVm7JLhIHjQczAZycg4kkuGsF0i8qSeVZUbgCZ3MbfmjFea7E2fiemHMnOs AqqvpCnCj0Bs+QM9yggxKCiwOC4h8FCXvioGBfFxkQyBbfnscz4ebHmHjX89I+46AUZ/ 2I9uAACbfXdgjtMLXFAPBJrFdntn5vUEvK1lQoLddXtf1Rk2h9UJC//R3lQJBgu7f5zP 5JqQ== X-Gm-Message-State: ALoCoQlTKRsZIkBsN4uXRimxDYzQUCLKejV5Fn43ca0l/zBFV3sxVeYjx9KX2/7mrL2MuIjSzX6W X-Received: by 10.180.109.34 with SMTP id hp2mr2917090wib.4.1425925944772; Mon, 09 Mar 2015 11:32:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.208 with SMTP id l16ls314207laa.66.gmail; Mon, 09 Mar 2015 11:32:24 -0700 (PDT) X-Received: by 10.152.27.232 with SMTP id w8mr22540485lag.51.1425925944609; Mon, 09 Mar 2015 11:32:24 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id p6si5644302laj.167.2015.03.09.11.32.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 11:32:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbvn10 with SMTP id n10so19267999lbv.1 for ; Mon, 09 Mar 2015 11:32:24 -0700 (PDT) X-Received: by 10.112.181.41 with SMTP id dt9mr27871009lbc.56.1425925944458; Mon, 09 Mar 2015 11:32:24 -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 h5csp1655511lbj; Mon, 9 Mar 2015 11:32:23 -0700 (PDT) X-Received: by 10.66.161.161 with SMTP id xt1mr56504072pab.35.1425925942392; Mon, 09 Mar 2015 11:32:22 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id j13si20426173pdk.226.2015.03.09.11.32.21; Mon, 09 Mar 2015 11:32:22 -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 23838739B5; Mon, 9 Mar 2015 18:32:11 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by mail.openembedded.org (Postfix) with ESMTP id 38AA0739A7 for ; Mon, 9 Mar 2015 18:32:06 +0000 (UTC) Received: by iecrd18 with SMTP id rd18so15028132iec.13 for ; Mon, 09 Mar 2015 11:32:08 -0700 (PDT) X-Received: by 10.42.118.7 with SMTP id v7mr28692439icq.30.1425925928185; Mon, 09 Mar 2015 11:32:08 -0700 (PDT) Received: from Latitude-E6430.domain.name (64.2.3.194.ptr.us.xo.net. [64.2.3.194]) by mx.google.com with ESMTPSA id w3sm6552503igz.4.2015.03.09.11.32.05 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Mar 2015 11:32:07 -0700 (PDT) From: Naresh Bhat To: openembedded-core@lists.openembedded.org Date: Tue, 10 Mar 2015 00:01:16 +0530 Message-Id: <1425925876-9663-6-git-send-email-naresh.bhat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1425925876-9663-1-git-send-email-naresh.bhat@linaro.org> References: <1425925876-9663-1-git-send-email-naresh.bhat@linaro.org> Subject: [OE-core] [OE-core v1 PATCH 5/5] grub-efi: Add 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.173 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 either 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() {