From patchwork Mon Mar 9 18:31:12 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: 45555 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 70B5D20285 for ; Mon, 9 Mar 2015 18:32:11 +0000 (UTC) Received: by lbvn10 with SMTP id n10sf14558684lbv.1 for ; Mon, 09 Mar 2015 11:32:10 -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=u5jwWqU7y8KyBDik7ivYkvf/4uvG38l1U34XQ/ndVM8=; b=NobbKOzfotlUOUOtsXP3rWo/2Tm38YeFjuMTQZS4BcQyThR25Q+q2SVlcMga774NaR zwOgkK+nRxW1TrPeyL66aGjeGGQvoKIdGSLGphnE1C7x+CLi3d75NenIiNLL6nmaDTgl GgVEVBdBfBj7YYcWwguYD+mfM3GSn5dcTaDSxeKw4eRv5Elt5SjXy/KtuTggWbiMRK9v fBdQdkx3q6QkzJqFliCPEd61ASQkKXECJHtUWoYaA6l4E7vSIl6dHHNW6/60Num3vvyn 4UsvlOiqRgcryeAP0aPVrzlzQoKMCn+pYZEZ7g/5031zrKot2/+sAIvdzIGH/h0ihWt+ 77cg== X-Gm-Message-State: ALoCoQl4mNsWgXSMR0obA6onlqELw82fXQCjxq9DDVX/KH1lRi348mTSkUrZb2Xpfrj4RZn6iuVT X-Received: by 10.180.77.165 with SMTP id t5mr1203819wiw.0.1425925930332; Mon, 09 Mar 2015 11:32:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.10 with SMTP id s10ls348719lal.81.gmail; Mon, 09 Mar 2015 11:32:10 -0700 (PDT) X-Received: by 10.112.26.165 with SMTP id m5mr26969845lbg.61.1425925930173; Mon, 09 Mar 2015 11:32:10 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id la5si14887982lac.112.2015.03.09.11.32.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 11:32:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by labmn12 with SMTP id mn12so11002072lab.0 for ; Mon, 09 Mar 2015 11:32:10 -0700 (PDT) X-Received: by 10.152.120.134 with SMTP id lc6mr26725954lab.72.1425925930002; Mon, 09 Mar 2015 11:32:10 -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 h5csp1655404lbj; Mon, 9 Mar 2015 11:32:09 -0700 (PDT) X-Received: by 10.66.234.2 with SMTP id ua2mr34833113pac.137.1425925928129; Mon, 09 Mar 2015 11:32:08 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id h9si32077918pat.97.2015.03.09.11.32.06; Mon, 09 Mar 2015 11:32:07 -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 D30EA739A1; Mon, 9 Mar 2015 18:32:03 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-ig0-f170.google.com (mail-ig0-f170.google.com [209.85.213.170]) by mail.openembedded.org (Postfix) with ESMTP id B3FC97399D for ; Mon, 9 Mar 2015 18:31:50 +0000 (UTC) Received: by igbhl2 with SMTP id hl2so23916599igb.5 for ; Mon, 09 Mar 2015 11:31:51 -0700 (PDT) X-Received: by 10.50.73.99 with SMTP id k3mr76332000igv.21.1425925911409; Mon, 09 Mar 2015 11:31:51 -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.31.46 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Mar 2015 11:31:49 -0700 (PDT) From: Naresh Bhat To: openembedded-core@lists.openembedded.org Date: Tue, 10 Mar 2015 00:01:12 +0530 Message-Id: <1425925876-9663-2-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 1/5] bootimg: Add support to install Image 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.215.49 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 kernel image for aarch64 Signed-off-by: Naresh Bhat --- meta/classes/bootimg.bbclass | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index b1c03ba..ed7b32f 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass @@ -64,10 +64,17 @@ inherit ${EFI_CLASS} populate() { DEST=$1 - install -d ${DEST} + + SRC_KERNEL_IMAGE=bzImage + DEST_KERNEL_IMAGE=vmlinuz + + if [ "${TARGET_ARCH}" = "aarch64" ]; then + SRC_KERNEL_IMAGE=Image + DEST_KERNEL_IMAGE=Image + fi # Install bzImage, initrd, and rootfs.img in DEST for all loaders to use. - install -m 0644 ${DEPLOY_DIR_IMAGE}/bzImage ${DEST}/vmlinuz + install -m 0644 -D ${STAGING_KERNEL_DIR}/${SRC_KERNEL_IMAGE} ${DEST}/${DEST_KERNEL_IMAGE} # initrd is made of concatenation of multiple filesystem images if [ -n "${INITRD}" ]; then