From patchwork Tue Jan 28 12:41:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 23792 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F0F2202B2 for ; Tue, 28 Jan 2014 12:42:15 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id w20sf650772vbb.7 for ; Tue, 28 Jan 2014 04:42:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=3F0axVskkRokqAuQtKQPa9bhWL/ANe/C8t682S2pDmU=; b=kDSGDRaROrE6dgUV9ug+4549hrg/YL1YwDfGkl6lRygCSlw4VuBkmHW6KrqWW3mP6t s0jSGt19Pn4W4OvcoU4Xg1thsUNJdb47+GjaAVBCPIhxOfnt2FTjdj4vY0q2cz+4LzHa usBpL74L3jQAi/Wy2sbCGxrjGrqgGTwVPAnpv55XRDpE5ax8EC/dF6f2WTEzLoamP4un jo0Se+YGA6KTtwb2grvGXFWyoJtpO18ZlKWvyMifsdwD+sjLNXHQzgnlBHVXWX0RX0I4 p7ekvtSSbsJzDapxJxlYdL9TZ5tS5EHmfRYit27wt3E3KwNWu7kjbCVOCJa07DY9EhIQ bPdA== X-Gm-Message-State: ALoCoQnTB+zC0fipBoEjtGrjJlR4F8RsstkLHZ62l2mLci/tx6Hgyw/n5fVObP9ahWOB3/YEKSLs X-Received: by 10.58.230.72 with SMTP id sw8mr12139824vec.5.1390912934283; Tue, 28 Jan 2014 04:42:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.145 with SMTP id v17ls2142292qgd.82.gmail; Tue, 28 Jan 2014 04:42:14 -0800 (PST) X-Received: by 10.58.119.161 with SMTP id kv1mr903811veb.21.1390912934235; Tue, 28 Jan 2014 04:42:14 -0800 (PST) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by mx.google.com with ESMTPS id vd4si565441vdc.117.2014.01.28.04.42.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 04:42:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.43; Received: by mail-vb0-f43.google.com with SMTP id p5so200956vbn.30 for ; Tue, 28 Jan 2014 04:42:14 -0800 (PST) X-Received: by 10.58.85.133 with SMTP id h5mr921505vez.4.1390912934125; Tue, 28 Jan 2014 04:42:14 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp27610vcz; Tue, 28 Jan 2014 04:42:13 -0800 (PST) X-Received: by 10.152.5.199 with SMTP id u7mr910281lau.16.1390912929536; Tue, 28 Jan 2014 04:42:09 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by mx.google.com with ESMTPS id x2si3687576laj.93.2014.01.28.04.42.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 04:42:09 -0800 (PST) Received-SPF: neutral (google.com: 209.85.217.173 is neither permitted nor denied by best guess record for domain of fathi.boudra@linaro.org) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id y6so273201lbh.18 for ; Tue, 28 Jan 2014 04:42:05 -0800 (PST) X-Received: by 10.152.242.165 with SMTP id wr5mr120329lac.47.1390912924983; Tue, 28 Jan 2014 04:42:04 -0800 (PST) Received: from localhost.localdomain (a91-152-78-194.elisa-laajakaista.fi. [91.152.78.194]) by mx.google.com with ESMTPSA id mx3sm16345665lbc.14.2014.01.28.04.42.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 04:42:04 -0800 (PST) From: Fathi Boudra To: openembedded-core@lists.openembedded.org Cc: Richard Purdie , Ross Burton , Saul Wold , Fathi Boudra Subject: [PATCHv3 6/6] ltp: fix ffsb ftbfs on cross-compiled environment Date: Tue, 28 Jan 2014 14:41:54 +0200 Message-Id: <1390912914-31576-7-git-send-email-fathi.boudra@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1390912914-31576-1-git-send-email-fathi.boudra@linaro.org> References: <1390912914-31576-1-git-send-email-fathi.boudra@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: fathi.boudra@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add ffsb-remove-hardcoded-configure.patch: get rid of the hardcoded configure call preventing cross-compilation Add do_configure_prepend to explicitly force regeneration the configure file and pass configure options as appropriate. Signed-off-by: Fathi Boudra --- .../ltp/ltp/ffsb-remove-hardcoded-configure.patch | 15 +++++++++++++++ meta/recipes-extended/ltp/ltp_20140115.bb | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/ffsb-remove-hardcoded-configure.patch diff --git a/meta/recipes-extended/ltp/ltp/ffsb-remove-hardcoded-configure.patch b/meta/recipes-extended/ltp/ltp/ffsb-remove-hardcoded-configure.patch new file mode 100644 index 0000000..9f02711 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/ffsb-remove-hardcoded-configure.patch @@ -0,0 +1,15 @@ +Get rid of the hardcoded configure call preventing cross-compilation + +Upstream-Status: Pending +Signed-off-by: Fathi Boudra + +--- a/utils/Makefile ++++ b/utils/Makefile +@@ -29,7 +29,6 @@ FILTER_OUT_DIRS := $(FFSBDIR) + FFSB := $(FFSBDIR)/ffsb + + $(FFSB): $(FFSBDIR) +- cd $^; ./configure + $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all + cp $(FFSBDIR)/ffsb ffsb + diff --git a/meta/recipes-extended/ltp/ltp_20140115.bb b/meta/recipes-extended/ltp/ltp_20140115.bb index 4e20f24..2ab1d50 100644 --- a/meta/recipes-extended/ltp/ltp_20140115.bb +++ b/meta/recipes-extended/ltp/ltp_20140115.bb @@ -25,6 +25,7 @@ SRCREV = "c8b3e28097e7d3208df9daceaf92c25eae87ebf0" SRC_URI = "git://github.com/linux-test-project/ltp.git \ file://0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch \ file://regen-makefile.patch \ + file://ffsb-remove-hardcoded-configure.patch \ " S = "${WORKDIR}/git" @@ -36,6 +37,12 @@ TARGET_CC_ARCH += "${LDFLAGS}" export prefix = "/opt/ltp" export exec_prefix = "/opt/ltp" +# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call. +# we explicitly force regeneration of that directory and pass configure options. +do_configure_prepend() { + (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure ${CONFIGUREOPTS}) +} + do_install(){ install -d ${D}/opt/ltp/ oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install