Received: by 10.223.164.202 with SMTP id h10csp933907wrb; Fri, 17 Nov 2017 11:02:44 -0800 (PST) X-Google-Smtp-Source: AGs4zMaYVrozfLpKMtAOWCaijnmuSyOLahF3itVUTsHtuX8qIGFJjb8RFGlmEFCRo/q8RUKhpUrc X-Received: by 10.98.7.74 with SMTP id b71mr3082390pfd.172.1510945364372; Fri, 17 Nov 2017 11:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510945364; cv=none; d=google.com; s=arc-20160816; b=PLW8FMFNPeb44z4F8zQUZtocX/2G7EVbYNWZCyo1zUT+Gzj7EuUyktllHFbNgd8kYW cgAOkm7+NKmUmYrXVVWIAZD3Ci7ikPp1l8h67v07RzrfGUq+k9Qku/Fa1FLigL+9E0qm MqGbBwsg0Hx/4CAUcgRoQ/M8c83dCRUa1K+RFqIIi50ExhMBWsccJXpIXu5StFFrF+lj MAl5jfMfC7KRFieL0FN5MhA6FNjTkAlPPbzoUSZjkuADdrX9XKyIoh/l09S3aF4E6pHz uEMDzAPPylQ9ZXmJLJA7giYv7MyKPB4GorsSSZvcaFZweO4GLJ4zkKZyEw+8056iA1Wr nYFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=N/sbOtkyITTQ7yIiWLHZ0bfQZKUC2jsfLjkcZiV22ls=; b=WwLyxpq1qXHscrFNc8jOT8FGc3RFLDW9HY6Fx+n3T3eyReLviWJ+W2F+QWAwUD4EU7 k9w7HyTIHGiJ0fiSesksHSE6dyvy1m0FFFdqfVMyHR+q+rAVVM3ml7cFE3c0DQmtMf4B ubjQyAl1npLpM4DNOHr/CdgmCrNV6fSppFP0GheFPqFBKFdFtprxLsfqi8X8m8N2LSNT kVG4cCQncqJrWUubeTZZZqztM8UDW0T/9dICXUNoHgTX4vSbJOBS/zh/033oCUFpj+HB ytLj3cHNID75tlTvIA3IIQAIwWnEFxwD3IZFObU6LRFfOsKy9bCvFvHfc/0lxd0qjNKg WsBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jrlULf8R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si3179237pgt.327.2017.11.17.11.02.30; Fri, 17 Nov 2017 11:02:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jrlULf8R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934825AbdKQNyU (ORCPT + 92 others); Fri, 17 Nov 2017 08:54:20 -0500 Received: from mail-ua0-f194.google.com ([209.85.217.194]:36377 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933663AbdKQNyM (ORCPT ); Fri, 17 Nov 2017 08:54:12 -0500 Received: by mail-ua0-f194.google.com with SMTP id w47so1471607uah.3; Fri, 17 Nov 2017 05:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=N/sbOtkyITTQ7yIiWLHZ0bfQZKUC2jsfLjkcZiV22ls=; b=jrlULf8RP/3Zzmw1noFcluOKFGgUf2WsbOnQgJduzaw6XVPCSobwOUhan8BWWgJrEO 6sDTwjpSITFStpvOQEefNKpSm7IJ+yMINymPqKd/LPA1BYxQA+nzO8Xp4I9CQLjP6Y2P iQJWWGBChkZD3cpIY5rGtigkCVWqGphdQJ1vDjeG8euUJgKJIP/kSg3H3Thk4ifVzbHz xk1LL22zVfD01IlVp1PdWQIWBZto+QBy3KNdmgbwBCGVZlj4KCH6e6HdBiUz4jYHeSbd k7O2mFVTEVPol0DLhuoAPGFM+Zsqx2gjDgI/sUPIBzEKFMIm+dJqVPuG1k3vy8GsXh90 qSXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=N/sbOtkyITTQ7yIiWLHZ0bfQZKUC2jsfLjkcZiV22ls=; b=f+WOfwrn4ie86Q1aQIYYVBblVe1lNTm9IAGoq2s2IY/UP5w2Q+CPkGX8QSpJEF2wA2 o415t+e7zUHlxbt+jBPR/T6ZCAJE/VIN96OwPlZJ8NbBlyZkGhXmpauVnIP+haxiLm+T E595qUAucAZpoDb08Ek1ae7AMb7BaV9kU/3G8pTZdGrACDiBvUEUW6oGb8SlY9JtxTLQ 9ZQcxcNIs4QmcsAaE/gPacbhrGtIwcDKJUDACgsMk8VO21CuMqscoMJ0Iq07HM1t3+lZ wByFQ2RGGfMHP1uguCW1ZakQPLd2dD6LeNOcj65X7MKOS3viD/Nhv3dXm43iY/hrGT0S iVcQ== X-Gm-Message-State: AJaThX7nasNfsUE2CJ1VeijtAl93tx3XElzVL1IRTw7vtvXlnBiA6Kd9 o7AOwAa7JakxBGvR7NuWMVJCWnfWanyTcCRctgk= X-Received: by 10.176.25.198 with SMTP id r6mr4669719uai.79.1510926851762; Fri, 17 Nov 2017 05:54:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.62.8 with HTTP; Fri, 17 Nov 2017 05:53:31 -0800 (PST) In-Reply-To: References: <7278eca76456b412e02d9baa5dc164e83199cbab.1510118606.git.green.hu@gmail.com> From: Greentime Hu Date: Fri, 17 Nov 2017 21:53:31 +0800 Message-ID: Subject: Re: [PATCH 26/31] nds32: Build infrastructure To: Arnd Bergmann Cc: Geert Uytterhoeven , Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-11-16 18:25 GMT+08:00 Arnd Bergmann : > On Thu, Nov 16, 2017 at 11:03 AM, Greentime Hu wrote: >> 2017-11-13 18:45 GMT+08:00 Geert Uytterhoeven : >>> Given the checks for __NDS32_EB__, NDS32 can be either big or little endian, >>> so you should have (excatly one of) CPU_BIG_ENDIAN or CPU_LITTLE_ENDIAN set. >> >> Thanks. >> I will check if we need this config or not and update in the next version patch. > > I think we have one architecture in the kernel that determines endianess from > the way that the toolchain is built. What all the others do it to have a Kconfig > option, at least CONFIG_CPU_BIG_ENDIAN that is used to pass -mbig-endian > or -mlittle-endian to the compiler. You should do it that way so you can use > any toolchain with any kernel configuration. Thanks I will add these 2 configs in the next version patch. Pass -EL or -EB to compiler based on different configs. From 1584339498157434858@xxx Fri Nov 17 18:38:07 +0000 2017 X-GM-THRID: 1583483358934427114 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread