From patchwork Tue May 5 16:18:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 468158 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 7E81B140134 for ; Wed, 6 May 2015 02:18:47 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=J5cxGoje; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 173AF8B40D; Tue, 5 May 2015 16:18:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QQIxjZk3xVYG; Tue, 5 May 2015 16:18:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BFD4C8A849; Tue, 5 May 2015 16:18:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 9E3F31C20D7 for ; Tue, 5 May 2015 16:18:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 99D27A2BD6 for ; Tue, 5 May 2015 16:18:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id agioBB__0LnI for ; Tue, 5 May 2015 16:18:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by fraxinus.osuosl.org (Postfix) with ESMTPS id CEAEAA2BB8 for ; Tue, 5 May 2015 16:18:41 +0000 (UTC) Received: by lagv1 with SMTP id v1so131654636lag.3 for ; Tue, 05 May 2015 09:18:40 -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=nXuqePVCTw5NVARndE5kHvmX7nnZtwYdjj3+vsXXnuM=; b=J5cxGojecrt7wikNiNBo9nyK8c82wTp8O49AAFEHPxOydG8dZiH6sxaIwm56DL34G0 tijUiRhtibZqyi0meCviI4kpUFtZ88yDslUBAh96fcFGGm7nNBI39j1Z5fIpxPmIU3CO 5BbMCn47f5snL6S5NZDbR3UfMH9NPZjedJh1Ku0kg2E04ySy7MtU7b2nv931jAxuzDSw W9rDBmXITCfD4v1NUefRHAoNLvYT5zI/wozxlr8nvqzSirU6+ZtSo5k0VMzYHac55NXf Sc+AzxabnUkuLTTzNH05kK3LZbiK034z3NHqleDfqJsCnMVg8Onqhrsqnugnd1JR8Yor Gqkg== X-Received: by 10.152.182.167 with SMTP id ef7mr1885471lac.109.1430842720203; Tue, 05 May 2015 09:18:40 -0700 (PDT) Received: from octofox.metropolis ([5.19.183.212]) by mx.google.com with ESMTPSA id sh6sm4159190lbb.31.2015.05.05.09.18.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2015 09:18:38 -0700 (PDT) From: Max Filippov To: buildroot@uclibc.org Date: Tue, 5 May 2015 19:18:24 +0300 Message-Id: <1430842704-28771-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH v2] arch/Config.in.xtensa: provide BR2_ENDIAN symbol 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Packages get hints from the buildroot at configure time, e.g. ac_cv_c_bigendian=yes/no. This particular hint is based on the value of BR2_ENDIAN and when it doesn't match actual toolchain endiannes the build may break. Provide BR2_ENDIAN for xtensa to fix this sort of build errors. Fixes: http://autobuild.buildroot.net/results/31115fe8d88f52d77ed0f2da769eb8896a1b34a2/ Signed-off-by: Max Filippov --- Changes v1->v2: - add spaces between configure items; - expand changelog. arch/Config.in.xtensa | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/Config.in.xtensa b/arch/Config.in.xtensa index ff71e0b..0687319 100644 --- a/arch/Config.in.xtensa +++ b/arch/Config.in.xtensa @@ -33,6 +33,23 @@ config BR2_XTENSA_OVERLAY_DIR configurations. They are provided by the processor vendor or directly from Tensilica. +choice + prompt "Target Architecture Endianness" + depends on BR2_XTENSA_CUSTOM + default BR2_XTENSA_LITTLE_ENDIAN + +config BR2_XTENSA_LITTLE_ENDIAN + bool "Little endian" + +config BR2_XTENSA_BIG_ENDIAN + bool "Big endian" + +endchoice + +config BR2_ENDIAN + default "LITTLE" if BR2_XTENSA_LITTLE_ENDIAN + default "BIG" if BR2_xtensa_fsf || BR2_XTENSA_BIG_ENDIAN + config BR2_ARCH default "xtensa" if BR2_xtensa