From patchwork Mon Mar 9 18:31:13 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: 45556 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6FFAD20285 for ; Mon, 9 Mar 2015 18:32:15 +0000 (UTC) Received: by wevk48 with SMTP id k48sf21174807wev.0 for ; Mon, 09 Mar 2015 11:32:14 -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=ZPkvnM3LSbHdyE0tPq4mHRqyepAU8ZzzejfMwPV0trk=; b=VJqEsB6SWLGuX+oQjcKqTMNjfGXwZ+on7GG8YW9HmB98HYCSWRpSH1fP6aUpsMZgsw EOoUSfgZ3IoXxk99B17cBvHlUuD7pFnNRZhW7ug1ET8maIAANrb1pBD7+mwxWtDoG8gs D3xS2STGM4tFv+sEi5dPIQ42mO2v8ZMm+9kWYGqHtmQEdzqzD4dZ8CYhWVidm/04SPxO Vc0oQWLJ58V/5DW0GY5d4LCcplN0to+pBk5RLRbcmzJfe4PLYqyCacBkRzuhLLpm1+mu 36K/hVwZm+jy4FBxuhE+GE5yywr6K3tjcmlbkDcMRQH5bLpLwucv87pSLhHKrYB3t5/H +PWg== X-Gm-Message-State: ALoCoQn8LsvZvU6uf9f4VFgZRHZupLURN/4dxXx9SNaHwoMftP5Knu6bLBYtBE3u65XbzAQFpJfJ X-Received: by 10.112.35.135 with SMTP id h7mr4101402lbj.23.1425925934717; Mon, 09 Mar 2015 11:32:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.242.132 with SMTP id wq4ls356836lac.30.gmail; Mon, 09 Mar 2015 11:32:14 -0700 (PDT) X-Received: by 10.152.5.194 with SMTP id u2mr27220575lau.88.1425925934536; Mon, 09 Mar 2015 11:32:14 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id wr6si14956105lbc.27.2015.03.09.11.32.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 11:32:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by labgf13 with SMTP id gf13so48441488lab.5 for ; Mon, 09 Mar 2015 11:32:14 -0700 (PDT) X-Received: by 10.152.8.15 with SMTP id n15mr428569laa.41.1425925934398; Mon, 09 Mar 2015 11:32:14 -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 h5csp1655443lbj; Mon, 9 Mar 2015 11:32:13 -0700 (PDT) X-Received: by 10.70.101.137 with SMTP id fg9mr16390515pdb.101.1425925932598; Mon, 09 Mar 2015 11:32:12 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ac10si25064961pac.147.2015.03.09.11.32.10; Mon, 09 Mar 2015 11:32:12 -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 E88FB739AA; Mon, 9 Mar 2015 18:32:04 +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 424EF73998 for ; Mon, 9 Mar 2015 18:31:55 +0000 (UTC) Received: by igal13 with SMTP id l13so23561635iga.5 for ; Mon, 09 Mar 2015 11:31:56 -0700 (PDT) X-Received: by 10.42.76.205 with SMTP id f13mr29689008ick.42.1425925916634; Mon, 09 Mar 2015 11:31:56 -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.51 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Mar 2015 11:31:54 -0700 (PDT) From: Naresh Bhat To: openembedded-core@lists.openembedded.org Date: Tue, 10 Mar 2015 00:01:13 +0530 Message-Id: <1425925876-9663-3-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 2/5] syslinux: Remove bootimg dependency for aarch64 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.44 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 Remove the bootimg dependency as syslinux for aarch64. The reasons to skip the syslinux package - syslinux package contains x86 assembly code. Hence compilation errors on aarch64. - There is no BIOS on aarch64 to answer syscalls. Signed-off-by: Naresh Bhat --- meta/classes/syslinux.bbclass | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass index d6498d9..2efb764 100644 --- a/meta/classes/syslinux.bbclass +++ b/meta/classes/syslinux.bbclass @@ -17,7 +17,16 @@ # ${SYSLINUX_SERIAL_TTY} - Set alternate console=tty... kernel boot argument # ${SYSLINUX_KERNEL_ARGS} - Add additional kernel arguments -do_bootimg[depends] += "${MLPREFIX}syslinux:do_populate_sysroot \ +def boot_image_depends(bb, d): + import re + deps = bb.data.getVar('TARGET_PREFIX', d, True) + if re.search("(x86_64|i.86).*",deps): + return "${MLPREFIX}syslinux" + if re.search("aarch64",deps): + return "" +RDEPENDS = "${@boot_image_depends(bb, d)}" + +do_bootimg[depends] += "${RDEPENDS}:do_populate_sysroot \ syslinux-native:do_populate_sysroot" SYSLINUXCFG = "${S}/syslinux.cfg"