From patchwork Wed Mar 18 11:27:05 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: 45933 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 169932153C for ; Wed, 18 Mar 2015 11:28:06 +0000 (UTC) Received: by wesq59 with SMTP id q59sf6728033wes.1 for ; Wed, 18 Mar 2015 04:28:05 -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=u5jwWqU7y8KyBDik7ivYkvf/4uvG38l1U34XQ/ndVM8=; b=Y7oGgjTwvkUK5c+oGjYnT9EEWrGJuaiwLHnVHf3BsTs4qM+cLajRII9Yb2Kmt4662k v8acYfU+XFK9nQnRNH98/RAfYkFd/S0rMDFlFKAqJ3bxtuOmM2YXkgdidJ2KuZ9sZ68r eSk2ZmBFLTv3vR6Snn6kkUOWCMpXSr3M6IF5fjBNZCGPkd3w0fHrENywGAkDaOxRWowf mEYwcCQMMTuRcsS/3RN8WzXyrOjYhBoGvq9O8pk6C8/te4fM96r4pZ+5BItFEO6pQj50 UftXQJhG9vf40gb8KyWvpGv5/xtmbgH4im+nwDMZuNe/EPTpMysxppxetcr0m5u9vjZX sy2A== X-Gm-Message-State: ALoCoQm6KRdGx93O+u17h3xtWbFBMCnk1Gv21ecCwH0LSCmV5Q2TgPNldh9ZoI6VlSRIvNMPntyW X-Received: by 10.180.13.195 with SMTP id j3mr657776wic.2.1426678085416; Wed, 18 Mar 2015 04:28:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.4 with SMTP id lc4ls128565lac.104.gmail; Wed, 18 Mar 2015 04:28:05 -0700 (PDT) X-Received: by 10.152.198.170 with SMTP id jd10mr56505273lac.60.1426678085248; Wed, 18 Mar 2015 04:28:05 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id d9si12671656lad.116.2015.03.18.04.28.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 04:28:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by ladw1 with SMTP id w1so33233384lad.0 for ; Wed, 18 Mar 2015 04:28:05 -0700 (PDT) X-Received: by 10.152.197.34 with SMTP id ir2mr63718844lac.36.1426678085109; Wed, 18 Mar 2015 04:28:05 -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 h5csp1090752lbj; Wed, 18 Mar 2015 04:28:03 -0700 (PDT) X-Received: by 10.70.136.202 with SMTP id qc10mr159370359pdb.117.1426678082379; Wed, 18 Mar 2015 04:28:02 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ki9si35447742pdb.160.2015.03.18.04.28.01; Wed, 18 Mar 2015 04:28:02 -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 1F7917399A; Wed, 18 Mar 2015 11:27:59 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by mail.openembedded.org (Postfix) with ESMTP id E5FE76AC43 for ; Wed, 18 Mar 2015 11:27:26 +0000 (UTC) Received: by pdbcz9 with SMTP id cz9so40463845pdb.3 for ; Wed, 18 Mar 2015 04:27:27 -0700 (PDT) X-Received: by 10.70.130.97 with SMTP id od1mr46873814pdb.0.1426678047708; Wed, 18 Mar 2015 04:27:27 -0700 (PDT) Received: from Latitude-E6430.domain.name ([119.82.123.224]) by mx.google.com with ESMTPSA id x1sm27111518pdr.17.2015.03.18.04.27.24 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Mar 2015 04:27:26 -0700 (PDT) From: Naresh Bhat To: openembedded-core@lists.openembedded.org Date: Wed, 18 Mar 2015 16:57:05 +0530 Message-Id: <1426678029-19516-2-git-send-email-naresh.bhat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1426678029-19516-1-git-send-email-naresh.bhat@linaro.org> References: <1426678029-19516-1-git-send-email-naresh.bhat@linaro.org> Cc: matt.fleming@intel.com Subject: [OE-core] [OE-core v2 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.41 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