From patchwork Fri Mar 13 14:55:23 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: 45781 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 55DAD214CB for ; Fri, 13 Mar 2015 14:56:37 +0000 (UTC) Received: by lbdu14 with SMTP id u14sf17122762lbd.3 for ; Fri, 13 Mar 2015 07:56:35 -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=QMJDpIU4HzhSKAzVYGgp+O+wGnPWwzkL0lnT0ThBVXHbfv8WkH0x2u6q9p+BcgDtxC Q/Zsh2AAJKCbGb8FRJLWgbZSCj/TCKbUKLJ3yY5hCYPpAT2h4e2zzTb5Nn6HtNgjHd76 fDRPwqmdKvOTBbDxkwM1gg4AFZbRB+3uCp4/b+1gBJXLmII5G2BjnqWyV5KCnBXDWPq2 pU1tOZhsGX1rgZn+KbMTFELvaMpd7OaWX86zB5Hf/3A5w9p7zIRyMCaQCrAKeJfYzEdZ KdLaUO1oYHAtWw/RhJVb2/PsgP3SeS+d701upJZf3FrGJu5/gB/YUgRaOPxDwtt3SqcB RKbg== X-Gm-Message-State: ALoCoQlqZuTWLp/RJeBpMGYabjr7qQdS/FZO5JoGU8lErzASVNuxgCY+8OQjDefTQX1DtxgCtPiN X-Received: by 10.180.80.132 with SMTP id r4mr3989042wix.4.1426258595736; Fri, 13 Mar 2015 07:56:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.237 with SMTP id r13ls413869lal.74.gmail; Fri, 13 Mar 2015 07:56:35 -0700 (PDT) X-Received: by 10.112.199.36 with SMTP id jh4mr9038798lbc.49.1426258595430; Fri, 13 Mar 2015 07:56:35 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id qh8si1557774lbb.39.2015.03.13.07.56.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 07:56:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbdu14 with SMTP id u14so23401061lbd.0 for ; Fri, 13 Mar 2015 07:56:35 -0700 (PDT) X-Received: by 10.112.64.193 with SMTP id q1mr43846532lbs.88.1426258595263; Fri, 13 Mar 2015 07:56:35 -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 h5csp967857lbj; Fri, 13 Mar 2015 07:56:34 -0700 (PDT) X-Received: by 10.66.100.165 with SMTP id ez5mr102918390pab.153.1426258593305; Fri, 13 Mar 2015 07:56:33 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id bc4si4468160pdb.237.2015.03.13.07.56.32; Fri, 13 Mar 2015 07:56:33 -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 357EF738EB; Fri, 13 Mar 2015 14:56:30 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-yk0-f178.google.com (mail-yk0-f178.google.com [209.85.160.178]) by mail.openembedded.org (Postfix) with ESMTP id 34F0F7382F for ; Fri, 13 Mar 2015 14:55:56 +0000 (UTC) Received: by ykbq9 with SMTP id q9so10701640ykb.5 for ; Fri, 13 Mar 2015 07:55:58 -0700 (PDT) X-Received: by 10.170.195.10 with SMTP id m10mr13311139yke.50.1426258557977; Fri, 13 Mar 2015 07:55:57 -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.55.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Mar 2015 07:55:56 -0700 (PDT) From: Naresh Bhat To: openembedded-core@lists.openembedded.org Date: Fri, 13 Mar 2015 20:25:23 +0530 Message-Id: <1426258527-2329-2-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 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.217.177 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