From patchwork Tue Mar 3 15:46:22 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: 45368 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9373321416 for ; Tue, 3 Mar 2015 15:48:10 +0000 (UTC) Received: by labge10 with SMTP id ge10sf29908681lab.3 for ; Tue, 03 Mar 2015 07:48:09 -0800 (PST) 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=k+P9icO79Ej/5n5UQgUvH4BT+cRgzIDBfMTgIqIcBkI=; b=TvsmJ35dhWttG0RrVcnSQslec5HTqeDz9u0HgWnpREeWlDePiRE7WtpPrYLfuq7nKp SUksiilbFGTFxJ/OUtYWedhvnHwLlCUxyW/HrW94fv0yyw+Ub5w2veAtPmJHBfo+5tl+ cf8RWV6qsmhYltOZCxQH63x1On0E5G8T5xvMI/LrLWtr/C3c3ezW2Nmqeyp75KDGWRnN bd9IGytw1+TPlkDSbusRPmEfl1aljniN+xlFXeu2f/s5cyMNddRrjtH4k/Q6NRINc1TD yNSDAp7aATw4hEqIBg7I4yc5mIzzwNpzDZJTrOGXdkTMTxkOWbLcTdECLQFLGJkON0sR n7pQ== X-Gm-Message-State: ALoCoQlHKPzjWI/bOJijnwq8vcNyM7rkniEoMvdTwJ+oD2MG7uyq4P7N52PzgQmF1JTCNBJrP0Gt X-Received: by 10.180.182.201 with SMTP id eg9mr371819wic.3.1425397689574; Tue, 03 Mar 2015 07:48:09 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.36 with SMTP id dd4ls58051lac.43.gmail; Tue, 03 Mar 2015 07:48:09 -0800 (PST) X-Received: by 10.112.12.134 with SMTP id y6mr30037557lbb.34.1425397689415; Tue, 03 Mar 2015 07:48:09 -0800 (PST) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id p10si803419laj.9.2015.03.03.07.48.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 07:48:09 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbvp9 with SMTP id p9so15030524lbv.8 for ; Tue, 03 Mar 2015 07:48:09 -0800 (PST) X-Received: by 10.152.115.136 with SMTP id jo8mr30468941lab.32.1425397689121; Tue, 03 Mar 2015 07:48:09 -0800 (PST) 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 h5csp648287lbj; Tue, 3 Mar 2015 07:48:08 -0800 (PST) X-Received: by 10.68.110.132 with SMTP id ia4mr56684289pbb.95.1425397686618; Tue, 03 Mar 2015 07:48:06 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id sr9si1410198pab.160.2015.03.03.07.48.05; Tue, 03 Mar 2015 07:48:06 -0800 (PST) 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 A2C0073893; Tue, 3 Mar 2015 15:48:02 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-yk0-f182.google.com (mail-yk0-f182.google.com [209.85.160.182]) by mail.openembedded.org (Postfix) with ESMTP id CF44071708 for ; Tue, 3 Mar 2015 15:46:46 +0000 (UTC) Received: by ykr79 with SMTP id 79so407945ykr.7 for ; Tue, 03 Mar 2015 07:46:47 -0800 (PST) X-Received: by 10.236.222.34 with SMTP id s32mr31506442yhp.164.1425397607879; Tue, 03 Mar 2015 07:46:47 -0800 (PST) Received: from Latitude-E6430.caveonetworks.com ([111.93.218.67]) by mx.google.com with ESMTPSA id n22sm831796yho.1.2015.03.03.07.46.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Mar 2015 07:46:46 -0800 (PST) From: Naresh Bhat To: openembedded-core@lists.openembedded.org Date: Tue, 3 Mar 2015 21:16:22 +0530 Message-Id: <1425397584-5154-3-git-send-email-naresh.bhat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1425397584-5154-1-git-send-email-naresh.bhat@linaro.org> References: <1425397584-5154-1-git-send-email-naresh.bhat@linaro.org> Cc: Matt Fleming Subject: [OE-core] [OE-core Yocto PATCH 2/4] 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.217.175 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 Signed-off-by: Matt Fleming --- meta/classes/bootimg.bbclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index b1c03ba..a8e0c19 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass @@ -66,8 +66,16 @@ 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 ${STAGING_KERNEL_DIR}/${SRC_KERNEL_IMAGE} ${DEST}/${DEST_KERNEL_IMAGE} # initrd is made of concatenation of multiple filesystem images if [ -n "${INITRD}" ]; then