From patchwork Mon Jan 20 11:40:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 23380 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B6A39203C6 for ; Mon, 20 Jan 2014 11:40:37 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id 1sf4181395qee.1 for ; Mon, 20 Jan 2014 03:40:37 -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=QmOEspQy8Tzyg/MaOEG1Jq+A79jo6Y8xBz5OeygRP3M47uExVqXKzWth0mOcRjItbc v+wO4S/CmsjTqmZvzJn85ZyqxlOKi8QnbG0qal4FqLnl+s2pW+nO/Nvw/43QKtnU0U9V HzR5LFojC1pL1QatVoo/EmW5AS5jZg//AgSu+hEtMES6qFLZdyiGzn+BGJrWTSJuJ+r0 G0tCHXwx9JRO3roC6jJnYaw83yOFF2Uygl2AFNwch7N0Tyn06dLnfxUu19XHW75vBe+n tAx/pnTzypVzeNN3fAQxh0i08G5FexLdwNG04UhvLCBpmnI3M+fxOx9hYogdCk9b61gL qXtg== X-Gm-Message-State: ALoCoQlpWZzDhOingzJPrbwuJE11rSzDRd5/Snh7jvcDnYj4xoT5h5jLlHR+sZqktyWWRqfnKFSP X-Received: by 10.236.108.228 with SMTP id q64mr5867116yhg.36.1390218037003; Mon, 20 Jan 2014 03:40:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.1 with SMTP id o1ls240032qeo.43.gmail; Mon, 20 Jan 2014 03:40:36 -0800 (PST) X-Received: by 10.58.49.161 with SMTP id v1mr220491ven.5.1390218036876; Mon, 20 Jan 2014 03:40:36 -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 gq1si246444vec.61.2014.01.20.03.40.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 03:40:36 -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 p5so2687999vbn.2 for ; Mon, 20 Jan 2014 03:40:36 -0800 (PST) X-Received: by 10.220.99.72 with SMTP id t8mr10330622vcn.10.1390218036784; Mon, 20 Jan 2014 03:40:36 -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 u4csp53365vcz; Mon, 20 Jan 2014 03:40:36 -0800 (PST) X-Received: by 10.112.253.34 with SMTP id zx2mr129672lbc.61.1390218033805; Mon, 20 Jan 2014 03:40:33 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by mx.google.com with ESMTPS id sd9si467949lbb.164.2014.01.20.03.40.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 03:40:33 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.52 is neither permitted nor denied by best guess record for domain of fathi.boudra@linaro.org) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id c6so5325618lan.25 for ; Mon, 20 Jan 2014 03:40:33 -0800 (PST) X-Received: by 10.152.5.101 with SMTP id r5mr342248lar.56.1390218033157; Mon, 20 Jan 2014 03:40:33 -0800 (PST) Received: from localhost.localdomain (a91-152-78-194.elisa-laajakaista.fi. [91.152.78.194]) by mx.google.com with ESMTPSA id gi5sm609509lbc.4.2014.01.20.03.40.31 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 03:40:32 -0800 (PST) From: Fathi Boudra To: openembedded-core@lists.openembedded.org Cc: Richard Purdie , Ross Burton , Fathi Boudra Subject: [PATCHv2 7/7] ltp: fix ffsb ftbfs on cross-compiled environment Date: Mon, 20 Jan 2014 13:40:17 +0200 Message-Id: <1390218017-10423-8-git-send-email-fathi.boudra@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1390218017-10423-1-git-send-email-fathi.boudra@linaro.org> References: <1390218017-10423-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