From patchwork Fri Mar 13 14:55:24 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: 45782 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 D01DC214CB for ; Fri, 13 Mar 2015 14:56:39 +0000 (UTC) Received: by labgq15 with SMTP id gq15sf17125084lab.0 for ; Fri, 13 Mar 2015 07:56:38 -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=Nobwri7yWQd7kBXTabgnAeDa/+S41UEmH1wUFz4mvUs=; b=AkP8HQ44dCZuUQ0nZSGnDjhXQVOo7WOZvDZ2QYJD4TEapDTxN1f08LBeyyORDAv6bD g7lm4BLlR/MPHHu2Be6ghZFHa+9u+2TX5SfmO9EqFfd0S7/dGnia98sbZoXugZmRIWL8 slOEaotsVVyAXMwsG2D2heyPooCoc4TvXFiO8M8hUewM+rry9PiMWaxXFsoX2cwkBBZ1 G4sumzbJnIVz/qt4GofMPFIqAJEw9n59Qh2WOO35LpwbRT/yoU9k9k9YZUtl+VlIp+S1 Didagb1hAsShxmZTkfkzA5pOglL4vPAWCww1pDw5BfDrSt92bNHwTADFyOGOghSINIQ1 UAJA== X-Gm-Message-State: ALoCoQm9ssBQHjhOA0lcdXz0+81HynSdGgrEIAVWFDJc29nd3F/mAIlhzkI4y0S3ubjLiF8b5ejL X-Received: by 10.152.6.232 with SMTP id e8mr7311864laa.2.1426258598706; Fri, 13 Mar 2015 07:56:38 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.14 with SMTP id t14ls422272laz.61.gmail; Fri, 13 Mar 2015 07:56:38 -0700 (PDT) X-Received: by 10.112.239.1 with SMTP id vo1mr43790017lbc.110.1426258598557; Fri, 13 Mar 2015 07:56:38 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id b6si1540308lbd.173.2015.03.13.07.56.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 07:56:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbiz12 with SMTP id z12so23331762lbi.12 for ; Fri, 13 Mar 2015 07:56:38 -0700 (PDT) X-Received: by 10.112.204.197 with SMTP id la5mr43214056lbc.29.1426258598266; Fri, 13 Mar 2015 07:56:38 -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 h5csp967891lbj; Fri, 13 Mar 2015 07:56:37 -0700 (PDT) X-Received: by 10.50.142.99 with SMTP id rv3mr80810151igb.11.1426258596717; Fri, 13 Mar 2015 07:56:36 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id bq16si4459092pac.180.2015.03.13.07.56.35; Fri, 13 Mar 2015 07:56:36 -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 BCDE2738FA; Fri, 13 Mar 2015 14:56:31 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-yh0-f44.google.com (mail-yh0-f44.google.com [209.85.213.44]) by mail.openembedded.org (Postfix) with ESMTP id 835DB65DA3 for ; Fri, 13 Mar 2015 14:56:00 +0000 (UTC) Received: by yhzz6 with SMTP id z6so12057265yhz.3 for ; Fri, 13 Mar 2015 07:56:02 -0700 (PDT) X-Received: by 10.236.227.166 with SMTP id d36mr46851987yhq.185.1426258562169; Fri, 13 Mar 2015 07:56:02 -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.58 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Mar 2015 07:56:00 -0700 (PDT) From: Naresh Bhat To: openembedded-core@lists.openembedded.org Date: Fri, 13 Mar 2015 20:25:24 +0530 Message-Id: <1426258527-2329-3-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 2/5] syslinux: Remove bootimg dependency on 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.217.173 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 reason to skip the syslinux package - syslinux package contains x86 assembly code. Hence it cannot be compiled on aarch64. - There is no BIOS on aarch64 to answer syscalls. Signed-off-by: Naresh Bhat --- meta/classes/syslinux.bbclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass index d6498d9..7bd8fed 100644 --- a/meta/classes/syslinux.bbclass +++ b/meta/classes/syslinux.bbclass @@ -17,7 +17,15 @@ # ${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:do_populate_sysroot" + if re.search("aarch64",deps): + return "" +BIMGDEP = "${@boot_image_depends(bb, d)}" +do_bootimg[depends] += "${BIMGDEP} \ syslinux-native:do_populate_sysroot" SYSLINUXCFG = "${S}/syslinux.cfg"