From patchwork Fri Aug 22 10:17:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Voytik X-Patchwork-Id: 4769931 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A46E7C0338 for ; Sat, 23 Aug 2014 18:44:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E071A2018A for ; Sat, 23 Aug 2014 18:44:16 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id A315020136 for ; Sat, 23 Aug 2014 18:44:15 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8AC692610A6; Sat, 23 Aug 2014 20:44:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 1E59726072A; Sat, 23 Aug 2014 20:44:07 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5C3FD265011; Fri, 22 Aug 2014 12:17:17 +0200 (CEST) Received: from mail-qg0-f43.google.com (mail-qg0-f43.google.com [209.85.192.43]) by alsa0.perex.cz (Postfix) with ESMTP id 12D5B262631 for ; Fri, 22 Aug 2014 12:17:08 +0200 (CEST) Received: by mail-qg0-f43.google.com with SMTP id a108so9993408qge.2 for ; Fri, 22 Aug 2014 03:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=XJegI0+hlSe+lvBcmeSwkwvbU7bvvsugP5vSKl1TiL8=; b=sbjlUTzcHB19cKzUg+RH4L4goG+KA2mEzTQy+FZFjiyyrjtZA33O/FdhvbwGZHb5IN XZzBqtLwtbwXG8+ZwL7y14K93v1bXNTa1uA9GGsF5kK5/oh/b/uXYjWPEf6gbMPDMSS/ W7PEbsMFaYJoQYCk490dHgU/ygtS7MtxsLcZCYzoexVnA0FsHbdgavdKXm5klLACR3Db xyXhRqvvAjJs8OcdFxVQbsn797ql1ZtFbpBhQHzco90tSPitr5F3dxm8mhnp8hiohL7s xxVMdtMCCOAkQIyww9e7hMWzWJsUksDQOcmd/BHAg3Kd5mwgITkCFzBuNRWQb+dBSbcv 1p9w== X-Received: by 10.229.136.133 with SMTP id r5mr6266660qct.31.1408702627526; Fri, 22 Aug 2014 03:17:07 -0700 (PDT) Received: from voytws.cisco.com ([2001:420:44af:1300:b113:5219:c07f:2ad7]) by mx.google.com with ESMTPSA id q63sm4752796qgd.26.2014.08.22.03.17.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Aug 2014 03:17:07 -0700 (PDT) From: Dmitry Voytik To: Jaroslav Kysela Date: Fri, 22 Aug 2014 14:17:10 +0400 Message-Id: <1408702630-29406-1-git-send-email-voytikd@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-Mailman-Approved-At: Sat, 23 Aug 2014 20:44:05 +0200 Cc: Dmitry Voytik , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] doc: fix cross-compiling example X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Simplest way to configure cross-compilation with configure script is to pass '--host' option. Passing just '--target' doesn't work. Signed-off-by: Dmitry Voytik --- INSTALL | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/INSTALL b/INSTALL index 91a8648..47086e3 100644 --- a/INSTALL +++ b/INSTALL @@ -78,16 +78,13 @@ When you would like to cross-compile ALSA library (e.g. compile on i686 host but for arm architecture) you will need to call ./configure script with additional parameters: -CC=arm-linux-gcc ./configure --target=arm-linux +CC=arm-linux-gcc ./configure --host=arm-linux -In this example host where the library is build is guessed (should be -given with --host=platform) and target for which is the library build is -Linux on ARM architecture. You should omit setting 'CC' variable and -cross-compiler will be guessed too. +You can omit setting 'CC' variable and cross-compiler will be guessed too. So simplest version would be: -./configure --target=arm-linux +./configure --host=arm-linux For platform names in the form cpu-vendor-os (or aliases for this) you should look in 'config.guess' script. Target and all paths