From patchwork Wed Nov 26 16:07:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 41542 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A3347203C2 for ; Wed, 26 Nov 2014 16:07:50 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id n15sf1976167lbi.4 for ; Wed, 26 Nov 2014 08:07:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=rjBw/JmuW+xNJOkjs9QAJysiFn6KoHvMkjWEdkRz8ls=; b=a+avXNPI3VXfe/fzkc8D3AngikAT6XchQPKqxMdVRxR6v4Dd8geDi28YGkDcgqDWVQ g0Pg95H/z0UEJQOtf+7xkcNY4ro9L38gveOdD3CyqyidrpyT5pymY8GVucIiQy0xqV+F 8KWGaX02WjvxrIWmqhSHh5UgW5YR9GPvXKoBTwfaEqJ5JGeYX08s0RWQmDWIt7qZ+jzW Ghu9pg3WFGJvvPEaZxd2bTpBlVniM7XowqbjbWjjTwsNTpq4vELf473Xn8e8Gg76RdrH +4FL2/adP7UGeaLQepns84bBljqjxtN1eiSX5I/cdjLx6SQTAs300pYPAnggHQh+NSzO 2TAg== X-Gm-Message-State: ALoCoQk9MYF290yuA/gPvygQWLtt76qncJ/KsMudQIXCLuSmfhFVHfc8l3lGq4/yXvAYOM6y9QMn X-Received: by 10.180.98.165 with SMTP id ej5mr8800699wib.1.1417018069611; Wed, 26 Nov 2014 08:07:49 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.138 with SMTP id q10ls733902laj.83.gmail; Wed, 26 Nov 2014 08:07:49 -0800 (PST) X-Received: by 10.152.7.146 with SMTP id j18mr34450037laa.58.1417018069219; Wed, 26 Nov 2014 08:07:49 -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 pg4si4814318lbb.55.2014.11.26.08.07.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Nov 2014 08:07:49 -0800 (PST) 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 mail-lb0-f173.google.com with SMTP id z12so2681840lbi.32 for ; Wed, 26 Nov 2014 08:07:49 -0800 (PST) X-Received: by 10.112.52.37 with SMTP id q5mr34274602lbo.32.1417018069077; Wed, 26 Nov 2014 08:07:49 -0800 (PST) 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.184.201 with SMTP id ew9csp648159lbc; Wed, 26 Nov 2014 08:07:48 -0800 (PST) X-Received: by 10.220.139.147 with SMTP id e19mr18198666vcu.27.1417018067636; Wed, 26 Nov 2014 08:07:47 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id ij2si1816349vdb.10.2014.11.26.08.07.46 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Nov 2014 08:07:47 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xtf85-0006ZS-FW; Wed, 26 Nov 2014 16:07:45 +0000 Received: from mail-wi0-f178.google.com ([209.85.212.178]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xtf7x-0006Yu-2e for lng-odp@lists.linaro.org; Wed, 26 Nov 2014 16:07:37 +0000 Received: by mail-wi0-f178.google.com with SMTP id hi2so5499891wib.5 for ; Wed, 26 Nov 2014 08:07:31 -0800 (PST) X-Received: by 10.180.90.45 with SMTP id bt13mr42096103wib.75.1417018051585; Wed, 26 Nov 2014 08:07:31 -0800 (PST) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id h8sm7821044wiy.17.2014.11.26.08.07.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Nov 2014 08:07:30 -0800 (PST) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Wed, 26 Nov 2014 16:07:10 +0000 Message-Id: <1417018030-5261-1-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: Architecture patch Subject: [lng-odp] [PATCH] INSTALL.ODP: Reformat the requirements for cross-compile and mention DEB_HOST_ARCH X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zoltan.kiss@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 Now it's easier to read the text and with DEB_HOST_ARCH properly set the package files are correctly named. Unfortunately dpkg-gencontrol insist to use the host arch in the control files, unless you overwrite it with the variable. Signed-off-by: Zoltan Kiss --- INSTALL.ODP | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/INSTALL.ODP b/INSTALL.ODP index 86cec1f..acf09d7 100644 --- a/INSTALL.ODP +++ b/INSTALL.ODP @@ -61,13 +61,19 @@ You can pass the configure options via DATAPATH_CONFIGURE_OPTS: DATAPATH_CONFIGURE_OPTS="--with-odp= --with-odp-platform=" \ fakeroot debian/rules binary -If you cross-compile, you need to specify "host" for configure, -DEB_HOST_GNU_TYPE for dh_strip, and probably a cross-compiled OpenSSL. The -latter needs to be told to configure, and dh_shlibdeps needs to find the -libraries. E.g.: +If you cross-compile, you need to: +- specify "host" for configure +- DEB_HOST_GNU_TYPE has to be set for dh_strip +- DEB_HOST_ARCH has to be set for dh_gencontrol to correctly create the + debian/contol files +- dh_shlibdeps needs to find the libraries in LD_LIBRARY_PATH +- probably a cross-compiled OpenSSL. That needs to be told to configure + +An example: LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/arm-linux-gnueabihf/lib:' \ DEB_HOST_GNU_TYPE=arm-linux-gnueabihf \ +DEB_HOST_ARCH=armhf \ DATAPATH_CONFIGURE_OPTS="--with-odp= --with-odp-platform= \ --host=arm-linux-gnueabihf --with-openssl=" fakeroot debian/rules \ binary