From patchwork Wed Feb 25 21:17:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Erdmann?= X-Patchwork-Id: 443666 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 5F99A140082 for ; Thu, 26 Feb 2015 08:24:57 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=mailerd.de header.i=@mailerd.de header.b=Ep2wpOCP; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 60830334CF; Wed, 25 Feb 2015 21:24:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id umFGYDJG6eZ5; Wed, 25 Feb 2015 21:24:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3BD2432EAE; Wed, 25 Feb 2015 21:24:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 36E351C2214 for ; Wed, 25 Feb 2015 21:24:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 28197955D7 for ; Wed, 25 Feb 2015 21:24:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ngmd8VUBP8sy for ; Wed, 25 Feb 2015 21:24:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by hemlock.osuosl.org (Postfix) with ESMTPS id 49271955B3 for ; Wed, 25 Feb 2015 21:24:53 +0000 (UTC) Received: by wgha1 with SMTP id a1so6281828wgh.12 for ; Wed, 25 Feb 2015 13:24:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerd.de; s=mails; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=A6+VFfvVQKeh615v+hQ4x7A16J4i8Kn8qBWW2GQ9+L4=; b=Ep2wpOCPp+RYnqzIgStlIpiS2bzduzpgPODFn3hEftDLnwlSNbySkFE86kjKNs19R/ /kvZ2WKxD9rgBmvCiS65krIpHSGQJw1yHZiy+mzK/v0xPgx7B6Z2TU3NiR6KgaNQ8g3c HYcSI2i67ZznqvtII2kuiQ3iTEJ3IYUSephyk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=A6+VFfvVQKeh615v+hQ4x7A16J4i8Kn8qBWW2GQ9+L4=; b=mzFIyhcUBO9UTgit4l4LbBJGCuSMva2eGnW2TEpf31mbw89wYIkORl52saXC7ggfp6 u20LB6TfMZUf1oOl5dZXgqnjleI2TGCXETDMlea3iYRVVZXqpk8VXRvwatUNDEyL/u4O gHB/sPBmZXIRoDeSMdWEgeUiHCETnVi1k/fLl6xzlTMsYlbwH8m4hvnS4mSm2EpPOuYy mVwG4TmNjhxgNDGfrxyNztluQ5mQrunz6Yn9yP3q8HPrP1LSKlhipQ/HuebePietVMtc v9uGVSmTwpG7Qk/wcGtJITjlqIzVKsjil4spDHzRRkKmKjDsZFwRk/UgWWqU6H7xxYfN jNzQ== X-Gm-Message-State: ALoCoQny5eJocNgmc0ow+/5Rix90jkc3x8DzY7f9XZru1rbuWoLu81fept3Y816pXl/njwpptG2y X-Received: by 10.194.86.194 with SMTP id r2mr10320899wjz.41.1424899074766; Wed, 25 Feb 2015 13:17:54 -0800 (PST) Received: from localhost.localdomain (dslb-188-105-009-107.188.105.pools.vodafone-ip.de. [188.105.9.107]) by mx.google.com with ESMTPSA id fo9sm26800926wib.16.2015.02.25.13.17.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 13:17:54 -0800 (PST) From: =?UTF-8?q?Andr=C3=A9=20Erdmann?= To: buildroot@buildroot.org Date: Wed, 25 Feb 2015 22:17:24 +0100 Message-Id: <1424899050-24932-8-git-send-email-dywi@mailerd.de> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1424899050-24932-1-git-send-email-dywi@mailerd.de> References: <1424899050-24932-1-git-send-email-dywi@mailerd.de> MIME-Version: 1.0 Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH 07/13] autobuild-run: get host arch once X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" in get_toolchain_configs() Signed-off-by: André Erdmann --- scripts/autobuild-run | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/autobuild-run b/scripts/autobuild-run index fee68b7..e0971cb 100755 --- a/scripts/autobuild-run +++ b/scripts/autobuild-run @@ -162,15 +162,17 @@ def get_toolchain_configs(): with urlopen_closing(tc_cfg_uri) as r: l = decode_byte_list(r.readlines()) configs = [] + + (_, _, _, _, hostarch) = os.uname() + if hostarch == 'i686' or hostarch == 'x86_64': + hostarch = 'x86' + for row in csv.reader(l): config = {} config["url"] = row[0] config["hostarch"] = row[1] # Ignore toolchains that are not built for the appropriate # host architecture - (_, _, _, _, hostarch) = os.uname() - if hostarch == 'i686' or hostarch == 'x86_64': - hostarch = 'x86' if hostarch != config["hostarch"]: continue config["libc"] = row[2]